diff --git a/CHANGELOG b/CHANGELOG index 1b3e907be..965f56413 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-10-21 Version: patch +- Release latest features. + 2020-10-21 Version: patch - Change Documentation configuration. diff --git a/sae/CMakeLists.txt b/sae/CMakeLists.txt new file mode 100644 index 000000000..572555dc5 --- /dev/null +++ b/sae/CMakeLists.txt @@ -0,0 +1,318 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(sae_public_header + include/alibabacloud/sae/SaeClient.h + include/alibabacloud/sae/SaeExport.h ) + +set(sae_public_header_model + include/alibabacloud/sae/model/AbortAndRollbackChangeOrderRequest.h + include/alibabacloud/sae/model/AbortAndRollbackChangeOrderResult.h + include/alibabacloud/sae/model/AbortChangeOrderRequest.h + include/alibabacloud/sae/model/AbortChangeOrderResult.h + include/alibabacloud/sae/model/BatchStartApplicationsRequest.h + include/alibabacloud/sae/model/BatchStartApplicationsResult.h + include/alibabacloud/sae/model/BatchStopApplicationsRequest.h + include/alibabacloud/sae/model/BatchStopApplicationsResult.h + include/alibabacloud/sae/model/BindSlbRequest.h + include/alibabacloud/sae/model/BindSlbResult.h + include/alibabacloud/sae/model/ConfirmPipelineBatchRequest.h + include/alibabacloud/sae/model/ConfirmPipelineBatchResult.h + include/alibabacloud/sae/model/CreateApplicationRequest.h + include/alibabacloud/sae/model/CreateApplicationResult.h + include/alibabacloud/sae/model/CreateConfigMapRequest.h + include/alibabacloud/sae/model/CreateConfigMapResult.h + include/alibabacloud/sae/model/CreateIngressRequest.h + include/alibabacloud/sae/model/CreateIngressResult.h + include/alibabacloud/sae/model/CreateNamespaceRequest.h + include/alibabacloud/sae/model/CreateNamespaceResult.h + include/alibabacloud/sae/model/DeleteApplicationRequest.h + include/alibabacloud/sae/model/DeleteApplicationResult.h + include/alibabacloud/sae/model/DeleteConfigMapRequest.h + include/alibabacloud/sae/model/DeleteConfigMapResult.h + include/alibabacloud/sae/model/DeleteIngressRequest.h + include/alibabacloud/sae/model/DeleteIngressResult.h + include/alibabacloud/sae/model/DeleteNamespaceRequest.h + include/alibabacloud/sae/model/DeleteNamespaceResult.h + include/alibabacloud/sae/model/DeployApplicationRequest.h + include/alibabacloud/sae/model/DeployApplicationResult.h + include/alibabacloud/sae/model/DescribeApplicationConfigRequest.h + include/alibabacloud/sae/model/DescribeApplicationConfigResult.h + include/alibabacloud/sae/model/DescribeApplicationGroupsRequest.h + include/alibabacloud/sae/model/DescribeApplicationGroupsResult.h + include/alibabacloud/sae/model/DescribeApplicationImageRequest.h + include/alibabacloud/sae/model/DescribeApplicationImageResult.h + include/alibabacloud/sae/model/DescribeApplicationInstancesRequest.h + include/alibabacloud/sae/model/DescribeApplicationInstancesResult.h + include/alibabacloud/sae/model/DescribeApplicationSlbsRequest.h + include/alibabacloud/sae/model/DescribeApplicationSlbsResult.h + include/alibabacloud/sae/model/DescribeApplicationStatusRequest.h + include/alibabacloud/sae/model/DescribeApplicationStatusResult.h + include/alibabacloud/sae/model/DescribeChangeOrderRequest.h + include/alibabacloud/sae/model/DescribeChangeOrderResult.h + include/alibabacloud/sae/model/DescribeComponentsRequest.h + include/alibabacloud/sae/model/DescribeComponentsResult.h + include/alibabacloud/sae/model/DescribeConfigMapRequest.h + include/alibabacloud/sae/model/DescribeConfigMapResult.h + include/alibabacloud/sae/model/DescribeEdasContainersRequest.h + include/alibabacloud/sae/model/DescribeEdasContainersResult.h + include/alibabacloud/sae/model/DescribeIngressRequest.h + include/alibabacloud/sae/model/DescribeIngressResult.h + include/alibabacloud/sae/model/DescribeInstanceLogRequest.h + include/alibabacloud/sae/model/DescribeInstanceLogResult.h + include/alibabacloud/sae/model/DescribeInstanceSpecificationsRequest.h + include/alibabacloud/sae/model/DescribeInstanceSpecificationsResult.h + include/alibabacloud/sae/model/DescribeNamespaceRequest.h + include/alibabacloud/sae/model/DescribeNamespaceResult.h + include/alibabacloud/sae/model/DescribeNamespaceListRequest.h + include/alibabacloud/sae/model/DescribeNamespaceListResult.h + include/alibabacloud/sae/model/DescribeNamespaceResourcesRequest.h + include/alibabacloud/sae/model/DescribeNamespaceResourcesResult.h + include/alibabacloud/sae/model/DescribeNamespacesRequest.h + include/alibabacloud/sae/model/DescribeNamespacesResult.h + include/alibabacloud/sae/model/DescribeRegionsRequest.h + include/alibabacloud/sae/model/DescribeRegionsResult.h + include/alibabacloud/sae/model/ListAppEventsRequest.h + include/alibabacloud/sae/model/ListAppEventsResult.h + include/alibabacloud/sae/model/ListAppVersionsRequest.h + include/alibabacloud/sae/model/ListAppVersionsResult.h + include/alibabacloud/sae/model/ListApplicationsRequest.h + include/alibabacloud/sae/model/ListApplicationsResult.h + include/alibabacloud/sae/model/ListChangeOrdersRequest.h + include/alibabacloud/sae/model/ListChangeOrdersResult.h + include/alibabacloud/sae/model/ListConsumedServicesRequest.h + include/alibabacloud/sae/model/ListConsumedServicesResult.h + include/alibabacloud/sae/model/ListIngressesRequest.h + include/alibabacloud/sae/model/ListIngressesResult.h + include/alibabacloud/sae/model/ListLogConfigsRequest.h + include/alibabacloud/sae/model/ListLogConfigsResult.h + include/alibabacloud/sae/model/ListNamespaceChangeOrdersRequest.h + include/alibabacloud/sae/model/ListNamespaceChangeOrdersResult.h + include/alibabacloud/sae/model/ListNamespacedConfigMapsRequest.h + include/alibabacloud/sae/model/ListNamespacedConfigMapsResult.h + include/alibabacloud/sae/model/ListPublishedServicesRequest.h + include/alibabacloud/sae/model/ListPublishedServicesResult.h + include/alibabacloud/sae/model/ListTagResourcesRequest.h + include/alibabacloud/sae/model/ListTagResourcesResult.h + include/alibabacloud/sae/model/QueryResourceStaticsRequest.h + include/alibabacloud/sae/model/QueryResourceStaticsResult.h + include/alibabacloud/sae/model/RescaleApplicationRequest.h + include/alibabacloud/sae/model/RescaleApplicationResult.h + include/alibabacloud/sae/model/RescaleApplicationVerticallyRequest.h + include/alibabacloud/sae/model/RescaleApplicationVerticallyResult.h + include/alibabacloud/sae/model/RestartApplicationRequest.h + include/alibabacloud/sae/model/RestartApplicationResult.h + include/alibabacloud/sae/model/RollbackApplicationRequest.h + include/alibabacloud/sae/model/RollbackApplicationResult.h + include/alibabacloud/sae/model/StartApplicationRequest.h + include/alibabacloud/sae/model/StartApplicationResult.h + include/alibabacloud/sae/model/StopApplicationRequest.h + include/alibabacloud/sae/model/StopApplicationResult.h + include/alibabacloud/sae/model/TagResourcesRequest.h + include/alibabacloud/sae/model/TagResourcesResult.h + include/alibabacloud/sae/model/UnbindSlbRequest.h + include/alibabacloud/sae/model/UnbindSlbResult.h + include/alibabacloud/sae/model/UntagResourcesRequest.h + include/alibabacloud/sae/model/UntagResourcesResult.h + include/alibabacloud/sae/model/UpdateAppSecurityGroupRequest.h + include/alibabacloud/sae/model/UpdateAppSecurityGroupResult.h + include/alibabacloud/sae/model/UpdateConfigMapRequest.h + include/alibabacloud/sae/model/UpdateConfigMapResult.h + include/alibabacloud/sae/model/UpdateIngressRequest.h + include/alibabacloud/sae/model/UpdateIngressResult.h + include/alibabacloud/sae/model/UpdateNamespaceRequest.h + include/alibabacloud/sae/model/UpdateNamespaceResult.h + include/alibabacloud/sae/model/UpdateNamespaceVpcRequest.h + include/alibabacloud/sae/model/UpdateNamespaceVpcResult.h ) + +set(sae_src + src/SaeClient.cc + src/model/AbortAndRollbackChangeOrderRequest.cc + src/model/AbortAndRollbackChangeOrderResult.cc + src/model/AbortChangeOrderRequest.cc + src/model/AbortChangeOrderResult.cc + src/model/BatchStartApplicationsRequest.cc + src/model/BatchStartApplicationsResult.cc + src/model/BatchStopApplicationsRequest.cc + src/model/BatchStopApplicationsResult.cc + src/model/BindSlbRequest.cc + src/model/BindSlbResult.cc + src/model/ConfirmPipelineBatchRequest.cc + src/model/ConfirmPipelineBatchResult.cc + src/model/CreateApplicationRequest.cc + src/model/CreateApplicationResult.cc + src/model/CreateConfigMapRequest.cc + src/model/CreateConfigMapResult.cc + src/model/CreateIngressRequest.cc + src/model/CreateIngressResult.cc + src/model/CreateNamespaceRequest.cc + src/model/CreateNamespaceResult.cc + src/model/DeleteApplicationRequest.cc + src/model/DeleteApplicationResult.cc + src/model/DeleteConfigMapRequest.cc + src/model/DeleteConfigMapResult.cc + src/model/DeleteIngressRequest.cc + src/model/DeleteIngressResult.cc + src/model/DeleteNamespaceRequest.cc + src/model/DeleteNamespaceResult.cc + src/model/DeployApplicationRequest.cc + src/model/DeployApplicationResult.cc + src/model/DescribeApplicationConfigRequest.cc + src/model/DescribeApplicationConfigResult.cc + src/model/DescribeApplicationGroupsRequest.cc + src/model/DescribeApplicationGroupsResult.cc + src/model/DescribeApplicationImageRequest.cc + src/model/DescribeApplicationImageResult.cc + src/model/DescribeApplicationInstancesRequest.cc + src/model/DescribeApplicationInstancesResult.cc + src/model/DescribeApplicationSlbsRequest.cc + src/model/DescribeApplicationSlbsResult.cc + src/model/DescribeApplicationStatusRequest.cc + src/model/DescribeApplicationStatusResult.cc + src/model/DescribeChangeOrderRequest.cc + src/model/DescribeChangeOrderResult.cc + src/model/DescribeComponentsRequest.cc + src/model/DescribeComponentsResult.cc + src/model/DescribeConfigMapRequest.cc + src/model/DescribeConfigMapResult.cc + src/model/DescribeEdasContainersRequest.cc + src/model/DescribeEdasContainersResult.cc + src/model/DescribeIngressRequest.cc + src/model/DescribeIngressResult.cc + src/model/DescribeInstanceLogRequest.cc + src/model/DescribeInstanceLogResult.cc + src/model/DescribeInstanceSpecificationsRequest.cc + src/model/DescribeInstanceSpecificationsResult.cc + src/model/DescribeNamespaceRequest.cc + src/model/DescribeNamespaceResult.cc + src/model/DescribeNamespaceListRequest.cc + src/model/DescribeNamespaceListResult.cc + src/model/DescribeNamespaceResourcesRequest.cc + src/model/DescribeNamespaceResourcesResult.cc + src/model/DescribeNamespacesRequest.cc + src/model/DescribeNamespacesResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc + src/model/ListAppEventsRequest.cc + src/model/ListAppEventsResult.cc + src/model/ListAppVersionsRequest.cc + src/model/ListAppVersionsResult.cc + src/model/ListApplicationsRequest.cc + src/model/ListApplicationsResult.cc + src/model/ListChangeOrdersRequest.cc + src/model/ListChangeOrdersResult.cc + src/model/ListConsumedServicesRequest.cc + src/model/ListConsumedServicesResult.cc + src/model/ListIngressesRequest.cc + src/model/ListIngressesResult.cc + src/model/ListLogConfigsRequest.cc + src/model/ListLogConfigsResult.cc + src/model/ListNamespaceChangeOrdersRequest.cc + src/model/ListNamespaceChangeOrdersResult.cc + src/model/ListNamespacedConfigMapsRequest.cc + src/model/ListNamespacedConfigMapsResult.cc + src/model/ListPublishedServicesRequest.cc + src/model/ListPublishedServicesResult.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc + src/model/QueryResourceStaticsRequest.cc + src/model/QueryResourceStaticsResult.cc + src/model/RescaleApplicationRequest.cc + src/model/RescaleApplicationResult.cc + src/model/RescaleApplicationVerticallyRequest.cc + src/model/RescaleApplicationVerticallyResult.cc + src/model/RestartApplicationRequest.cc + src/model/RestartApplicationResult.cc + src/model/RollbackApplicationRequest.cc + src/model/RollbackApplicationResult.cc + src/model/StartApplicationRequest.cc + src/model/StartApplicationResult.cc + src/model/StopApplicationRequest.cc + src/model/StopApplicationResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc + src/model/UnbindSlbRequest.cc + src/model/UnbindSlbResult.cc + src/model/UntagResourcesRequest.cc + src/model/UntagResourcesResult.cc + src/model/UpdateAppSecurityGroupRequest.cc + src/model/UpdateAppSecurityGroupResult.cc + src/model/UpdateConfigMapRequest.cc + src/model/UpdateConfigMapResult.cc + src/model/UpdateIngressRequest.cc + src/model/UpdateIngressResult.cc + src/model/UpdateNamespaceRequest.cc + src/model/UpdateNamespaceResult.cc + src/model/UpdateNamespaceVpcRequest.cc + src/model/UpdateNamespaceVpcResult.cc ) + +add_library(sae ${LIB_TYPE} + ${sae_public_header} + ${sae_public_header_model} + ${sae_src}) + +set_target_properties(sae + 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}sae + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(sae + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_SAE_LIBRARY) +endif() + +target_include_directories(sae + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(sae + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(sae + jsoncpp) + target_include_directories(sae + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(sae + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(sae + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(sae + PRIVATE /usr/include/jsoncpp) + target_link_libraries(sae + jsoncpp) +endif() + +install(FILES ${sae_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/sae) +install(FILES ${sae_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/sae/model) +install(TARGETS sae + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/SaeClient.h b/sae/include/alibabacloud/sae/SaeClient.h new file mode 100644 index 000000000..50bd86054 --- /dev/null +++ b/sae/include/alibabacloud/sae/SaeClient.h @@ -0,0 +1,518 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_SAECLIENT_H_ +#define ALIBABACLOUD_SAE_SAECLIENT_H_ + +#include +#include +#include +#include +#include "SaeExport.h" +#include "model/AbortAndRollbackChangeOrderRequest.h" +#include "model/AbortAndRollbackChangeOrderResult.h" +#include "model/AbortChangeOrderRequest.h" +#include "model/AbortChangeOrderResult.h" +#include "model/BatchStartApplicationsRequest.h" +#include "model/BatchStartApplicationsResult.h" +#include "model/BatchStopApplicationsRequest.h" +#include "model/BatchStopApplicationsResult.h" +#include "model/BindSlbRequest.h" +#include "model/BindSlbResult.h" +#include "model/ConfirmPipelineBatchRequest.h" +#include "model/ConfirmPipelineBatchResult.h" +#include "model/CreateApplicationRequest.h" +#include "model/CreateApplicationResult.h" +#include "model/CreateConfigMapRequest.h" +#include "model/CreateConfigMapResult.h" +#include "model/CreateIngressRequest.h" +#include "model/CreateIngressResult.h" +#include "model/CreateNamespaceRequest.h" +#include "model/CreateNamespaceResult.h" +#include "model/DeleteApplicationRequest.h" +#include "model/DeleteApplicationResult.h" +#include "model/DeleteConfigMapRequest.h" +#include "model/DeleteConfigMapResult.h" +#include "model/DeleteIngressRequest.h" +#include "model/DeleteIngressResult.h" +#include "model/DeleteNamespaceRequest.h" +#include "model/DeleteNamespaceResult.h" +#include "model/DeployApplicationRequest.h" +#include "model/DeployApplicationResult.h" +#include "model/DescribeApplicationConfigRequest.h" +#include "model/DescribeApplicationConfigResult.h" +#include "model/DescribeApplicationGroupsRequest.h" +#include "model/DescribeApplicationGroupsResult.h" +#include "model/DescribeApplicationImageRequest.h" +#include "model/DescribeApplicationImageResult.h" +#include "model/DescribeApplicationInstancesRequest.h" +#include "model/DescribeApplicationInstancesResult.h" +#include "model/DescribeApplicationSlbsRequest.h" +#include "model/DescribeApplicationSlbsResult.h" +#include "model/DescribeApplicationStatusRequest.h" +#include "model/DescribeApplicationStatusResult.h" +#include "model/DescribeChangeOrderRequest.h" +#include "model/DescribeChangeOrderResult.h" +#include "model/DescribeComponentsRequest.h" +#include "model/DescribeComponentsResult.h" +#include "model/DescribeConfigMapRequest.h" +#include "model/DescribeConfigMapResult.h" +#include "model/DescribeEdasContainersRequest.h" +#include "model/DescribeEdasContainersResult.h" +#include "model/DescribeIngressRequest.h" +#include "model/DescribeIngressResult.h" +#include "model/DescribeInstanceLogRequest.h" +#include "model/DescribeInstanceLogResult.h" +#include "model/DescribeInstanceSpecificationsRequest.h" +#include "model/DescribeInstanceSpecificationsResult.h" +#include "model/DescribeNamespaceRequest.h" +#include "model/DescribeNamespaceResult.h" +#include "model/DescribeNamespaceListRequest.h" +#include "model/DescribeNamespaceListResult.h" +#include "model/DescribeNamespaceResourcesRequest.h" +#include "model/DescribeNamespaceResourcesResult.h" +#include "model/DescribeNamespacesRequest.h" +#include "model/DescribeNamespacesResult.h" +#include "model/DescribeRegionsRequest.h" +#include "model/DescribeRegionsResult.h" +#include "model/ListAppEventsRequest.h" +#include "model/ListAppEventsResult.h" +#include "model/ListAppVersionsRequest.h" +#include "model/ListAppVersionsResult.h" +#include "model/ListApplicationsRequest.h" +#include "model/ListApplicationsResult.h" +#include "model/ListChangeOrdersRequest.h" +#include "model/ListChangeOrdersResult.h" +#include "model/ListConsumedServicesRequest.h" +#include "model/ListConsumedServicesResult.h" +#include "model/ListIngressesRequest.h" +#include "model/ListIngressesResult.h" +#include "model/ListLogConfigsRequest.h" +#include "model/ListLogConfigsResult.h" +#include "model/ListNamespaceChangeOrdersRequest.h" +#include "model/ListNamespaceChangeOrdersResult.h" +#include "model/ListNamespacedConfigMapsRequest.h" +#include "model/ListNamespacedConfigMapsResult.h" +#include "model/ListPublishedServicesRequest.h" +#include "model/ListPublishedServicesResult.h" +#include "model/ListTagResourcesRequest.h" +#include "model/ListTagResourcesResult.h" +#include "model/QueryResourceStaticsRequest.h" +#include "model/QueryResourceStaticsResult.h" +#include "model/RescaleApplicationRequest.h" +#include "model/RescaleApplicationResult.h" +#include "model/RescaleApplicationVerticallyRequest.h" +#include "model/RescaleApplicationVerticallyResult.h" +#include "model/RestartApplicationRequest.h" +#include "model/RestartApplicationResult.h" +#include "model/RollbackApplicationRequest.h" +#include "model/RollbackApplicationResult.h" +#include "model/StartApplicationRequest.h" +#include "model/StartApplicationResult.h" +#include "model/StopApplicationRequest.h" +#include "model/StopApplicationResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" +#include "model/UnbindSlbRequest.h" +#include "model/UnbindSlbResult.h" +#include "model/UntagResourcesRequest.h" +#include "model/UntagResourcesResult.h" +#include "model/UpdateAppSecurityGroupRequest.h" +#include "model/UpdateAppSecurityGroupResult.h" +#include "model/UpdateConfigMapRequest.h" +#include "model/UpdateConfigMapResult.h" +#include "model/UpdateIngressRequest.h" +#include "model/UpdateIngressResult.h" +#include "model/UpdateNamespaceRequest.h" +#include "model/UpdateNamespaceResult.h" +#include "model/UpdateNamespaceVpcRequest.h" +#include "model/UpdateNamespaceVpcResult.h" + + +namespace AlibabaCloud +{ + namespace Sae + { + class ALIBABACLOUD_SAE_EXPORT SaeClient : public RoaServiceClient + { + public: + typedef Outcome AbortAndRollbackChangeOrderOutcome; + typedef std::future AbortAndRollbackChangeOrderOutcomeCallable; + typedef std::function&)> AbortAndRollbackChangeOrderAsyncHandler; + typedef Outcome AbortChangeOrderOutcome; + typedef std::future AbortChangeOrderOutcomeCallable; + typedef std::function&)> AbortChangeOrderAsyncHandler; + typedef Outcome BatchStartApplicationsOutcome; + typedef std::future BatchStartApplicationsOutcomeCallable; + typedef std::function&)> BatchStartApplicationsAsyncHandler; + typedef Outcome BatchStopApplicationsOutcome; + typedef std::future BatchStopApplicationsOutcomeCallable; + typedef std::function&)> BatchStopApplicationsAsyncHandler; + typedef Outcome BindSlbOutcome; + typedef std::future BindSlbOutcomeCallable; + typedef std::function&)> BindSlbAsyncHandler; + typedef Outcome ConfirmPipelineBatchOutcome; + typedef std::future ConfirmPipelineBatchOutcomeCallable; + typedef std::function&)> ConfirmPipelineBatchAsyncHandler; + typedef Outcome CreateApplicationOutcome; + typedef std::future CreateApplicationOutcomeCallable; + typedef std::function&)> CreateApplicationAsyncHandler; + typedef Outcome CreateConfigMapOutcome; + typedef std::future CreateConfigMapOutcomeCallable; + typedef std::function&)> CreateConfigMapAsyncHandler; + typedef Outcome CreateIngressOutcome; + typedef std::future CreateIngressOutcomeCallable; + typedef std::function&)> CreateIngressAsyncHandler; + typedef Outcome CreateNamespaceOutcome; + typedef std::future CreateNamespaceOutcomeCallable; + typedef std::function&)> CreateNamespaceAsyncHandler; + typedef Outcome DeleteApplicationOutcome; + typedef std::future DeleteApplicationOutcomeCallable; + typedef std::function&)> DeleteApplicationAsyncHandler; + typedef Outcome DeleteConfigMapOutcome; + typedef std::future DeleteConfigMapOutcomeCallable; + typedef std::function&)> DeleteConfigMapAsyncHandler; + typedef Outcome DeleteIngressOutcome; + typedef std::future DeleteIngressOutcomeCallable; + typedef std::function&)> DeleteIngressAsyncHandler; + typedef Outcome DeleteNamespaceOutcome; + typedef std::future DeleteNamespaceOutcomeCallable; + typedef std::function&)> DeleteNamespaceAsyncHandler; + typedef Outcome DeployApplicationOutcome; + typedef std::future DeployApplicationOutcomeCallable; + typedef std::function&)> DeployApplicationAsyncHandler; + typedef Outcome DescribeApplicationConfigOutcome; + typedef std::future DescribeApplicationConfigOutcomeCallable; + typedef std::function&)> DescribeApplicationConfigAsyncHandler; + typedef Outcome DescribeApplicationGroupsOutcome; + typedef std::future DescribeApplicationGroupsOutcomeCallable; + typedef std::function&)> DescribeApplicationGroupsAsyncHandler; + typedef Outcome DescribeApplicationImageOutcome; + typedef std::future DescribeApplicationImageOutcomeCallable; + typedef std::function&)> DescribeApplicationImageAsyncHandler; + typedef Outcome DescribeApplicationInstancesOutcome; + typedef std::future DescribeApplicationInstancesOutcomeCallable; + typedef std::function&)> DescribeApplicationInstancesAsyncHandler; + typedef Outcome DescribeApplicationSlbsOutcome; + typedef std::future DescribeApplicationSlbsOutcomeCallable; + typedef std::function&)> DescribeApplicationSlbsAsyncHandler; + typedef Outcome DescribeApplicationStatusOutcome; + typedef std::future DescribeApplicationStatusOutcomeCallable; + typedef std::function&)> DescribeApplicationStatusAsyncHandler; + typedef Outcome DescribeChangeOrderOutcome; + typedef std::future DescribeChangeOrderOutcomeCallable; + typedef std::function&)> DescribeChangeOrderAsyncHandler; + typedef Outcome DescribeComponentsOutcome; + typedef std::future DescribeComponentsOutcomeCallable; + typedef std::function&)> DescribeComponentsAsyncHandler; + typedef Outcome DescribeConfigMapOutcome; + typedef std::future DescribeConfigMapOutcomeCallable; + typedef std::function&)> DescribeConfigMapAsyncHandler; + typedef Outcome DescribeEdasContainersOutcome; + typedef std::future DescribeEdasContainersOutcomeCallable; + typedef std::function&)> DescribeEdasContainersAsyncHandler; + typedef Outcome DescribeIngressOutcome; + typedef std::future DescribeIngressOutcomeCallable; + typedef std::function&)> DescribeIngressAsyncHandler; + typedef Outcome DescribeInstanceLogOutcome; + typedef std::future DescribeInstanceLogOutcomeCallable; + typedef std::function&)> DescribeInstanceLogAsyncHandler; + typedef Outcome DescribeInstanceSpecificationsOutcome; + typedef std::future DescribeInstanceSpecificationsOutcomeCallable; + typedef std::function&)> DescribeInstanceSpecificationsAsyncHandler; + typedef Outcome DescribeNamespaceOutcome; + typedef std::future DescribeNamespaceOutcomeCallable; + typedef std::function&)> DescribeNamespaceAsyncHandler; + typedef Outcome DescribeNamespaceListOutcome; + typedef std::future DescribeNamespaceListOutcomeCallable; + typedef std::function&)> DescribeNamespaceListAsyncHandler; + typedef Outcome DescribeNamespaceResourcesOutcome; + typedef std::future DescribeNamespaceResourcesOutcomeCallable; + typedef std::function&)> DescribeNamespaceResourcesAsyncHandler; + typedef Outcome DescribeNamespacesOutcome; + typedef std::future DescribeNamespacesOutcomeCallable; + typedef std::function&)> DescribeNamespacesAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; + typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome ListAppEventsOutcome; + typedef std::future ListAppEventsOutcomeCallable; + typedef std::function&)> ListAppEventsAsyncHandler; + typedef Outcome ListAppVersionsOutcome; + typedef std::future ListAppVersionsOutcomeCallable; + typedef std::function&)> ListAppVersionsAsyncHandler; + typedef Outcome ListApplicationsOutcome; + typedef std::future ListApplicationsOutcomeCallable; + typedef std::function&)> ListApplicationsAsyncHandler; + typedef Outcome ListChangeOrdersOutcome; + typedef std::future ListChangeOrdersOutcomeCallable; + typedef std::function&)> ListChangeOrdersAsyncHandler; + typedef Outcome ListConsumedServicesOutcome; + typedef std::future ListConsumedServicesOutcomeCallable; + typedef std::function&)> ListConsumedServicesAsyncHandler; + typedef Outcome ListIngressesOutcome; + typedef std::future ListIngressesOutcomeCallable; + typedef std::function&)> ListIngressesAsyncHandler; + typedef Outcome ListLogConfigsOutcome; + typedef std::future ListLogConfigsOutcomeCallable; + typedef std::function&)> ListLogConfigsAsyncHandler; + typedef Outcome ListNamespaceChangeOrdersOutcome; + typedef std::future ListNamespaceChangeOrdersOutcomeCallable; + typedef std::function&)> ListNamespaceChangeOrdersAsyncHandler; + typedef Outcome ListNamespacedConfigMapsOutcome; + typedef std::future ListNamespacedConfigMapsOutcomeCallable; + typedef std::function&)> ListNamespacedConfigMapsAsyncHandler; + typedef Outcome ListPublishedServicesOutcome; + typedef std::future ListPublishedServicesOutcomeCallable; + typedef std::function&)> ListPublishedServicesAsyncHandler; + typedef Outcome ListTagResourcesOutcome; + typedef std::future ListTagResourcesOutcomeCallable; + typedef std::function&)> ListTagResourcesAsyncHandler; + typedef Outcome QueryResourceStaticsOutcome; + typedef std::future QueryResourceStaticsOutcomeCallable; + typedef std::function&)> QueryResourceStaticsAsyncHandler; + typedef Outcome RescaleApplicationOutcome; + typedef std::future RescaleApplicationOutcomeCallable; + typedef std::function&)> RescaleApplicationAsyncHandler; + typedef Outcome RescaleApplicationVerticallyOutcome; + typedef std::future RescaleApplicationVerticallyOutcomeCallable; + typedef std::function&)> RescaleApplicationVerticallyAsyncHandler; + typedef Outcome RestartApplicationOutcome; + typedef std::future RestartApplicationOutcomeCallable; + typedef std::function&)> RestartApplicationAsyncHandler; + typedef Outcome RollbackApplicationOutcome; + typedef std::future RollbackApplicationOutcomeCallable; + typedef std::function&)> RollbackApplicationAsyncHandler; + typedef Outcome StartApplicationOutcome; + typedef std::future StartApplicationOutcomeCallable; + typedef std::function&)> StartApplicationAsyncHandler; + typedef Outcome StopApplicationOutcome; + typedef std::future StopApplicationOutcomeCallable; + typedef std::function&)> StopApplicationAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; + typedef Outcome UnbindSlbOutcome; + typedef std::future UnbindSlbOutcomeCallable; + typedef std::function&)> UnbindSlbAsyncHandler; + typedef Outcome UntagResourcesOutcome; + typedef std::future UntagResourcesOutcomeCallable; + typedef std::function&)> UntagResourcesAsyncHandler; + typedef Outcome UpdateAppSecurityGroupOutcome; + typedef std::future UpdateAppSecurityGroupOutcomeCallable; + typedef std::function&)> UpdateAppSecurityGroupAsyncHandler; + typedef Outcome UpdateConfigMapOutcome; + typedef std::future UpdateConfigMapOutcomeCallable; + typedef std::function&)> UpdateConfigMapAsyncHandler; + typedef Outcome UpdateIngressOutcome; + typedef std::future UpdateIngressOutcomeCallable; + typedef std::function&)> UpdateIngressAsyncHandler; + typedef Outcome UpdateNamespaceOutcome; + typedef std::future UpdateNamespaceOutcomeCallable; + typedef std::function&)> UpdateNamespaceAsyncHandler; + typedef Outcome UpdateNamespaceVpcOutcome; + typedef std::future UpdateNamespaceVpcOutcomeCallable; + typedef std::function&)> UpdateNamespaceVpcAsyncHandler; + + SaeClient(const Credentials &credentials, const ClientConfiguration &configuration); + SaeClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + SaeClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~SaeClient(); + AbortAndRollbackChangeOrderOutcome abortAndRollbackChangeOrder(const Model::AbortAndRollbackChangeOrderRequest &request)const; + void abortAndRollbackChangeOrderAsync(const Model::AbortAndRollbackChangeOrderRequest& request, const AbortAndRollbackChangeOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AbortAndRollbackChangeOrderOutcomeCallable abortAndRollbackChangeOrderCallable(const Model::AbortAndRollbackChangeOrderRequest& request) const; + AbortChangeOrderOutcome abortChangeOrder(const Model::AbortChangeOrderRequest &request)const; + void abortChangeOrderAsync(const Model::AbortChangeOrderRequest& request, const AbortChangeOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AbortChangeOrderOutcomeCallable abortChangeOrderCallable(const Model::AbortChangeOrderRequest& request) const; + BatchStartApplicationsOutcome batchStartApplications(const Model::BatchStartApplicationsRequest &request)const; + void batchStartApplicationsAsync(const Model::BatchStartApplicationsRequest& request, const BatchStartApplicationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchStartApplicationsOutcomeCallable batchStartApplicationsCallable(const Model::BatchStartApplicationsRequest& request) const; + BatchStopApplicationsOutcome batchStopApplications(const Model::BatchStopApplicationsRequest &request)const; + void batchStopApplicationsAsync(const Model::BatchStopApplicationsRequest& request, const BatchStopApplicationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchStopApplicationsOutcomeCallable batchStopApplicationsCallable(const Model::BatchStopApplicationsRequest& request) const; + BindSlbOutcome bindSlb(const Model::BindSlbRequest &request)const; + void bindSlbAsync(const Model::BindSlbRequest& request, const BindSlbAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindSlbOutcomeCallable bindSlbCallable(const Model::BindSlbRequest& request) const; + ConfirmPipelineBatchOutcome confirmPipelineBatch(const Model::ConfirmPipelineBatchRequest &request)const; + void confirmPipelineBatchAsync(const Model::ConfirmPipelineBatchRequest& request, const ConfirmPipelineBatchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ConfirmPipelineBatchOutcomeCallable confirmPipelineBatchCallable(const Model::ConfirmPipelineBatchRequest& request) const; + CreateApplicationOutcome createApplication(const Model::CreateApplicationRequest &request)const; + void createApplicationAsync(const Model::CreateApplicationRequest& request, const CreateApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateApplicationOutcomeCallable createApplicationCallable(const Model::CreateApplicationRequest& request) const; + CreateConfigMapOutcome createConfigMap(const Model::CreateConfigMapRequest &request)const; + void createConfigMapAsync(const Model::CreateConfigMapRequest& request, const CreateConfigMapAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateConfigMapOutcomeCallable createConfigMapCallable(const Model::CreateConfigMapRequest& request) const; + CreateIngressOutcome createIngress(const Model::CreateIngressRequest &request)const; + void createIngressAsync(const Model::CreateIngressRequest& request, const CreateIngressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateIngressOutcomeCallable createIngressCallable(const Model::CreateIngressRequest& request) const; + CreateNamespaceOutcome createNamespace(const Model::CreateNamespaceRequest &request)const; + void createNamespaceAsync(const Model::CreateNamespaceRequest& request, const CreateNamespaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNamespaceOutcomeCallable createNamespaceCallable(const Model::CreateNamespaceRequest& request) const; + DeleteApplicationOutcome deleteApplication(const Model::DeleteApplicationRequest &request)const; + void deleteApplicationAsync(const Model::DeleteApplicationRequest& request, const DeleteApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteApplicationOutcomeCallable deleteApplicationCallable(const Model::DeleteApplicationRequest& request) const; + DeleteConfigMapOutcome deleteConfigMap(const Model::DeleteConfigMapRequest &request)const; + void deleteConfigMapAsync(const Model::DeleteConfigMapRequest& request, const DeleteConfigMapAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteConfigMapOutcomeCallable deleteConfigMapCallable(const Model::DeleteConfigMapRequest& request) const; + DeleteIngressOutcome deleteIngress(const Model::DeleteIngressRequest &request)const; + void deleteIngressAsync(const Model::DeleteIngressRequest& request, const DeleteIngressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteIngressOutcomeCallable deleteIngressCallable(const Model::DeleteIngressRequest& request) const; + DeleteNamespaceOutcome deleteNamespace(const Model::DeleteNamespaceRequest &request)const; + void deleteNamespaceAsync(const Model::DeleteNamespaceRequest& request, const DeleteNamespaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNamespaceOutcomeCallable deleteNamespaceCallable(const Model::DeleteNamespaceRequest& request) const; + DeployApplicationOutcome deployApplication(const Model::DeployApplicationRequest &request)const; + void deployApplicationAsync(const Model::DeployApplicationRequest& request, const DeployApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeployApplicationOutcomeCallable deployApplicationCallable(const Model::DeployApplicationRequest& request) const; + DescribeApplicationConfigOutcome describeApplicationConfig(const Model::DescribeApplicationConfigRequest &request)const; + void describeApplicationConfigAsync(const Model::DescribeApplicationConfigRequest& request, const DescribeApplicationConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApplicationConfigOutcomeCallable describeApplicationConfigCallable(const Model::DescribeApplicationConfigRequest& request) const; + DescribeApplicationGroupsOutcome describeApplicationGroups(const Model::DescribeApplicationGroupsRequest &request)const; + void describeApplicationGroupsAsync(const Model::DescribeApplicationGroupsRequest& request, const DescribeApplicationGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApplicationGroupsOutcomeCallable describeApplicationGroupsCallable(const Model::DescribeApplicationGroupsRequest& request) const; + DescribeApplicationImageOutcome describeApplicationImage(const Model::DescribeApplicationImageRequest &request)const; + void describeApplicationImageAsync(const Model::DescribeApplicationImageRequest& request, const DescribeApplicationImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApplicationImageOutcomeCallable describeApplicationImageCallable(const Model::DescribeApplicationImageRequest& request) const; + DescribeApplicationInstancesOutcome describeApplicationInstances(const Model::DescribeApplicationInstancesRequest &request)const; + void describeApplicationInstancesAsync(const Model::DescribeApplicationInstancesRequest& request, const DescribeApplicationInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApplicationInstancesOutcomeCallable describeApplicationInstancesCallable(const Model::DescribeApplicationInstancesRequest& request) const; + DescribeApplicationSlbsOutcome describeApplicationSlbs(const Model::DescribeApplicationSlbsRequest &request)const; + void describeApplicationSlbsAsync(const Model::DescribeApplicationSlbsRequest& request, const DescribeApplicationSlbsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApplicationSlbsOutcomeCallable describeApplicationSlbsCallable(const Model::DescribeApplicationSlbsRequest& request) const; + DescribeApplicationStatusOutcome describeApplicationStatus(const Model::DescribeApplicationStatusRequest &request)const; + void describeApplicationStatusAsync(const Model::DescribeApplicationStatusRequest& request, const DescribeApplicationStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApplicationStatusOutcomeCallable describeApplicationStatusCallable(const Model::DescribeApplicationStatusRequest& request) const; + DescribeChangeOrderOutcome describeChangeOrder(const Model::DescribeChangeOrderRequest &request)const; + void describeChangeOrderAsync(const Model::DescribeChangeOrderRequest& request, const DescribeChangeOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeChangeOrderOutcomeCallable describeChangeOrderCallable(const Model::DescribeChangeOrderRequest& request) const; + DescribeComponentsOutcome describeComponents(const Model::DescribeComponentsRequest &request)const; + void describeComponentsAsync(const Model::DescribeComponentsRequest& request, const DescribeComponentsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeComponentsOutcomeCallable describeComponentsCallable(const Model::DescribeComponentsRequest& request) const; + DescribeConfigMapOutcome describeConfigMap(const Model::DescribeConfigMapRequest &request)const; + void describeConfigMapAsync(const Model::DescribeConfigMapRequest& request, const DescribeConfigMapAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeConfigMapOutcomeCallable describeConfigMapCallable(const Model::DescribeConfigMapRequest& request) const; + DescribeEdasContainersOutcome describeEdasContainers(const Model::DescribeEdasContainersRequest &request)const; + void describeEdasContainersAsync(const Model::DescribeEdasContainersRequest& request, const DescribeEdasContainersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEdasContainersOutcomeCallable describeEdasContainersCallable(const Model::DescribeEdasContainersRequest& request) const; + DescribeIngressOutcome describeIngress(const Model::DescribeIngressRequest &request)const; + void describeIngressAsync(const Model::DescribeIngressRequest& request, const DescribeIngressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeIngressOutcomeCallable describeIngressCallable(const Model::DescribeIngressRequest& request) const; + DescribeInstanceLogOutcome describeInstanceLog(const Model::DescribeInstanceLogRequest &request)const; + void describeInstanceLogAsync(const Model::DescribeInstanceLogRequest& request, const DescribeInstanceLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceLogOutcomeCallable describeInstanceLogCallable(const Model::DescribeInstanceLogRequest& request) const; + DescribeInstanceSpecificationsOutcome describeInstanceSpecifications(const Model::DescribeInstanceSpecificationsRequest &request)const; + void describeInstanceSpecificationsAsync(const Model::DescribeInstanceSpecificationsRequest& request, const DescribeInstanceSpecificationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceSpecificationsOutcomeCallable describeInstanceSpecificationsCallable(const Model::DescribeInstanceSpecificationsRequest& request) const; + DescribeNamespaceOutcome describeNamespace(const Model::DescribeNamespaceRequest &request)const; + void describeNamespaceAsync(const Model::DescribeNamespaceRequest& request, const DescribeNamespaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNamespaceOutcomeCallable describeNamespaceCallable(const Model::DescribeNamespaceRequest& request) const; + DescribeNamespaceListOutcome describeNamespaceList(const Model::DescribeNamespaceListRequest &request)const; + void describeNamespaceListAsync(const Model::DescribeNamespaceListRequest& request, const DescribeNamespaceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNamespaceListOutcomeCallable describeNamespaceListCallable(const Model::DescribeNamespaceListRequest& request) const; + DescribeNamespaceResourcesOutcome describeNamespaceResources(const Model::DescribeNamespaceResourcesRequest &request)const; + void describeNamespaceResourcesAsync(const Model::DescribeNamespaceResourcesRequest& request, const DescribeNamespaceResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNamespaceResourcesOutcomeCallable describeNamespaceResourcesCallable(const Model::DescribeNamespaceResourcesRequest& request) const; + DescribeNamespacesOutcome describeNamespaces(const Model::DescribeNamespacesRequest &request)const; + void describeNamespacesAsync(const Model::DescribeNamespacesRequest& request, const DescribeNamespacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNamespacesOutcomeCallable describeNamespacesCallable(const Model::DescribeNamespacesRequest& 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; + ListAppEventsOutcome listAppEvents(const Model::ListAppEventsRequest &request)const; + void listAppEventsAsync(const Model::ListAppEventsRequest& request, const ListAppEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAppEventsOutcomeCallable listAppEventsCallable(const Model::ListAppEventsRequest& request) const; + ListAppVersionsOutcome listAppVersions(const Model::ListAppVersionsRequest &request)const; + void listAppVersionsAsync(const Model::ListAppVersionsRequest& request, const ListAppVersionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAppVersionsOutcomeCallable listAppVersionsCallable(const Model::ListAppVersionsRequest& request) const; + ListApplicationsOutcome listApplications(const Model::ListApplicationsRequest &request)const; + void listApplicationsAsync(const Model::ListApplicationsRequest& request, const ListApplicationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListApplicationsOutcomeCallable listApplicationsCallable(const Model::ListApplicationsRequest& request) const; + ListChangeOrdersOutcome listChangeOrders(const Model::ListChangeOrdersRequest &request)const; + void listChangeOrdersAsync(const Model::ListChangeOrdersRequest& request, const ListChangeOrdersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListChangeOrdersOutcomeCallable listChangeOrdersCallable(const Model::ListChangeOrdersRequest& request) const; + ListConsumedServicesOutcome listConsumedServices(const Model::ListConsumedServicesRequest &request)const; + void listConsumedServicesAsync(const Model::ListConsumedServicesRequest& request, const ListConsumedServicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListConsumedServicesOutcomeCallable listConsumedServicesCallable(const Model::ListConsumedServicesRequest& request) const; + ListIngressesOutcome listIngresses(const Model::ListIngressesRequest &request)const; + void listIngressesAsync(const Model::ListIngressesRequest& request, const ListIngressesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListIngressesOutcomeCallable listIngressesCallable(const Model::ListIngressesRequest& request) const; + ListLogConfigsOutcome listLogConfigs(const Model::ListLogConfigsRequest &request)const; + void listLogConfigsAsync(const Model::ListLogConfigsRequest& request, const ListLogConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListLogConfigsOutcomeCallable listLogConfigsCallable(const Model::ListLogConfigsRequest& request) const; + ListNamespaceChangeOrdersOutcome listNamespaceChangeOrders(const Model::ListNamespaceChangeOrdersRequest &request)const; + void listNamespaceChangeOrdersAsync(const Model::ListNamespaceChangeOrdersRequest& request, const ListNamespaceChangeOrdersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListNamespaceChangeOrdersOutcomeCallable listNamespaceChangeOrdersCallable(const Model::ListNamespaceChangeOrdersRequest& request) const; + ListNamespacedConfigMapsOutcome listNamespacedConfigMaps(const Model::ListNamespacedConfigMapsRequest &request)const; + void listNamespacedConfigMapsAsync(const Model::ListNamespacedConfigMapsRequest& request, const ListNamespacedConfigMapsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListNamespacedConfigMapsOutcomeCallable listNamespacedConfigMapsCallable(const Model::ListNamespacedConfigMapsRequest& request) const; + ListPublishedServicesOutcome listPublishedServices(const Model::ListPublishedServicesRequest &request)const; + void listPublishedServicesAsync(const Model::ListPublishedServicesRequest& request, const ListPublishedServicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPublishedServicesOutcomeCallable listPublishedServicesCallable(const Model::ListPublishedServicesRequest& request) const; + ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; + void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const; + QueryResourceStaticsOutcome queryResourceStatics(const Model::QueryResourceStaticsRequest &request)const; + void queryResourceStaticsAsync(const Model::QueryResourceStaticsRequest& request, const QueryResourceStaticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryResourceStaticsOutcomeCallable queryResourceStaticsCallable(const Model::QueryResourceStaticsRequest& request) const; + RescaleApplicationOutcome rescaleApplication(const Model::RescaleApplicationRequest &request)const; + void rescaleApplicationAsync(const Model::RescaleApplicationRequest& request, const RescaleApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RescaleApplicationOutcomeCallable rescaleApplicationCallable(const Model::RescaleApplicationRequest& request) const; + RescaleApplicationVerticallyOutcome rescaleApplicationVertically(const Model::RescaleApplicationVerticallyRequest &request)const; + void rescaleApplicationVerticallyAsync(const Model::RescaleApplicationVerticallyRequest& request, const RescaleApplicationVerticallyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RescaleApplicationVerticallyOutcomeCallable rescaleApplicationVerticallyCallable(const Model::RescaleApplicationVerticallyRequest& request) const; + RestartApplicationOutcome restartApplication(const Model::RestartApplicationRequest &request)const; + void restartApplicationAsync(const Model::RestartApplicationRequest& request, const RestartApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RestartApplicationOutcomeCallable restartApplicationCallable(const Model::RestartApplicationRequest& request) const; + RollbackApplicationOutcome rollbackApplication(const Model::RollbackApplicationRequest &request)const; + void rollbackApplicationAsync(const Model::RollbackApplicationRequest& request, const RollbackApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RollbackApplicationOutcomeCallable rollbackApplicationCallable(const Model::RollbackApplicationRequest& request) const; + StartApplicationOutcome startApplication(const Model::StartApplicationRequest &request)const; + void startApplicationAsync(const Model::StartApplicationRequest& request, const StartApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartApplicationOutcomeCallable startApplicationCallable(const Model::StartApplicationRequest& request) const; + StopApplicationOutcome stopApplication(const Model::StopApplicationRequest &request)const; + void stopApplicationAsync(const Model::StopApplicationRequest& request, const StopApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopApplicationOutcomeCallable stopApplicationCallable(const Model::StopApplicationRequest& request) const; + TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; + void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; + UnbindSlbOutcome unbindSlb(const Model::UnbindSlbRequest &request)const; + void unbindSlbAsync(const Model::UnbindSlbRequest& request, const UnbindSlbAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnbindSlbOutcomeCallable unbindSlbCallable(const Model::UnbindSlbRequest& request) const; + UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; + void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const; + UpdateAppSecurityGroupOutcome updateAppSecurityGroup(const Model::UpdateAppSecurityGroupRequest &request)const; + void updateAppSecurityGroupAsync(const Model::UpdateAppSecurityGroupRequest& request, const UpdateAppSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAppSecurityGroupOutcomeCallable updateAppSecurityGroupCallable(const Model::UpdateAppSecurityGroupRequest& request) const; + UpdateConfigMapOutcome updateConfigMap(const Model::UpdateConfigMapRequest &request)const; + void updateConfigMapAsync(const Model::UpdateConfigMapRequest& request, const UpdateConfigMapAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateConfigMapOutcomeCallable updateConfigMapCallable(const Model::UpdateConfigMapRequest& request) const; + UpdateIngressOutcome updateIngress(const Model::UpdateIngressRequest &request)const; + void updateIngressAsync(const Model::UpdateIngressRequest& request, const UpdateIngressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateIngressOutcomeCallable updateIngressCallable(const Model::UpdateIngressRequest& request) const; + UpdateNamespaceOutcome updateNamespace(const Model::UpdateNamespaceRequest &request)const; + void updateNamespaceAsync(const Model::UpdateNamespaceRequest& request, const UpdateNamespaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateNamespaceOutcomeCallable updateNamespaceCallable(const Model::UpdateNamespaceRequest& request) const; + UpdateNamespaceVpcOutcome updateNamespaceVpc(const Model::UpdateNamespaceVpcRequest &request)const; + void updateNamespaceVpcAsync(const Model::UpdateNamespaceVpcRequest& request, const UpdateNamespaceVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateNamespaceVpcOutcomeCallable updateNamespaceVpcCallable(const Model::UpdateNamespaceVpcRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_SAE_SAECLIENT_H_ diff --git a/sae/include/alibabacloud/sae/SaeExport.h b/sae/include/alibabacloud/sae/SaeExport.h new file mode 100644 index 000000000..6a4060299 --- /dev/null +++ b/sae/include/alibabacloud/sae/SaeExport.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_SAEEXPORT_H_ +#define ALIBABACLOUD_SAE_SAEEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_SAE_LIBRARY) +# define ALIBABACLOUD_SAE_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_SAE_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_SAE_EXPORT +#endif + +#endif // !ALIBABACLOUD_SAE_SAEEXPORT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/AbortAndRollbackChangeOrderRequest.h b/sae/include/alibabacloud/sae/model/AbortAndRollbackChangeOrderRequest.h new file mode 100644 index 000000000..216b310c3 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/AbortAndRollbackChangeOrderRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_ABORTANDROLLBACKCHANGEORDERREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_ABORTANDROLLBACKCHANGEORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT AbortAndRollbackChangeOrderRequest : public RoaServiceRequest + { + + public: + AbortAndRollbackChangeOrderRequest(); + ~AbortAndRollbackChangeOrderRequest(); + + std::string getChangeOrderId()const; + void setChangeOrderId(const std::string& changeOrderId); + + private: + std::string changeOrderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_ABORTANDROLLBACKCHANGEORDERREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/AbortAndRollbackChangeOrderResult.h b/sae/include/alibabacloud/sae/model/AbortAndRollbackChangeOrderResult.h new file mode 100644 index 000000000..1f70c0d45 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/AbortAndRollbackChangeOrderResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_ABORTANDROLLBACKCHANGEORDERRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_ABORTANDROLLBACKCHANGEORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT AbortAndRollbackChangeOrderResult : public ServiceResult + { + public: + struct Data + { + std::string changeOrderId; + }; + + + AbortAndRollbackChangeOrderResult(); + explicit AbortAndRollbackChangeOrderResult(const std::string &payload); + ~AbortAndRollbackChangeOrderResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_ABORTANDROLLBACKCHANGEORDERRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/AbortChangeOrderRequest.h b/sae/include/alibabacloud/sae/model/AbortChangeOrderRequest.h new file mode 100644 index 000000000..8178afac4 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/AbortChangeOrderRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_ABORTCHANGEORDERREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_ABORTCHANGEORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT AbortChangeOrderRequest : public RoaServiceRequest + { + + public: + AbortChangeOrderRequest(); + ~AbortChangeOrderRequest(); + + std::string getChangeOrderId()const; + void setChangeOrderId(const std::string& changeOrderId); + + private: + std::string changeOrderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_ABORTCHANGEORDERREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/AbortChangeOrderResult.h b/sae/include/alibabacloud/sae/model/AbortChangeOrderResult.h new file mode 100644 index 000000000..907d98bae --- /dev/null +++ b/sae/include/alibabacloud/sae/model/AbortChangeOrderResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_ABORTCHANGEORDERRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_ABORTCHANGEORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT AbortChangeOrderResult : public ServiceResult + { + public: + struct Data + { + std::string changeOrderId; + }; + + + AbortChangeOrderResult(); + explicit AbortChangeOrderResult(const std::string &payload); + ~AbortChangeOrderResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_ABORTCHANGEORDERRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/BatchStartApplicationsRequest.h b/sae/include/alibabacloud/sae/model/BatchStartApplicationsRequest.h new file mode 100644 index 000000000..883164d13 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/BatchStartApplicationsRequest.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_SAE_MODEL_BATCHSTARTAPPLICATIONSREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_BATCHSTARTAPPLICATIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT BatchStartApplicationsRequest : public RoaServiceRequest + { + + public: + BatchStartApplicationsRequest(); + ~BatchStartApplicationsRequest(); + + std::string getAppIds()const; + void setAppIds(const std::string& appIds); + std::string getNamespaceId()const; + void setNamespaceId(const std::string& namespaceId); + + private: + std::string appIds_; + std::string namespaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_BATCHSTARTAPPLICATIONSREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/BatchStartApplicationsResult.h b/sae/include/alibabacloud/sae/model/BatchStartApplicationsResult.h new file mode 100644 index 000000000..ac741fec0 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/BatchStartApplicationsResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_BATCHSTARTAPPLICATIONSRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_BATCHSTARTAPPLICATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT BatchStartApplicationsResult : public ServiceResult + { + public: + struct Data + { + std::string changeOrderId; + }; + + + BatchStartApplicationsResult(); + explicit BatchStartApplicationsResult(const std::string &payload); + ~BatchStartApplicationsResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_BATCHSTARTAPPLICATIONSRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/BatchStopApplicationsRequest.h b/sae/include/alibabacloud/sae/model/BatchStopApplicationsRequest.h new file mode 100644 index 000000000..368c0ea3c --- /dev/null +++ b/sae/include/alibabacloud/sae/model/BatchStopApplicationsRequest.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_SAE_MODEL_BATCHSTOPAPPLICATIONSREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_BATCHSTOPAPPLICATIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT BatchStopApplicationsRequest : public RoaServiceRequest + { + + public: + BatchStopApplicationsRequest(); + ~BatchStopApplicationsRequest(); + + std::string getAppIds()const; + void setAppIds(const std::string& appIds); + std::string getNamespaceId()const; + void setNamespaceId(const std::string& namespaceId); + + private: + std::string appIds_; + std::string namespaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_BATCHSTOPAPPLICATIONSREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/BatchStopApplicationsResult.h b/sae/include/alibabacloud/sae/model/BatchStopApplicationsResult.h new file mode 100644 index 000000000..a16df8c0f --- /dev/null +++ b/sae/include/alibabacloud/sae/model/BatchStopApplicationsResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_BATCHSTOPAPPLICATIONSRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_BATCHSTOPAPPLICATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT BatchStopApplicationsResult : public ServiceResult + { + public: + struct Data + { + std::string changeOrderId; + }; + + + BatchStopApplicationsResult(); + explicit BatchStopApplicationsResult(const std::string &payload); + ~BatchStopApplicationsResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_BATCHSTOPAPPLICATIONSRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/BindSlbRequest.h b/sae/include/alibabacloud/sae/model/BindSlbRequest.h new file mode 100644 index 000000000..b2eb0bc02 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/BindSlbRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_BINDSLBREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_BINDSLBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT BindSlbRequest : public RoaServiceRequest + { + + public: + BindSlbRequest(); + ~BindSlbRequest(); + + std::string getIntranet()const; + void setIntranet(const std::string& intranet); + std::string getIntranetSlbId()const; + void setIntranetSlbId(const std::string& intranetSlbId); + std::string getInternetSlbId()const; + void setInternetSlbId(const std::string& internetSlbId); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getInternet()const; + void setInternet(const std::string& internet); + + private: + std::string intranet_; + std::string intranetSlbId_; + std::string internetSlbId_; + std::string appId_; + std::string internet_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_BINDSLBREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/BindSlbResult.h b/sae/include/alibabacloud/sae/model/BindSlbResult.h new file mode 100644 index 000000000..172ace560 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/BindSlbResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_BINDSLBRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_BINDSLBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT BindSlbResult : public ServiceResult + { + public: + struct Data + { + std::string changeOrderId; + }; + + + BindSlbResult(); + explicit BindSlbResult(const std::string &payload); + ~BindSlbResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_BINDSLBRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ConfirmPipelineBatchRequest.h b/sae/include/alibabacloud/sae/model/ConfirmPipelineBatchRequest.h new file mode 100644 index 000000000..1e8aad0f6 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ConfirmPipelineBatchRequest.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_SAE_MODEL_CONFIRMPIPELINEBATCHREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_CONFIRMPIPELINEBATCHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ConfirmPipelineBatchRequest : public RoaServiceRequest + { + + public: + ConfirmPipelineBatchRequest(); + ~ConfirmPipelineBatchRequest(); + + bool getConfirm()const; + void setConfirm(bool confirm); + std::string getPipelineId()const; + void setPipelineId(const std::string& pipelineId); + + private: + bool confirm_; + std::string pipelineId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_CONFIRMPIPELINEBATCHREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ConfirmPipelineBatchResult.h b/sae/include/alibabacloud/sae/model/ConfirmPipelineBatchResult.h new file mode 100644 index 000000000..40927b0fa --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ConfirmPipelineBatchResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_CONFIRMPIPELINEBATCHRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_CONFIRMPIPELINEBATCHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ConfirmPipelineBatchResult : public ServiceResult + { + public: + struct Data + { + std::string pipelineId; + }; + + + ConfirmPipelineBatchResult(); + explicit ConfirmPipelineBatchResult(const std::string &payload); + ~ConfirmPipelineBatchResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_CONFIRMPIPELINEBATCHRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/CreateApplicationRequest.h b/sae/include/alibabacloud/sae/model/CreateApplicationRequest.h new file mode 100644 index 000000000..36ba4c3f7 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/CreateApplicationRequest.h @@ -0,0 +1,165 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_CREATEAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_CREATEAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT CreateApplicationRequest : public RoaServiceRequest + { + + public: + CreateApplicationRequest(); + ~CreateApplicationRequest(); + + std::string getNasId()const; + void setNasId(const std::string& nasId); + std::string getWebContainer()const; + void setWebContainer(const std::string& webContainer); + std::string getJarStartArgs()const; + void setJarStartArgs(const std::string& jarStartArgs); + int getMemory()const; + void setMemory(int memory); + std::string getSlsConfigs()const; + void setSlsConfigs(const std::string& slsConfigs); + std::string getCommandArgs()const; + void setCommandArgs(const std::string& commandArgs); + std::string getReadiness()const; + void setReadiness(const std::string& readiness); + std::string getTimezone()const; + void setTimezone(const std::string& timezone); + std::string getMountHost()const; + void setMountHost(const std::string& mountHost); + bool getAutoConfig()const; + void setAutoConfig(bool autoConfig); + std::string getLiveness()const; + void setLiveness(const std::string& liveness); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + std::string getEnvs()const; + void setEnvs(const std::string& envs); + std::string getPhpArmsConfigLocation()const; + void setPhpArmsConfigLocation(const std::string& phpArmsConfigLocation); + std::string getPackageVersion()const; + void setPackageVersion(const std::string& packageVersion); + std::string getTomcatConfig()const; + void setTomcatConfig(const std::string& tomcatConfig); + std::string getCustomHostAlias()const; + void setCustomHostAlias(const std::string& customHostAlias); + bool getDeploy()const; + void setDeploy(bool deploy); + std::string getWarStartOptions()const; + void setWarStartOptions(const std::string& warStartOptions); + std::string getJarStartOptions()const; + void setJarStartOptions(const std::string& jarStartOptions); + std::string getEdasContainerVersion()const; + void setEdasContainerVersion(const std::string& edasContainerVersion); + std::string getAppName()const; + void setAppName(const std::string& appName); + std::string getNamespaceId()const; + void setNamespaceId(const std::string& namespaceId); + std::string getPackageUrl()const; + void setPackageUrl(const std::string& packageUrl); + int getTerminationGracePeriodSeconds()const; + void setTerminationGracePeriodSeconds(int terminationGracePeriodSeconds); + std::string getConfigMapMountDesc()const; + void setConfigMapMountDesc(const std::string& configMapMountDesc); + std::string getPhpConfig()const; + void setPhpConfig(const std::string& phpConfig); + std::string getPreStop()const; + void setPreStop(const std::string& preStop); + int getReplicas()const; + void setReplicas(int replicas); + int getCpu()const; + void setCpu(int cpu); + std::string getCommand()const; + void setCommand(const std::string& command); + std::string getMountDesc()const; + void setMountDesc(const std::string& mountDesc); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getJdk()const; + void setJdk(const std::string& jdk); + std::string getAppDescription()const; + void setAppDescription(const std::string& appDescription); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getImageUrl()const; + void setImageUrl(const std::string& imageUrl); + std::string getPackageType()const; + void setPackageType(const std::string& packageType); + std::string getPhpConfigLocation()const; + void setPhpConfigLocation(const std::string& phpConfigLocation); + std::string getPostStart()const; + void setPostStart(const std::string& postStart); + + private: + std::string nasId_; + std::string webContainer_; + std::string jarStartArgs_; + int memory_; + std::string slsConfigs_; + std::string commandArgs_; + std::string readiness_; + std::string timezone_; + std::string mountHost_; + bool autoConfig_; + std::string liveness_; + std::string securityGroupId_; + std::string envs_; + std::string phpArmsConfigLocation_; + std::string packageVersion_; + std::string tomcatConfig_; + std::string customHostAlias_; + bool deploy_; + std::string warStartOptions_; + std::string jarStartOptions_; + std::string edasContainerVersion_; + std::string appName_; + std::string namespaceId_; + std::string packageUrl_; + int terminationGracePeriodSeconds_; + std::string configMapMountDesc_; + std::string phpConfig_; + std::string preStop_; + int replicas_; + int cpu_; + std::string command_; + std::string mountDesc_; + std::string vSwitchId_; + std::string jdk_; + std::string appDescription_; + std::string vpcId_; + std::string imageUrl_; + std::string packageType_; + std::string phpConfigLocation_; + std::string postStart_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_CREATEAPPLICATIONREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/CreateApplicationResult.h b/sae/include/alibabacloud/sae/model/CreateApplicationResult.h new file mode 100644 index 000000000..fbef7e223 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/CreateApplicationResult.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_SAE_MODEL_CREATEAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_CREATEAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT CreateApplicationResult : public ServiceResult + { + public: + struct Data + { + std::string appId; + std::string changeOrderId; + }; + + + CreateApplicationResult(); + explicit CreateApplicationResult(const std::string &payload); + ~CreateApplicationResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_CREATEAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/CreateConfigMapRequest.h b/sae/include/alibabacloud/sae/model/CreateConfigMapRequest.h new file mode 100644 index 000000000..2f8c12acc --- /dev/null +++ b/sae/include/alibabacloud/sae/model/CreateConfigMapRequest.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_SAE_MODEL_CREATECONFIGMAPREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_CREATECONFIGMAPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT CreateConfigMapRequest : public RoaServiceRequest + { + + public: + CreateConfigMapRequest(); + ~CreateConfigMapRequest(); + + std::string getData()const; + void setData(const std::string& data); + std::string getNamespaceId()const; + void setNamespaceId(const std::string& namespaceId); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + + private: + std::string data_; + std::string namespaceId_; + std::string name_; + std::string description_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_CREATECONFIGMAPREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/CreateConfigMapResult.h b/sae/include/alibabacloud/sae/model/CreateConfigMapResult.h new file mode 100644 index 000000000..f7969b7c1 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/CreateConfigMapResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_CREATECONFIGMAPRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_CREATECONFIGMAPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT CreateConfigMapResult : public ServiceResult + { + public: + struct Data + { + long configMapId; + }; + + + CreateConfigMapResult(); + explicit CreateConfigMapResult(const std::string &payload); + ~CreateConfigMapResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_CREATECONFIGMAPRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/CreateIngressRequest.h b/sae/include/alibabacloud/sae/model/CreateIngressRequest.h new file mode 100644 index 000000000..15d8a34e8 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/CreateIngressRequest.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_SAE_MODEL_CREATEINGRESSREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_CREATEINGRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT CreateIngressRequest : public RoaServiceRequest + { + + public: + CreateIngressRequest(); + ~CreateIngressRequest(); + + int getListenerPort()const; + void setListenerPort(int listenerPort); + std::string getSlbId()const; + void setSlbId(const std::string& slbId); + std::string getNamespaceId()const; + void setNamespaceId(const std::string& namespaceId); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getRules()const; + void setRules(const std::string& rules); + std::string getCertId()const; + void setCertId(const std::string& certId); + std::string getDefaultRule()const; + void setDefaultRule(const std::string& defaultRule); + + private: + int listenerPort_; + std::string slbId_; + std::string namespaceId_; + std::string description_; + std::string rules_; + std::string certId_; + std::string defaultRule_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_CREATEINGRESSREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/CreateIngressResult.h b/sae/include/alibabacloud/sae/model/CreateIngressResult.h new file mode 100644 index 000000000..f6419a573 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/CreateIngressResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_CREATEINGRESSRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_CREATEINGRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT CreateIngressResult : public ServiceResult + { + public: + struct Data + { + long ingressId; + }; + + + CreateIngressResult(); + explicit CreateIngressResult(const std::string &payload); + ~CreateIngressResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_CREATEINGRESSRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/CreateNamespaceRequest.h b/sae/include/alibabacloud/sae/model/CreateNamespaceRequest.h new file mode 100644 index 000000000..3d9740ee5 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/CreateNamespaceRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_CREATENAMESPACEREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_CREATENAMESPACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT CreateNamespaceRequest : public RoaServiceRequest + { + + public: + CreateNamespaceRequest(); + ~CreateNamespaceRequest(); + + std::string getNamespaceName()const; + void setNamespaceName(const std::string& namespaceName); + std::string getNamespaceDescription()const; + void setNamespaceDescription(const std::string& namespaceDescription); + std::string getNamespaceId()const; + void setNamespaceId(const std::string& namespaceId); + + private: + std::string namespaceName_; + std::string namespaceDescription_; + std::string namespaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_CREATENAMESPACEREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/CreateNamespaceResult.h b/sae/include/alibabacloud/sae/model/CreateNamespaceResult.h new file mode 100644 index 000000000..9b84916c2 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/CreateNamespaceResult.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_SAE_MODEL_CREATENAMESPACERESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_CREATENAMESPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT CreateNamespaceResult : public ServiceResult + { + public: + struct Data + { + std::string namespaceName; + std::string regionId; + std::string namespaceId; + std::string namespaceDescription; + }; + + + CreateNamespaceResult(); + explicit CreateNamespaceResult(const std::string &payload); + ~CreateNamespaceResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_CREATENAMESPACERESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DeleteApplicationRequest.h b/sae/include/alibabacloud/sae/model/DeleteApplicationRequest.h new file mode 100644 index 000000000..c1c156632 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DeleteApplicationRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DELETEAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DELETEAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DeleteApplicationRequest : public RoaServiceRequest + { + + public: + DeleteApplicationRequest(); + ~DeleteApplicationRequest(); + + std::string getAppId()const; + void setAppId(const std::string& appId); + + private: + std::string appId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DELETEAPPLICATIONREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DeleteApplicationResult.h b/sae/include/alibabacloud/sae/model/DeleteApplicationResult.h new file mode 100644 index 000000000..47ce8a128 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DeleteApplicationResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DELETEAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DELETEAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DeleteApplicationResult : public ServiceResult + { + public: + struct Data + { + std::string changeOrderId; + }; + + + DeleteApplicationResult(); + explicit DeleteApplicationResult(const std::string &payload); + ~DeleteApplicationResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DELETEAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DeleteConfigMapRequest.h b/sae/include/alibabacloud/sae/model/DeleteConfigMapRequest.h new file mode 100644 index 000000000..ed1c200f3 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DeleteConfigMapRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DELETECONFIGMAPREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DELETECONFIGMAPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DeleteConfigMapRequest : public RoaServiceRequest + { + + public: + DeleteConfigMapRequest(); + ~DeleteConfigMapRequest(); + + long getConfigMapId()const; + void setConfigMapId(long configMapId); + + private: + long configMapId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DELETECONFIGMAPREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DeleteConfigMapResult.h b/sae/include/alibabacloud/sae/model/DeleteConfigMapResult.h new file mode 100644 index 000000000..5a27a679d --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DeleteConfigMapResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DELETECONFIGMAPRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DELETECONFIGMAPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DeleteConfigMapResult : public ServiceResult + { + public: + struct Data + { + long configMapId; + }; + + + DeleteConfigMapResult(); + explicit DeleteConfigMapResult(const std::string &payload); + ~DeleteConfigMapResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DELETECONFIGMAPRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DeleteIngressRequest.h b/sae/include/alibabacloud/sae/model/DeleteIngressRequest.h new file mode 100644 index 000000000..2c07de519 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DeleteIngressRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DELETEINGRESSREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DELETEINGRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DeleteIngressRequest : public RoaServiceRequest + { + + public: + DeleteIngressRequest(); + ~DeleteIngressRequest(); + + long getIngressId()const; + void setIngressId(long ingressId); + + private: + long ingressId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DELETEINGRESSREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DeleteIngressResult.h b/sae/include/alibabacloud/sae/model/DeleteIngressResult.h new file mode 100644 index 000000000..708482881 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DeleteIngressResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DELETEINGRESSRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DELETEINGRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DeleteIngressResult : public ServiceResult + { + public: + struct Data + { + long ingressId; + }; + + + DeleteIngressResult(); + explicit DeleteIngressResult(const std::string &payload); + ~DeleteIngressResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DELETEINGRESSRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DeleteNamespaceRequest.h b/sae/include/alibabacloud/sae/model/DeleteNamespaceRequest.h new file mode 100644 index 000000000..ec9152eff --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DeleteNamespaceRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DELETENAMESPACEREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DELETENAMESPACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DeleteNamespaceRequest : public RoaServiceRequest + { + + public: + DeleteNamespaceRequest(); + ~DeleteNamespaceRequest(); + + std::string getNamespaceId()const; + void setNamespaceId(const std::string& namespaceId); + + private: + std::string namespaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DELETENAMESPACEREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DeleteNamespaceResult.h b/sae/include/alibabacloud/sae/model/DeleteNamespaceResult.h new file mode 100644 index 000000000..84b7f3739 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DeleteNamespaceResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DELETENAMESPACERESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DELETENAMESPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DeleteNamespaceResult : public ServiceResult + { + public: + + + DeleteNamespaceResult(); + explicit DeleteNamespaceResult(const std::string &payload); + ~DeleteNamespaceResult(); + std::string getMessage()const; + std::string getTraceId()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DELETENAMESPACERESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DeployApplicationRequest.h b/sae/include/alibabacloud/sae/model/DeployApplicationRequest.h new file mode 100644 index 000000000..a2f7e9561 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DeployApplicationRequest.h @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DEPLOYAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DEPLOYAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DeployApplicationRequest : public RoaServiceRequest + { + + public: + DeployApplicationRequest(); + ~DeployApplicationRequest(); + + std::string getNasId()const; + void setNasId(const std::string& nasId); + std::string getWebContainer()const; + void setWebContainer(const std::string& webContainer); + std::string getJarStartArgs()const; + void setJarStartArgs(const std::string& jarStartArgs); + std::string getEnableAhas()const; + void setEnableAhas(const std::string& enableAhas); + std::string getSlsConfigs()const; + void setSlsConfigs(const std::string& slsConfigs); + std::string getCommandArgs()const; + void setCommandArgs(const std::string& commandArgs); + std::string getReadiness()const; + void setReadiness(const std::string& readiness); + std::string getTimezone()const; + void setTimezone(const std::string& timezone); + std::string getMountHost()const; + void setMountHost(const std::string& mountHost); + int getBatchWaitTime()const; + void setBatchWaitTime(int batchWaitTime); + std::string getLiveness()const; + void setLiveness(const std::string& liveness); + std::string getEnvs()const; + void setEnvs(const std::string& envs); + std::string getPhpArmsConfigLocation()const; + void setPhpArmsConfigLocation(const std::string& phpArmsConfigLocation); + std::string getPackageVersion()const; + void setPackageVersion(const std::string& packageVersion); + std::string getTomcatConfig()const; + void setTomcatConfig(const std::string& tomcatConfig); + std::string getCustomHostAlias()const; + void setCustomHostAlias(const std::string& customHostAlias); + std::string getWarStartOptions()const; + void setWarStartOptions(const std::string& warStartOptions); + std::string getJarStartOptions()const; + void setJarStartOptions(const std::string& jarStartOptions); + std::string getEdasContainerVersion()const; + void setEdasContainerVersion(const std::string& edasContainerVersion); + std::string getPackageUrl()const; + void setPackageUrl(const std::string& packageUrl); + int getTerminationGracePeriodSeconds()const; + void setTerminationGracePeriodSeconds(int terminationGracePeriodSeconds); + std::string getConfigMapMountDesc()const; + void setConfigMapMountDesc(const std::string& configMapMountDesc); + std::string getPhpConfig()const; + void setPhpConfig(const std::string& phpConfig); + std::string getPreStop()const; + void setPreStop(const std::string& preStop); + std::string getCommand()const; + void setCommand(const std::string& command); + std::string getUpdateStrategy()const; + void setUpdateStrategy(const std::string& updateStrategy); + std::string getMountDesc()const; + void setMountDesc(const std::string& mountDesc); + std::string getJdk()const; + void setJdk(const std::string& jdk); + int getMinReadyInstances()const; + void setMinReadyInstances(int minReadyInstances); + std::string getChangeOrderDesc()const; + void setChangeOrderDesc(const std::string& changeOrderDesc); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getImageUrl()const; + void setImageUrl(const std::string& imageUrl); + bool getAutoEnableApplicationScalingRule()const; + void setAutoEnableApplicationScalingRule(bool autoEnableApplicationScalingRule); + std::string getPhpConfigLocation()const; + void setPhpConfigLocation(const std::string& phpConfigLocation); + std::string getPostStart()const; + void setPostStart(const std::string& postStart); + + private: + std::string nasId_; + std::string webContainer_; + std::string jarStartArgs_; + std::string enableAhas_; + std::string slsConfigs_; + std::string commandArgs_; + std::string readiness_; + std::string timezone_; + std::string mountHost_; + int batchWaitTime_; + std::string liveness_; + std::string envs_; + std::string phpArmsConfigLocation_; + std::string packageVersion_; + std::string tomcatConfig_; + std::string customHostAlias_; + std::string warStartOptions_; + std::string jarStartOptions_; + std::string edasContainerVersion_; + std::string packageUrl_; + int terminationGracePeriodSeconds_; + std::string configMapMountDesc_; + std::string phpConfig_; + std::string preStop_; + std::string command_; + std::string updateStrategy_; + std::string mountDesc_; + std::string jdk_; + int minReadyInstances_; + std::string changeOrderDesc_; + std::string appId_; + std::string imageUrl_; + bool autoEnableApplicationScalingRule_; + std::string phpConfigLocation_; + std::string postStart_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DEPLOYAPPLICATIONREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DeployApplicationResult.h b/sae/include/alibabacloud/sae/model/DeployApplicationResult.h new file mode 100644 index 000000000..649d449d9 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DeployApplicationResult.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_SAE_MODEL_DEPLOYAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DEPLOYAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DeployApplicationResult : public ServiceResult + { + public: + struct Data + { + std::string appId; + std::string changeOrderId; + }; + + + DeployApplicationResult(); + explicit DeployApplicationResult(const std::string &payload); + ~DeployApplicationResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DEPLOYAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeApplicationConfigRequest.h b/sae/include/alibabacloud/sae/model/DescribeApplicationConfigRequest.h new file mode 100644 index 000000000..ff464b569 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeApplicationConfigRequest.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_SAE_MODEL_DESCRIBEAPPLICATIONCONFIGREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeApplicationConfigRequest : public RoaServiceRequest + { + + public: + DescribeApplicationConfigRequest(); + ~DescribeApplicationConfigRequest(); + + std::string getVersionId()const; + void setVersionId(const std::string& versionId); + std::string getAppId()const; + void setAppId(const std::string& appId); + + private: + std::string versionId_; + std::string appId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONCONFIGREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeApplicationConfigResult.h b/sae/include/alibabacloud/sae/model/DescribeApplicationConfigResult.h new file mode 100644 index 000000000..d9faae616 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeApplicationConfigResult.h @@ -0,0 +1,125 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONCONFIGRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeApplicationConfigResult : public ServiceResult + { + public: + struct Data + { + struct MountDescItem + { + std::string mountPath; + std::string nasPath; + }; + struct Tag + { + std::string value; + std::string key; + }; + struct ConfigMapMountDescItem + { + std::string mountPath; + long configMapId; + std::string configMapName; + std::string key; + }; + std::string timezone; + std::string appDescription; + std::string phpConfig; + std::vector mountDesc; + std::string nasId; + std::string liveness; + std::string warStartOptions; + int memory; + std::string webContainer; + std::string slsConfigs; + int cpu; + std::string packageVersion; + std::string appName; + std::string jdk; + std::string jarStartArgs; + std::string readiness; + int minReadyInstances; + std::string preStop; + std::string phpArmsConfigLocation; + std::string packageType; + std::vector tags; + std::string commandArgs; + int terminationGracePeriodSeconds; + std::string vSwitchId; + std::string envs; + std::string securityGroupId; + std::string imageUrl; + std::string postStart; + std::string jarStartOptions; + std::string mountHost; + int replicas; + std::string customHostAlias; + std::vector configMapMountDesc; + std::string appId; + std::string vpcId; + std::string command; + std::string edasContainerVersion; + std::string packageUrl; + std::string phpConfigLocation; + int batchWaitTime; + std::string namespaceId; + std::string regionId; + std::string enableAhas; + std::string tomcatConfig; + }; + + + DescribeApplicationConfigResult(); + explicit DescribeApplicationConfigResult(const std::string &payload); + ~DescribeApplicationConfigResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONCONFIGRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeApplicationGroupsRequest.h b/sae/include/alibabacloud/sae/model/DescribeApplicationGroupsRequest.h new file mode 100644 index 000000000..ac4b7aefb --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeApplicationGroupsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONGROUPSREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeApplicationGroupsRequest : public RoaServiceRequest + { + + public: + DescribeApplicationGroupsRequest(); + ~DescribeApplicationGroupsRequest(); + + std::string getAppId()const; + void setAppId(const std::string& appId); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + + private: + std::string appId_; + int pageSize_; + int currentPage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONGROUPSREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeApplicationGroupsResult.h b/sae/include/alibabacloud/sae/model/DescribeApplicationGroupsResult.h new file mode 100644 index 000000000..fdbd00450 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeApplicationGroupsResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONGROUPSRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeApplicationGroupsResult : public ServiceResult + { + public: + struct ApplicationGroup + { + std::string groupName; + std::string jdk; + int groupType; + std::string edasContainerVersion; + std::string packageType; + std::string webContainer; + std::string packageUrl; + std::string imageUrl; + int runningInstances; + int replicas; + std::string packageVersion; + std::string groupId; + }; + + + DescribeApplicationGroupsResult(); + explicit DescribeApplicationGroupsResult(const std::string &payload); + ~DescribeApplicationGroupsResult(); + std::string getMessage()const; + std::string getTraceId()const; + std::vector getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + std::vector data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONGROUPSRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeApplicationImageRequest.h b/sae/include/alibabacloud/sae/model/DescribeApplicationImageRequest.h new file mode 100644 index 000000000..23afa291b --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeApplicationImageRequest.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_SAE_MODEL_DESCRIBEAPPLICATIONIMAGEREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONIMAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeApplicationImageRequest : public RoaServiceRequest + { + + public: + DescribeApplicationImageRequest(); + ~DescribeApplicationImageRequest(); + + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getImageUrl()const; + void setImageUrl(const std::string& imageUrl); + + private: + std::string appId_; + std::string imageUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONIMAGEREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeApplicationImageResult.h b/sae/include/alibabacloud/sae/model/DescribeApplicationImageResult.h new file mode 100644 index 000000000..37f9b663d --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeApplicationImageResult.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_SAE_MODEL_DESCRIBEAPPLICATIONIMAGERESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeApplicationImageResult : public ServiceResult + { + public: + struct Data + { + std::string repoNamespace; + std::string repoOriginType; + std::string repoType; + std::string crUrl; + std::string repoName; + std::string regionId; + int repoId; + std::string repoTag; + std::string logo; + }; + + + DescribeApplicationImageResult(); + explicit DescribeApplicationImageResult(const std::string &payload); + ~DescribeApplicationImageResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONIMAGERESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeApplicationInstancesRequest.h b/sae/include/alibabacloud/sae/model/DescribeApplicationInstancesRequest.h new file mode 100644 index 000000000..1b7168eb4 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeApplicationInstancesRequest.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_SAE_MODEL_DESCRIBEAPPLICATIONINSTANCESREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeApplicationInstancesRequest : public RoaServiceRequest + { + + public: + DescribeApplicationInstancesRequest(); + ~DescribeApplicationInstancesRequest(); + + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + + private: + std::string appId_; + std::string groupId_; + int pageSize_; + int currentPage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeApplicationInstancesResult.h b/sae/include/alibabacloud/sae/model/DescribeApplicationInstancesResult.h new file mode 100644 index 000000000..dc7a47945 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeApplicationInstancesResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONINSTANCESRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeApplicationInstancesResult : public ServiceResult + { + public: + struct Data + { + struct Instance + { + std::string instanceContainerIp; + std::string instanceId; + std::string vSwitchId; + long instanceContainerRestarts; + std::string instanceContainerStatus; + long createTimeStamp; + std::string groupId; + std::string groupId1; + }; + std::vector instances; + int pageSize; + int currentPage; + int totalSize; + }; + + + DescribeApplicationInstancesResult(); + explicit DescribeApplicationInstancesResult(const std::string &payload); + ~DescribeApplicationInstancesResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONINSTANCESRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeApplicationSlbsRequest.h b/sae/include/alibabacloud/sae/model/DescribeApplicationSlbsRequest.h new file mode 100644 index 000000000..83a0b4cd5 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeApplicationSlbsRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONSLBSREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONSLBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeApplicationSlbsRequest : public RoaServiceRequest + { + + public: + DescribeApplicationSlbsRequest(); + ~DescribeApplicationSlbsRequest(); + + std::string getAppId()const; + void setAppId(const std::string& appId); + + private: + std::string appId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONSLBSREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeApplicationSlbsResult.h b/sae/include/alibabacloud/sae/model/DescribeApplicationSlbsResult.h new file mode 100644 index 000000000..cf1d97061 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeApplicationSlbsResult.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONSLBSRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONSLBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeApplicationSlbsResult : public ServiceResult + { + public: + struct Data + { + struct InternetItem + { + int targetPort; + int port; + std::string protocol; + std::string httpsCertId; + }; + struct IntranetItem + { + int targetPort; + int port; + std::string protocol; + std::string httpsCertId; + }; + std::string internetSlbId; + std::string internetIp; + std::vector intranet; + std::string intranetSlbId; + std::vector internet; + std::string intranetIp; + }; + + + DescribeApplicationSlbsResult(); + explicit DescribeApplicationSlbsResult(const std::string &payload); + ~DescribeApplicationSlbsResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONSLBSRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeApplicationStatusRequest.h b/sae/include/alibabacloud/sae/model/DescribeApplicationStatusRequest.h new file mode 100644 index 000000000..b9424f8e7 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeApplicationStatusRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONSTATUSREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeApplicationStatusRequest : public RoaServiceRequest + { + + public: + DescribeApplicationStatusRequest(); + ~DescribeApplicationStatusRequest(); + + std::string getAppId()const; + void setAppId(const std::string& appId); + + private: + std::string appId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONSTATUSREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeApplicationStatusResult.h b/sae/include/alibabacloud/sae/model/DescribeApplicationStatusResult.h new file mode 100644 index 000000000..673690e76 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeApplicationStatusResult.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_SAE_MODEL_DESCRIBEAPPLICATIONSTATUSRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeApplicationStatusResult : public ServiceResult + { + public: + struct Data + { + std::string armsAdvancedEnabled; + std::string armsApmInfo; + std::string appId; + bool lastChangeOrderRunning; + std::string currentStatus; + std::string lastChangeOrderId; + std::string createTime; + int runningInstances; + std::string lastChangeOrderStatus; + }; + + + DescribeApplicationStatusResult(); + explicit DescribeApplicationStatusResult(const std::string &payload); + ~DescribeApplicationStatusResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBEAPPLICATIONSTATUSRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeChangeOrderRequest.h b/sae/include/alibabacloud/sae/model/DescribeChangeOrderRequest.h new file mode 100644 index 000000000..429eb093c --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeChangeOrderRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBECHANGEORDERREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBECHANGEORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeChangeOrderRequest : public RoaServiceRequest + { + + public: + DescribeChangeOrderRequest(); + ~DescribeChangeOrderRequest(); + + std::string getChangeOrderId()const; + void setChangeOrderId(const std::string& changeOrderId); + + private: + std::string changeOrderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBECHANGEORDERREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeChangeOrderResult.h b/sae/include/alibabacloud/sae/model/DescribeChangeOrderResult.h new file mode 100644 index 000000000..80e351e5a --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeChangeOrderResult.h @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBECHANGEORDERRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBECHANGEORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeChangeOrderResult : public ServiceResult + { + public: + struct Data + { + struct Pipeline + { + int status; + std::string pipelineName; + int parallelCount; + long startTime; + long updateTime; + std::string pipelineId; + int batchType; + }; + int status; + std::string description; + std::vector pipelines; + bool supportAbortFreeze; + std::vector coTargets; + std::string createTime; + std::string changeOrderId; + std::string batchType; + std::string appName; + std::string currentPipelineId; + bool _auto; + std::string coTypeCode; + bool supportRollback; + int batchWaitTime; + std::string errorMessage; + std::string coType; + int batchCount; + }; + + + DescribeChangeOrderResult(); + explicit DescribeChangeOrderResult(const std::string &payload); + ~DescribeChangeOrderResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBECHANGEORDERRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeComponentsRequest.h b/sae/include/alibabacloud/sae/model/DescribeComponentsRequest.h new file mode 100644 index 000000000..bb2542845 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeComponentsRequest.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_SAE_MODEL_DESCRIBECOMPONENTSREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBECOMPONENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeComponentsRequest : public RoaServiceRequest + { + + public: + DescribeComponentsRequest(); + ~DescribeComponentsRequest(); + + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getType()const; + void setType(const std::string& type); + + private: + std::string appId_; + std::string type_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBECOMPONENTSREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeComponentsResult.h b/sae/include/alibabacloud/sae/model/DescribeComponentsResult.h new file mode 100644 index 000000000..7b672f7cb --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeComponentsResult.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_SAE_MODEL_DESCRIBECOMPONENTSRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBECOMPONENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeComponentsResult : public ServiceResult + { + public: + struct DataItem + { + std::string type; + std::string componentDescription; + std::string componentKey; + bool expired; + }; + + + DescribeComponentsResult(); + explicit DescribeComponentsResult(const std::string &payload); + ~DescribeComponentsResult(); + std::string getMessage()const; + std::string getTraceId()const; + std::vector getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + std::vector data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBECOMPONENTSRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeConfigMapRequest.h b/sae/include/alibabacloud/sae/model/DescribeConfigMapRequest.h new file mode 100644 index 000000000..d5403f171 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeConfigMapRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBECONFIGMAPREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBECONFIGMAPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeConfigMapRequest : public RoaServiceRequest + { + + public: + DescribeConfigMapRequest(); + ~DescribeConfigMapRequest(); + + long getConfigMapId()const; + void setConfigMapId(long configMapId); + + private: + long configMapId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBECONFIGMAPREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeConfigMapResult.h b/sae/include/alibabacloud/sae/model/DescribeConfigMapResult.h new file mode 100644 index 000000000..ed2ef28d5 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeConfigMapResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBECONFIGMAPRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBECONFIGMAPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeConfigMapResult : public ServiceResult + { + public: + struct Data + { + struct RelateApp + { + std::string appId; + std::string appName; + }; + std::string description; + long createTime; + long updateTime; + std::vector relateApps; + std::string data; + long configMapId; + std::string namespaceId; + std::string name; + }; + + + DescribeConfigMapResult(); + explicit DescribeConfigMapResult(const std::string &payload); + ~DescribeConfigMapResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBECONFIGMAPRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeEdasContainersRequest.h b/sae/include/alibabacloud/sae/model/DescribeEdasContainersRequest.h new file mode 100644 index 000000000..f29c2b36c --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeEdasContainersRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBEEDASCONTAINERSREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBEEDASCONTAINERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeEdasContainersRequest : public RoaServiceRequest + { + + public: + DescribeEdasContainersRequest(); + ~DescribeEdasContainersRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBEEDASCONTAINERSREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeEdasContainersResult.h b/sae/include/alibabacloud/sae/model/DescribeEdasContainersResult.h new file mode 100644 index 000000000..d939022d4 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeEdasContainersResult.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_SAE_MODEL_DESCRIBEEDASCONTAINERSRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBEEDASCONTAINERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeEdasContainersResult : public ServiceResult + { + public: + struct DataItem + { + std::string edasContainerVersion; + bool disabled; + }; + + + DescribeEdasContainersResult(); + explicit DescribeEdasContainersResult(const std::string &payload); + ~DescribeEdasContainersResult(); + std::string getMessage()const; + std::string getTraceId()const; + std::vector getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + std::vector data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBEEDASCONTAINERSRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeIngressRequest.h b/sae/include/alibabacloud/sae/model/DescribeIngressRequest.h new file mode 100644 index 000000000..ab633a11a --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeIngressRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBEINGRESSREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBEINGRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeIngressRequest : public RoaServiceRequest + { + + public: + DescribeIngressRequest(); + ~DescribeIngressRequest(); + + long getIngressId()const; + void setIngressId(long ingressId); + + private: + long ingressId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBEINGRESSREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeIngressResult.h b/sae/include/alibabacloud/sae/model/DescribeIngressResult.h new file mode 100644 index 000000000..192361f81 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeIngressResult.h @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBEINGRESSRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBEINGRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeIngressResult : public ServiceResult + { + public: + struct Data + { + struct DefaultRule + { + std::string appId; + int containerPort; + std::string appName; + }; + struct Rule + { + std::string path; + std::string appId; + int containerPort; + std::string domain; + std::string appName; + }; + DefaultRule defaultRule; + std::string slbId; + int listenerPort; + std::string description; + std::string certId; + long id; + std::string namespaceId; + std::vector rules; + std::string slbType; + std::string name; + }; + + + DescribeIngressResult(); + explicit DescribeIngressResult(const std::string &payload); + ~DescribeIngressResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBEINGRESSRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeInstanceLogRequest.h b/sae/include/alibabacloud/sae/model/DescribeInstanceLogRequest.h new file mode 100644 index 000000000..8099633ec --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeInstanceLogRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBEINSTANCELOGREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBEINSTANCELOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeInstanceLogRequest : public RoaServiceRequest + { + + public: + DescribeInstanceLogRequest(); + ~DescribeInstanceLogRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBEINSTANCELOGREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeInstanceLogResult.h b/sae/include/alibabacloud/sae/model/DescribeInstanceLogResult.h new file mode 100644 index 000000000..cc5caeae4 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeInstanceLogResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBEINSTANCELOGRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBEINSTANCELOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeInstanceLogResult : public ServiceResult + { + public: + + + DescribeInstanceLogResult(); + explicit DescribeInstanceLogResult(const std::string &payload); + ~DescribeInstanceLogResult(); + std::string getMessage()const; + std::string getTraceId()const; + std::string getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + std::string data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBEINSTANCELOGRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeInstanceSpecificationsRequest.h b/sae/include/alibabacloud/sae/model/DescribeInstanceSpecificationsRequest.h new file mode 100644 index 000000000..e1c497a99 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeInstanceSpecificationsRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBEINSTANCESPECIFICATIONSREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBEINSTANCESPECIFICATIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeInstanceSpecificationsRequest : public RoaServiceRequest + { + + public: + DescribeInstanceSpecificationsRequest(); + ~DescribeInstanceSpecificationsRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBEINSTANCESPECIFICATIONSREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeInstanceSpecificationsResult.h b/sae/include/alibabacloud/sae/model/DescribeInstanceSpecificationsResult.h new file mode 100644 index 000000000..a52953630 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeInstanceSpecificationsResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBEINSTANCESPECIFICATIONSRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBEINSTANCESPECIFICATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeInstanceSpecificationsResult : public ServiceResult + { + public: + struct DataItem + { + std::string specInfo; + int version; + int memory; + int cpu; + bool enable; + int id; + }; + + + DescribeInstanceSpecificationsResult(); + explicit DescribeInstanceSpecificationsResult(const std::string &payload); + ~DescribeInstanceSpecificationsResult(); + std::string getMessage()const; + std::string getTraceId()const; + std::vector getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + std::vector data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBEINSTANCESPECIFICATIONSRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeNamespaceListRequest.h b/sae/include/alibabacloud/sae/model/DescribeNamespaceListRequest.h new file mode 100644 index 000000000..c8d3168a8 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeNamespaceListRequest.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_SAE_MODEL_DESCRIBENAMESPACELISTREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBENAMESPACELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeNamespaceListRequest : public RoaServiceRequest + { + + public: + DescribeNamespaceListRequest(); + ~DescribeNamespaceListRequest(); + + bool getHybridCloudExclude()const; + void setHybridCloudExclude(bool hybridCloudExclude); + bool getContainCustom()const; + void setContainCustom(bool containCustom); + + private: + bool hybridCloudExclude_; + bool containCustom_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBENAMESPACELISTREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeNamespaceListResult.h b/sae/include/alibabacloud/sae/model/DescribeNamespaceListResult.h new file mode 100644 index 000000000..2b4457938 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeNamespaceListResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBENAMESPACELISTRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBENAMESPACELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeNamespaceListResult : public ServiceResult + { + public: + struct RegionList + { + std::string namespaceName; + std::string vpcId; + std::string vSwitchId; + std::string securityGroupId; + std::string agentInstall; + bool custom; + std::string namespaceId; + std::string regionId; + bool current; + bool hybridCloudEnable; + }; + + + DescribeNamespaceListResult(); + explicit DescribeNamespaceListResult(const std::string &payload); + ~DescribeNamespaceListResult(); + std::string getMessage()const; + std::string getTraceId()const; + std::vector getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + std::vector data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBENAMESPACELISTRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeNamespaceRequest.h b/sae/include/alibabacloud/sae/model/DescribeNamespaceRequest.h new file mode 100644 index 000000000..27aa92cfe --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeNamespaceRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBENAMESPACEREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBENAMESPACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeNamespaceRequest : public RoaServiceRequest + { + + public: + DescribeNamespaceRequest(); + ~DescribeNamespaceRequest(); + + std::string getNamespaceId()const; + void setNamespaceId(const std::string& namespaceId); + + private: + std::string namespaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBENAMESPACEREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeNamespaceResourcesRequest.h b/sae/include/alibabacloud/sae/model/DescribeNamespaceResourcesRequest.h new file mode 100644 index 000000000..c5ca327af --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeNamespaceResourcesRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBENAMESPACERESOURCESREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBENAMESPACERESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeNamespaceResourcesRequest : public RoaServiceRequest + { + + public: + DescribeNamespaceResourcesRequest(); + ~DescribeNamespaceResourcesRequest(); + + std::string getNamespaceId()const; + void setNamespaceId(const std::string& namespaceId); + + private: + std::string namespaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBENAMESPACERESOURCESREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeNamespaceResourcesResult.h b/sae/include/alibabacloud/sae/model/DescribeNamespaceResourcesResult.h new file mode 100644 index 000000000..1c8af544b --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeNamespaceResourcesResult.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBENAMESPACERESOURCESRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBENAMESPACERESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeNamespaceResourcesResult : public ServiceResult + { + public: + struct Data + { + std::string description; + std::string vSwitchId; + std::string securityGroupId; + long appCount; + bool notificationExpired; + std::string belongRegion; + std::string namespaceName; + std::string tenantId; + std::string vpcId; + bool lastChangeOrderRunning; + std::string userId; + std::string lastChangeOrderId; + std::string vpcName; + std::string vSwitchName; + std::string namespaceId; + std::string lastChangeOrderStatus; + }; + + + DescribeNamespaceResourcesResult(); + explicit DescribeNamespaceResourcesResult(const std::string &payload); + ~DescribeNamespaceResourcesResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBENAMESPACERESOURCESRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeNamespaceResult.h b/sae/include/alibabacloud/sae/model/DescribeNamespaceResult.h new file mode 100644 index 000000000..5069bf8a7 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeNamespaceResult.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_SAE_MODEL_DESCRIBENAMESPACERESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBENAMESPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeNamespaceResult : public ServiceResult + { + public: + struct Data + { + std::string namespaceName; + std::string regionId; + std::string namespaceId; + std::string namespaceDescription; + }; + + + DescribeNamespaceResult(); + explicit DescribeNamespaceResult(const std::string &payload); + ~DescribeNamespaceResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBENAMESPACERESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeNamespacesRequest.h b/sae/include/alibabacloud/sae/model/DescribeNamespacesRequest.h new file mode 100644 index 000000000..750c13577 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeNamespacesRequest.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_SAE_MODEL_DESCRIBENAMESPACESREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBENAMESPACESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeNamespacesRequest : public RoaServiceRequest + { + + public: + DescribeNamespacesRequest(); + ~DescribeNamespacesRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + + private: + int pageSize_; + int currentPage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBENAMESPACESREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeNamespacesResult.h b/sae/include/alibabacloud/sae/model/DescribeNamespacesResult.h new file mode 100644 index 000000000..8d8c680f2 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeNamespacesResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBENAMESPACESRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBENAMESPACESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeNamespacesResult : public ServiceResult + { + public: + struct Data + { + struct _Namespace + { + std::string namespaceName; + std::string secretKey; + std::string tenantId; + std::string addressServerHost; + std::string accessKey; + std::string regionId; + std::string namespaceId; + std::string namespaceDescription; + }; + std::vector<_Namespace> namespaces; + int pageSize; + int currentPage; + int totalSize; + }; + + + DescribeNamespacesResult(); + explicit DescribeNamespacesResult(const std::string &payload); + ~DescribeNamespacesResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBENAMESPACESRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeRegionsRequest.h b/sae/include/alibabacloud/sae/model/DescribeRegionsRequest.h new file mode 100644 index 000000000..e780db675 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeRegionsRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeRegionsRequest : public RoaServiceRequest + { + + public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/DescribeRegionsResult.h b/sae/include/alibabacloud/sae/model/DescribeRegionsResult.h new file mode 100644 index 000000000..5f3876bfc --- /dev/null +++ b/sae/include/alibabacloud/sae/model/DescribeRegionsResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT DescribeRegionsResult : public ServiceResult + { + public: + struct Region + { + std::string regionId; + std::string regionEndpoint; + std::string localName; + }; + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); + std::string getMessage()const; + std::vector getRegions()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector regions_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ListAppEventsRequest.h b/sae/include/alibabacloud/sae/model/ListAppEventsRequest.h new file mode 100644 index 000000000..0f32e7830 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ListAppEventsRequest.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_SAE_MODEL_LISTAPPEVENTSREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_LISTAPPEVENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ListAppEventsRequest : public RoaServiceRequest + { + + public: + ListAppEventsRequest(); + ~ListAppEventsRequest(); + + std::string getReason()const; + void setReason(const std::string& reason); + std::string getObjectKind()const; + void setObjectKind(const std::string& objectKind); + std::string getAppId()const; + void setAppId(const std::string& appId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getObjectName()const; + void setObjectName(const std::string& objectName); + std::string get_Namespace()const; + void set_Namespace(const std::string& _namespace); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getEventType()const; + void setEventType(const std::string& eventType); + + private: + std::string reason_; + std::string objectKind_; + std::string appId_; + int pageSize_; + std::string objectName_; + std::string _namespace_; + int currentPage_; + std::string eventType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_LISTAPPEVENTSREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ListAppEventsResult.h b/sae/include/alibabacloud/sae/model/ListAppEventsResult.h new file mode 100644 index 000000000..1ec6b4d71 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ListAppEventsResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_LISTAPPEVENTSRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_LISTAPPEVENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ListAppEventsResult : public ServiceResult + { + public: + struct Data + { + struct AppEventEntityItem + { + std::string message; + std::string lastTimestamp; + std::string eventType; + std::string objectKind; + std::string firstTimestamp; + std::string reason; + std::string objectName; + }; + int pageSize; + int currentPage; + std::vector appEventEntity; + int totalSize; + }; + + + ListAppEventsResult(); + explicit ListAppEventsResult(const std::string &payload); + ~ListAppEventsResult(); + std::string getMessage()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_LISTAPPEVENTSRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ListAppVersionsRequest.h b/sae/include/alibabacloud/sae/model/ListAppVersionsRequest.h new file mode 100644 index 000000000..c485b7b71 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ListAppVersionsRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_LISTAPPVERSIONSREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_LISTAPPVERSIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ListAppVersionsRequest : public RoaServiceRequest + { + + public: + ListAppVersionsRequest(); + ~ListAppVersionsRequest(); + + std::string getAppId()const; + void setAppId(const std::string& appId); + + private: + std::string appId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_LISTAPPVERSIONSREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ListAppVersionsResult.h b/sae/include/alibabacloud/sae/model/ListAppVersionsResult.h new file mode 100644 index 000000000..37d90aa34 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ListAppVersionsResult.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_SAE_MODEL_LISTAPPVERSIONSRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_LISTAPPVERSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ListAppVersionsResult : public ServiceResult + { + public: + struct PackageVersionEntity + { + std::string type; + std::string buildPackageUrl; + std::string warUrl; + std::string createTime; + std::string id; + }; + + + ListAppVersionsResult(); + explicit ListAppVersionsResult(const std::string &payload); + ~ListAppVersionsResult(); + std::string getMessage()const; + std::vector getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_LISTAPPVERSIONSRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ListApplicationsRequest.h b/sae/include/alibabacloud/sae/model/ListApplicationsRequest.h new file mode 100644 index 000000000..1596b2bb8 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ListApplicationsRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_LISTAPPLICATIONSREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_LISTAPPLICATIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ListApplicationsRequest : public RoaServiceRequest + { + + public: + ListApplicationsRequest(); + ~ListApplicationsRequest(); + + std::string getAppName()const; + void setAppName(const std::string& appName); + std::string getNamespaceId()const; + void setNamespaceId(const std::string& namespaceId); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getTags()const; + void setTags(const std::string& tags); + + private: + std::string appName_; + std::string namespaceId_; + int pageSize_; + int currentPage_; + std::string tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_LISTAPPLICATIONSREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ListApplicationsResult.h b/sae/include/alibabacloud/sae/model/ListApplicationsResult.h new file mode 100644 index 000000000..d966ee4e8 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ListApplicationsResult.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_LISTAPPLICATIONSRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_LISTAPPLICATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ListApplicationsResult : public ServiceResult + { + public: + struct Data + { + struct Application + { + struct TagsItem + { + std::string value; + std::string key; + }; + int instances; + bool scaleRuleEnabled; + std::string appId; + int runningInstances; + std::string regionId; + std::string namespaceId; + bool appDeletingStatus; + std::string scaleRuleType; + std::vector tags; + std::string appName; + }; + std::vector applications; + int pageSize; + int currentPage; + int totalSize; + }; + + + ListApplicationsResult(); + explicit ListApplicationsResult(const std::string &payload); + ~ListApplicationsResult(); + std::string getMessage()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_LISTAPPLICATIONSRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ListChangeOrdersRequest.h b/sae/include/alibabacloud/sae/model/ListChangeOrdersRequest.h new file mode 100644 index 000000000..5149fde2f --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ListChangeOrdersRequest.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_SAE_MODEL_LISTCHANGEORDERSREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_LISTCHANGEORDERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ListChangeOrdersRequest : public RoaServiceRequest + { + + public: + ListChangeOrdersRequest(); + ~ListChangeOrdersRequest(); + + std::string getCoType()const; + void setCoType(const std::string& coType); + std::string getAppId()const; + void setAppId(const std::string& appId); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getCoStatus()const; + void setCoStatus(const std::string& coStatus); + std::string getKey()const; + void setKey(const std::string& key); + + private: + std::string coType_; + std::string appId_; + int pageSize_; + int currentPage_; + std::string coStatus_; + std::string key_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_LISTCHANGEORDERSREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ListChangeOrdersResult.h b/sae/include/alibabacloud/sae/model/ListChangeOrdersResult.h new file mode 100644 index 000000000..9ab494ebc --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ListChangeOrdersResult.h @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_LISTCHANGEORDERSRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_LISTCHANGEORDERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ListChangeOrdersResult : public ServiceResult + { + public: + struct Data + { + struct ChangeOrder + { + int status; + std::string description; + std::string pipelines; + std::string createTime; + std::string changeOrderId; + std::string createUserId; + std::string batchType; + std::string source; + std::string groupId; + std::string appId; + std::string coTypeCode; + std::string finishTime; + std::string userId; + std::string coType; + int batchCount; + }; + int pageSize; + int currentPage; + std::vector changeOrderList; + int totalSize; + }; + + + ListChangeOrdersResult(); + explicit ListChangeOrdersResult(const std::string &payload); + ~ListChangeOrdersResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_LISTCHANGEORDERSRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ListConsumedServicesRequest.h b/sae/include/alibabacloud/sae/model/ListConsumedServicesRequest.h new file mode 100644 index 000000000..72a071b79 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ListConsumedServicesRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_LISTCONSUMEDSERVICESREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_LISTCONSUMEDSERVICESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ListConsumedServicesRequest : public RoaServiceRequest + { + + public: + ListConsumedServicesRequest(); + ~ListConsumedServicesRequest(); + + std::string getAppId()const; + void setAppId(const std::string& appId); + + private: + std::string appId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_LISTCONSUMEDSERVICESREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ListConsumedServicesResult.h b/sae/include/alibabacloud/sae/model/ListConsumedServicesResult.h new file mode 100644 index 000000000..9edd3075f --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ListConsumedServicesResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_LISTCONSUMEDSERVICESRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_LISTCONSUMEDSERVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ListConsumedServicesResult : public ServiceResult + { + public: + struct ListConsumedServices + { + std::string group2Ip; + std::string type; + std::string appId; + std::string version; + std::vector groups; + std::vector ips; + std::string name; + }; + + + ListConsumedServicesResult(); + explicit ListConsumedServicesResult(const std::string &payload); + ~ListConsumedServicesResult(); + std::string getMessage()const; + std::string getTraceId()const; + std::vector getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + std::vector data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_LISTCONSUMEDSERVICESRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ListIngressesRequest.h b/sae/include/alibabacloud/sae/model/ListIngressesRequest.h new file mode 100644 index 000000000..7f6f32c6f --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ListIngressesRequest.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_SAE_MODEL_LISTINGRESSESREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_LISTINGRESSESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ListIngressesRequest : public RoaServiceRequest + { + + public: + ListIngressesRequest(); + ~ListIngressesRequest(); + + std::string getNamespaceId()const; + void setNamespaceId(const std::string& namespaceId); + std::string getAppId()const; + void setAppId(const std::string& appId); + + private: + std::string namespaceId_; + std::string appId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_LISTINGRESSESREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ListIngressesResult.h b/sae/include/alibabacloud/sae/model/ListIngressesResult.h new file mode 100644 index 000000000..4aa69ffb1 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ListIngressesResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_LISTINGRESSESRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_LISTINGRESSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ListIngressesResult : public ServiceResult + { + public: + struct Data + { + struct Ingress + { + std::string slbId; + std::string listenerPort; + std::string description; + std::string certId; + long id; + std::string namespaceId; + std::string slbType; + std::string name; + }; + std::vector ingressList; + }; + + + ListIngressesResult(); + explicit ListIngressesResult(const std::string &payload); + ~ListIngressesResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_LISTINGRESSESRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ListLogConfigsRequest.h b/sae/include/alibabacloud/sae/model/ListLogConfigsRequest.h new file mode 100644 index 000000000..2634aba83 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ListLogConfigsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_LISTLOGCONFIGSREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_LISTLOGCONFIGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ListLogConfigsRequest : public RoaServiceRequest + { + + public: + ListLogConfigsRequest(); + ~ListLogConfigsRequest(); + + std::string getAppId()const; + void setAppId(const std::string& appId); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + + private: + std::string appId_; + int pageSize_; + int currentPage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_LISTLOGCONFIGSREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ListLogConfigsResult.h b/sae/include/alibabacloud/sae/model/ListLogConfigsResult.h new file mode 100644 index 000000000..482218a82 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ListLogConfigsResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_LISTLOGCONFIGSRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_LISTLOGCONFIGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ListLogConfigsResult : public ServiceResult + { + public: + struct Data + { + struct LogConfig + { + std::string slsLogStore; + std::string storeType; + std::string slsProject; + std::string configName; + std::string logDir; + std::string createTime; + std::string logType; + std::string regionId; + }; + std::vector logConfigs; + int pageSize; + int currentPage; + int totalSize; + }; + + + ListLogConfigsResult(); + explicit ListLogConfigsResult(const std::string &payload); + ~ListLogConfigsResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_LISTLOGCONFIGSRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ListNamespaceChangeOrdersRequest.h b/sae/include/alibabacloud/sae/model/ListNamespaceChangeOrdersRequest.h new file mode 100644 index 000000000..14b6aa575 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ListNamespaceChangeOrdersRequest.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_SAE_MODEL_LISTNAMESPACECHANGEORDERSREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_LISTNAMESPACECHANGEORDERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ListNamespaceChangeOrdersRequest : public RoaServiceRequest + { + + public: + ListNamespaceChangeOrdersRequest(); + ~ListNamespaceChangeOrdersRequest(); + + std::string getCoType()const; + void setCoType(const std::string& coType); + std::string getNamespaceId()const; + void setNamespaceId(const std::string& namespaceId); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getCoStatus()const; + void setCoStatus(const std::string& coStatus); + std::string getKey()const; + void setKey(const std::string& key); + + private: + std::string coType_; + std::string namespaceId_; + int pageSize_; + int currentPage_; + std::string coStatus_; + std::string key_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_LISTNAMESPACECHANGEORDERSREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ListNamespaceChangeOrdersResult.h b/sae/include/alibabacloud/sae/model/ListNamespaceChangeOrdersResult.h new file mode 100644 index 000000000..dcb7838be --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ListNamespaceChangeOrdersResult.h @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_LISTNAMESPACECHANGEORDERSRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_LISTNAMESPACECHANGEORDERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ListNamespaceChangeOrdersResult : public ServiceResult + { + public: + struct Data + { + struct ChangeOrder + { + int status; + std::string description; + std::string pipelines; + std::string createTime; + std::string changeOrderId; + std::string createUserId; + std::string batchType; + std::string source; + std::string groupId; + std::string coTypeCode; + std::string finishTime; + std::string userId; + std::string namespaceId; + std::string coType; + int batchCount; + }; + int pageSize; + int currentPage; + std::vector changeOrderList; + int totalSize; + }; + + + ListNamespaceChangeOrdersResult(); + explicit ListNamespaceChangeOrdersResult(const std::string &payload); + ~ListNamespaceChangeOrdersResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_LISTNAMESPACECHANGEORDERSRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ListNamespacedConfigMapsRequest.h b/sae/include/alibabacloud/sae/model/ListNamespacedConfigMapsRequest.h new file mode 100644 index 000000000..43d2d7d11 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ListNamespacedConfigMapsRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_LISTNAMESPACEDCONFIGMAPSREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_LISTNAMESPACEDCONFIGMAPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ListNamespacedConfigMapsRequest : public RoaServiceRequest + { + + public: + ListNamespacedConfigMapsRequest(); + ~ListNamespacedConfigMapsRequest(); + + std::string getNamespaceId()const; + void setNamespaceId(const std::string& namespaceId); + + private: + std::string namespaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_LISTNAMESPACEDCONFIGMAPSREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ListNamespacedConfigMapsResult.h b/sae/include/alibabacloud/sae/model/ListNamespacedConfigMapsResult.h new file mode 100644 index 000000000..429988e8a --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ListNamespacedConfigMapsResult.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_LISTNAMESPACEDCONFIGMAPSRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_LISTNAMESPACEDCONFIGMAPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ListNamespacedConfigMapsResult : public ServiceResult + { + public: + struct Data + { + struct ConfigMap + { + struct RelateApp + { + std::string appId; + std::string appName; + }; + std::string description; + long createTime; + long updateTime; + std::vector relateApps; + std::string data; + long configMapId; + std::string namespaceId; + std::string name; + }; + std::vector configMaps; + }; + + + ListNamespacedConfigMapsResult(); + explicit ListNamespacedConfigMapsResult(const std::string &payload); + ~ListNamespacedConfigMapsResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_LISTNAMESPACEDCONFIGMAPSRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ListPublishedServicesRequest.h b/sae/include/alibabacloud/sae/model/ListPublishedServicesRequest.h new file mode 100644 index 000000000..6e95fe29c --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ListPublishedServicesRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_LISTPUBLISHEDSERVICESREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_LISTPUBLISHEDSERVICESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ListPublishedServicesRequest : public RoaServiceRequest + { + + public: + ListPublishedServicesRequest(); + ~ListPublishedServicesRequest(); + + std::string getAppId()const; + void setAppId(const std::string& appId); + + private: + std::string appId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_LISTPUBLISHEDSERVICESREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ListPublishedServicesResult.h b/sae/include/alibabacloud/sae/model/ListPublishedServicesResult.h new file mode 100644 index 000000000..e3d69472a --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ListPublishedServicesResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_LISTPUBLISHEDSERVICESRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_LISTPUBLISHEDSERVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ListPublishedServicesResult : public ServiceResult + { + public: + struct DataItem + { + std::string group2Ip; + std::string type; + std::string appId; + std::string version; + std::vector groups; + std::vector ips; + std::string name; + }; + + + ListPublishedServicesResult(); + explicit ListPublishedServicesResult(const std::string &payload); + ~ListPublishedServicesResult(); + std::string getMessage()const; + std::string getTraceId()const; + std::vector getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + std::vector data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_LISTPUBLISHEDSERVICESRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ListTagResourcesRequest.h b/sae/include/alibabacloud/sae/model/ListTagResourcesRequest.h new file mode 100644 index 000000000..c89965073 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ListTagResourcesRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ListTagResourcesRequest : public RoaServiceRequest + { + + public: + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getResourceIds()const; + void setResourceIds(const std::string& resourceIds); + std::string getTags()const; + void setTags(const std::string& tags); + + private: + std::string regionId_; + std::string nextToken_; + std::string resourceType_; + std::string resourceIds_; + std::string tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_LISTTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/ListTagResourcesResult.h b/sae/include/alibabacloud/sae/model/ListTagResourcesResult.h new file mode 100644 index 000000000..7218396df --- /dev/null +++ b/sae/include/alibabacloud/sae/model/ListTagResourcesResult.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_SAE_MODEL_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_LISTTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT ListTagResourcesResult : public ServiceResult + { + public: + struct Data + { + struct TagResource + { + std::string resourceId; + std::string tagKey; + std::string resourceType; + std::string tagValue; + }; + std::string nextToken; + std::vector tagResources; + }; + + + ListTagResourcesResult(); + explicit ListTagResourcesResult(const std::string &payload); + ~ListTagResourcesResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/QueryResourceStaticsRequest.h b/sae/include/alibabacloud/sae/model/QueryResourceStaticsRequest.h new file mode 100644 index 000000000..71a597374 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/QueryResourceStaticsRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_QUERYRESOURCESTATICSREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_QUERYRESOURCESTATICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT QueryResourceStaticsRequest : public RoaServiceRequest + { + + public: + QueryResourceStaticsRequest(); + ~QueryResourceStaticsRequest(); + + std::string getAppId()const; + void setAppId(const std::string& appId); + + private: + std::string appId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_QUERYRESOURCESTATICSREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/QueryResourceStaticsResult.h b/sae/include/alibabacloud/sae/model/QueryResourceStaticsResult.h new file mode 100644 index 000000000..3621650b1 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/QueryResourceStaticsResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_QUERYRESOURCESTATICSRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_QUERYRESOURCESTATICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT QueryResourceStaticsResult : public ServiceResult + { + public: + struct Data + { + struct RealTimeRes + { + float memory; + float cpu; + }; + struct Summary + { + float memory; + float cpu; + }; + Summary summary; + RealTimeRes realTimeRes; + }; + + + QueryResourceStaticsResult(); + explicit QueryResourceStaticsResult(const std::string &payload); + ~QueryResourceStaticsResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_QUERYRESOURCESTATICSRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/RescaleApplicationRequest.h b/sae/include/alibabacloud/sae/model/RescaleApplicationRequest.h new file mode 100644 index 000000000..673504148 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/RescaleApplicationRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_RESCALEAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_RESCALEAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT RescaleApplicationRequest : public RoaServiceRequest + { + + public: + RescaleApplicationRequest(); + ~RescaleApplicationRequest(); + + int getMinReadyInstances()const; + void setMinReadyInstances(int minReadyInstances); + int getReplicas()const; + void setReplicas(int replicas); + std::string getAppId()const; + void setAppId(const std::string& appId); + + private: + int minReadyInstances_; + int replicas_; + std::string appId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_RESCALEAPPLICATIONREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/RescaleApplicationResult.h b/sae/include/alibabacloud/sae/model/RescaleApplicationResult.h new file mode 100644 index 000000000..8006bff3b --- /dev/null +++ b/sae/include/alibabacloud/sae/model/RescaleApplicationResult.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_SAE_MODEL_RESCALEAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_RESCALEAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT RescaleApplicationResult : public ServiceResult + { + public: + struct Data + { + std::string changeOrderId; + }; + + + RescaleApplicationResult(); + explicit RescaleApplicationResult(const std::string &payload); + ~RescaleApplicationResult(); + std::string getMessage()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_RESCALEAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/RescaleApplicationVerticallyRequest.h b/sae/include/alibabacloud/sae/model/RescaleApplicationVerticallyRequest.h new file mode 100644 index 000000000..01b14d8a1 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/RescaleApplicationVerticallyRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_RESCALEAPPLICATIONVERTICALLYREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_RESCALEAPPLICATIONVERTICALLYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT RescaleApplicationVerticallyRequest : public RoaServiceRequest + { + + public: + RescaleApplicationVerticallyRequest(); + ~RescaleApplicationVerticallyRequest(); + + std::string getMemory()const; + void setMemory(const std::string& memory); + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getCpu()const; + void setCpu(const std::string& cpu); + + private: + std::string memory_; + std::string appId_; + std::string cpu_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_RESCALEAPPLICATIONVERTICALLYREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/RescaleApplicationVerticallyResult.h b/sae/include/alibabacloud/sae/model/RescaleApplicationVerticallyResult.h new file mode 100644 index 000000000..183245f7f --- /dev/null +++ b/sae/include/alibabacloud/sae/model/RescaleApplicationVerticallyResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_RESCALEAPPLICATIONVERTICALLYRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_RESCALEAPPLICATIONVERTICALLYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT RescaleApplicationVerticallyResult : public ServiceResult + { + public: + struct Data + { + std::string changeOrderId; + }; + + + RescaleApplicationVerticallyResult(); + explicit RescaleApplicationVerticallyResult(const std::string &payload); + ~RescaleApplicationVerticallyResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_RESCALEAPPLICATIONVERTICALLYRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/RestartApplicationRequest.h b/sae/include/alibabacloud/sae/model/RestartApplicationRequest.h new file mode 100644 index 000000000..9b53d3b35 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/RestartApplicationRequest.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_SAE_MODEL_RESTARTAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_RESTARTAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT RestartApplicationRequest : public RoaServiceRequest + { + + public: + RestartApplicationRequest(); + ~RestartApplicationRequest(); + + int getMinReadyInstances()const; + void setMinReadyInstances(int minReadyInstances); + std::string getAppId()const; + void setAppId(const std::string& appId); + + private: + int minReadyInstances_; + std::string appId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_RESTARTAPPLICATIONREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/RestartApplicationResult.h b/sae/include/alibabacloud/sae/model/RestartApplicationResult.h new file mode 100644 index 000000000..b70d2d9cd --- /dev/null +++ b/sae/include/alibabacloud/sae/model/RestartApplicationResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_RESTARTAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_RESTARTAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT RestartApplicationResult : public ServiceResult + { + public: + struct Data + { + std::string changeOrderId; + }; + + + RestartApplicationResult(); + explicit RestartApplicationResult(const std::string &payload); + ~RestartApplicationResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_RESTARTAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/RollbackApplicationRequest.h b/sae/include/alibabacloud/sae/model/RollbackApplicationRequest.h new file mode 100644 index 000000000..18b6b733e --- /dev/null +++ b/sae/include/alibabacloud/sae/model/RollbackApplicationRequest.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_SAE_MODEL_ROLLBACKAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_ROLLBACKAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT RollbackApplicationRequest : public RoaServiceRequest + { + + public: + RollbackApplicationRequest(); + ~RollbackApplicationRequest(); + + int getMinReadyInstances()const; + void setMinReadyInstances(int minReadyInstances); + std::string getVersionId()const; + void setVersionId(const std::string& versionId); + std::string getAppId()const; + void setAppId(const std::string& appId); + int getBatchWaitTime()const; + void setBatchWaitTime(int batchWaitTime); + std::string getAutoEnableApplicationScalingRule()const; + void setAutoEnableApplicationScalingRule(const std::string& autoEnableApplicationScalingRule); + std::string getUpdateStrategy()const; + void setUpdateStrategy(const std::string& updateStrategy); + + private: + int minReadyInstances_; + std::string versionId_; + std::string appId_; + int batchWaitTime_; + std::string autoEnableApplicationScalingRule_; + std::string updateStrategy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_ROLLBACKAPPLICATIONREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/RollbackApplicationResult.h b/sae/include/alibabacloud/sae/model/RollbackApplicationResult.h new file mode 100644 index 000000000..4883f1a04 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/RollbackApplicationResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_ROLLBACKAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_ROLLBACKAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT RollbackApplicationResult : public ServiceResult + { + public: + struct Data + { + std::string changeOrderId; + }; + + + RollbackApplicationResult(); + explicit RollbackApplicationResult(const std::string &payload); + ~RollbackApplicationResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_ROLLBACKAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/StartApplicationRequest.h b/sae/include/alibabacloud/sae/model/StartApplicationRequest.h new file mode 100644 index 000000000..929b142eb --- /dev/null +++ b/sae/include/alibabacloud/sae/model/StartApplicationRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_STARTAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_STARTAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT StartApplicationRequest : public RoaServiceRequest + { + + public: + StartApplicationRequest(); + ~StartApplicationRequest(); + + std::string getAppId()const; + void setAppId(const std::string& appId); + + private: + std::string appId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_STARTAPPLICATIONREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/StartApplicationResult.h b/sae/include/alibabacloud/sae/model/StartApplicationResult.h new file mode 100644 index 000000000..30022427b --- /dev/null +++ b/sae/include/alibabacloud/sae/model/StartApplicationResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_STARTAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_STARTAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT StartApplicationResult : public ServiceResult + { + public: + struct Data + { + std::string changeOrderId; + }; + + + StartApplicationResult(); + explicit StartApplicationResult(const std::string &payload); + ~StartApplicationResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_STARTAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/StopApplicationRequest.h b/sae/include/alibabacloud/sae/model/StopApplicationRequest.h new file mode 100644 index 000000000..f55c21376 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/StopApplicationRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_STOPAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_STOPAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT StopApplicationRequest : public RoaServiceRequest + { + + public: + StopApplicationRequest(); + ~StopApplicationRequest(); + + std::string getAppId()const; + void setAppId(const std::string& appId); + + private: + std::string appId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_STOPAPPLICATIONREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/StopApplicationResult.h b/sae/include/alibabacloud/sae/model/StopApplicationResult.h new file mode 100644 index 000000000..3113098db --- /dev/null +++ b/sae/include/alibabacloud/sae/model/StopApplicationResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_STOPAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_STOPAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT StopApplicationResult : public ServiceResult + { + public: + struct Data + { + std::string changeOrderId; + }; + + + StopApplicationResult(); + explicit StopApplicationResult(const std::string &payload); + ~StopApplicationResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_STOPAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/TagResourcesRequest.h b/sae/include/alibabacloud/sae/model/TagResourcesRequest.h new file mode 100644 index 000000000..83bcdd5f7 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/TagResourcesRequest.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_SAE_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT TagResourcesRequest : public RoaServiceRequest + { + + public: + TagResourcesRequest(); + ~TagResourcesRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getTags()const; + void setTags(const std::string& tags); + std::string getResourceIds()const; + void setResourceIds(const std::string& resourceIds); + + private: + std::string regionId_; + std::string resourceType_; + std::string tags_; + std::string resourceIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_TAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/TagResourcesResult.h b/sae/include/alibabacloud/sae/model/TagResourcesResult.h new file mode 100644 index 000000000..a13908a66 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/TagResourcesResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + std::string getMessage()const; + std::string getTraceId()const; + bool getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + bool data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/UnbindSlbRequest.h b/sae/include/alibabacloud/sae/model/UnbindSlbRequest.h new file mode 100644 index 000000000..2bf059c90 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/UnbindSlbRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_UNBINDSLBREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_UNBINDSLBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT UnbindSlbRequest : public RoaServiceRequest + { + + public: + UnbindSlbRequest(); + ~UnbindSlbRequest(); + + bool getIntranet()const; + void setIntranet(bool intranet); + std::string getAppId()const; + void setAppId(const std::string& appId); + bool getInternet()const; + void setInternet(bool internet); + + private: + bool intranet_; + std::string appId_; + bool internet_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_UNBINDSLBREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/UnbindSlbResult.h b/sae/include/alibabacloud/sae/model/UnbindSlbResult.h new file mode 100644 index 000000000..4041e52a7 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/UnbindSlbResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_UNBINDSLBRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_UNBINDSLBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT UnbindSlbResult : public ServiceResult + { + public: + struct Data + { + std::string changeOrderId; + }; + + + UnbindSlbResult(); + explicit UnbindSlbResult(const std::string &payload); + ~UnbindSlbResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_UNBINDSLBRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/UntagResourcesRequest.h b/sae/include/alibabacloud/sae/model/UntagResourcesRequest.h new file mode 100644 index 000000000..7c6950f8a --- /dev/null +++ b/sae/include/alibabacloud/sae/model/UntagResourcesRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT UntagResourcesRequest : public RoaServiceRequest + { + + public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getTagKeys()const; + void setTagKeys(const std::string& tagKeys); + bool getDeleteAll()const; + void setDeleteAll(bool deleteAll); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getResourceIds()const; + void setResourceIds(const std::string& resourceIds); + + private: + std::string regionId_; + std::string tagKeys_; + bool deleteAll_; + std::string resourceType_; + std::string resourceIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_UNTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/UntagResourcesResult.h b/sae/include/alibabacloud/sae/model/UntagResourcesResult.h new file mode 100644 index 000000000..d10a784af --- /dev/null +++ b/sae/include/alibabacloud/sae/model/UntagResourcesResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT UntagResourcesResult : public ServiceResult + { + public: + + + UntagResourcesResult(); + explicit UntagResourcesResult(const std::string &payload); + ~UntagResourcesResult(); + std::string getMessage()const; + std::string getTraceId()const; + bool getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + bool data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/UpdateAppSecurityGroupRequest.h b/sae/include/alibabacloud/sae/model/UpdateAppSecurityGroupRequest.h new file mode 100644 index 000000000..26ea1d020 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/UpdateAppSecurityGroupRequest.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_SAE_MODEL_UPDATEAPPSECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_UPDATEAPPSECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT UpdateAppSecurityGroupRequest : public RoaServiceRequest + { + + public: + UpdateAppSecurityGroupRequest(); + ~UpdateAppSecurityGroupRequest(); + + std::string getAppId()const; + void setAppId(const std::string& appId); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + + private: + std::string appId_; + std::string securityGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_UPDATEAPPSECURITYGROUPREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/UpdateAppSecurityGroupResult.h b/sae/include/alibabacloud/sae/model/UpdateAppSecurityGroupResult.h new file mode 100644 index 000000000..2c80517f1 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/UpdateAppSecurityGroupResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_UPDATEAPPSECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_UPDATEAPPSECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT UpdateAppSecurityGroupResult : public ServiceResult + { + public: + + + UpdateAppSecurityGroupResult(); + explicit UpdateAppSecurityGroupResult(const std::string &payload); + ~UpdateAppSecurityGroupResult(); + std::string getMessage()const; + std::string getTraceId()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_UPDATEAPPSECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/UpdateConfigMapRequest.h b/sae/include/alibabacloud/sae/model/UpdateConfigMapRequest.h new file mode 100644 index 000000000..80c4e545b --- /dev/null +++ b/sae/include/alibabacloud/sae/model/UpdateConfigMapRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_UPDATECONFIGMAPREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_UPDATECONFIGMAPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT UpdateConfigMapRequest : public RoaServiceRequest + { + + public: + UpdateConfigMapRequest(); + ~UpdateConfigMapRequest(); + + std::string getData()const; + void setData(const std::string& data); + std::string getDescription()const; + void setDescription(const std::string& description); + long getConfigMapId()const; + void setConfigMapId(long configMapId); + + private: + std::string data_; + std::string description_; + long configMapId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_UPDATECONFIGMAPREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/UpdateConfigMapResult.h b/sae/include/alibabacloud/sae/model/UpdateConfigMapResult.h new file mode 100644 index 000000000..b99c9a0e2 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/UpdateConfigMapResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_UPDATECONFIGMAPRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_UPDATECONFIGMAPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT UpdateConfigMapResult : public ServiceResult + { + public: + struct Data + { + std::string configMapId; + }; + + + UpdateConfigMapResult(); + explicit UpdateConfigMapResult(const std::string &payload); + ~UpdateConfigMapResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_UPDATECONFIGMAPRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/UpdateIngressRequest.h b/sae/include/alibabacloud/sae/model/UpdateIngressRequest.h new file mode 100644 index 000000000..b0aa3b19b --- /dev/null +++ b/sae/include/alibabacloud/sae/model/UpdateIngressRequest.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_SAE_MODEL_UPDATEINGRESSREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_UPDATEINGRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT UpdateIngressRequest : public RoaServiceRequest + { + + public: + UpdateIngressRequest(); + ~UpdateIngressRequest(); + + long getIngressId()const; + void setIngressId(long ingressId); + std::string getListenerPort()const; + void setListenerPort(const std::string& listenerPort); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getRules()const; + void setRules(const std::string& rules); + std::string getCertId()const; + void setCertId(const std::string& certId); + std::string getDefaultRule()const; + void setDefaultRule(const std::string& defaultRule); + + private: + long ingressId_; + std::string listenerPort_; + std::string description_; + std::string rules_; + std::string certId_; + std::string defaultRule_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_UPDATEINGRESSREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/UpdateIngressResult.h b/sae/include/alibabacloud/sae/model/UpdateIngressResult.h new file mode 100644 index 000000000..16d6a72f4 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/UpdateIngressResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_UPDATEINGRESSRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_UPDATEINGRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT UpdateIngressResult : public ServiceResult + { + public: + struct Data + { + long ingressId; + }; + + + UpdateIngressResult(); + explicit UpdateIngressResult(const std::string &payload); + ~UpdateIngressResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_UPDATEINGRESSRESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/UpdateNamespaceRequest.h b/sae/include/alibabacloud/sae/model/UpdateNamespaceRequest.h new file mode 100644 index 000000000..66b3422c7 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/UpdateNamespaceRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_UPDATENAMESPACEREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_UPDATENAMESPACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT UpdateNamespaceRequest : public RoaServiceRequest + { + + public: + UpdateNamespaceRequest(); + ~UpdateNamespaceRequest(); + + std::string getNamespaceName()const; + void setNamespaceName(const std::string& namespaceName); + std::string getNamespaceDescription()const; + void setNamespaceDescription(const std::string& namespaceDescription); + std::string getNamespaceId()const; + void setNamespaceId(const std::string& namespaceId); + + private: + std::string namespaceName_; + std::string namespaceDescription_; + std::string namespaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_UPDATENAMESPACEREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/UpdateNamespaceResult.h b/sae/include/alibabacloud/sae/model/UpdateNamespaceResult.h new file mode 100644 index 000000000..0ece9b849 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/UpdateNamespaceResult.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_SAE_MODEL_UPDATENAMESPACERESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_UPDATENAMESPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT UpdateNamespaceResult : public ServiceResult + { + public: + struct Data + { + std::string namespaceName; + std::string regionId; + std::string namespaceId; + std::string namespaceDescription; + }; + + + UpdateNamespaceResult(); + explicit UpdateNamespaceResult(const std::string &payload); + ~UpdateNamespaceResult(); + std::string getMessage()const; + std::string getTraceId()const; + Data getData()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + Data data_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_UPDATENAMESPACERESULT_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/UpdateNamespaceVpcRequest.h b/sae/include/alibabacloud/sae/model/UpdateNamespaceVpcRequest.h new file mode 100644 index 000000000..bf6729dd8 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/UpdateNamespaceVpcRequest.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_SAE_MODEL_UPDATENAMESPACEVPCREQUEST_H_ +#define ALIBABACLOUD_SAE_MODEL_UPDATENAMESPACEVPCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT UpdateNamespaceVpcRequest : public RoaServiceRequest + { + + public: + UpdateNamespaceVpcRequest(); + ~UpdateNamespaceVpcRequest(); + + std::string getNamespaceId()const; + void setNamespaceId(const std::string& namespaceId); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + + private: + std::string namespaceId_; + std::string vpcId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_UPDATENAMESPACEVPCREQUEST_H_ \ No newline at end of file diff --git a/sae/include/alibabacloud/sae/model/UpdateNamespaceVpcResult.h b/sae/include/alibabacloud/sae/model/UpdateNamespaceVpcResult.h new file mode 100644 index 000000000..1eaa063d2 --- /dev/null +++ b/sae/include/alibabacloud/sae/model/UpdateNamespaceVpcResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAE_MODEL_UPDATENAMESPACEVPCRESULT_H_ +#define ALIBABACLOUD_SAE_MODEL_UPDATENAMESPACEVPCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sae + { + namespace Model + { + class ALIBABACLOUD_SAE_EXPORT UpdateNamespaceVpcResult : public ServiceResult + { + public: + + + UpdateNamespaceVpcResult(); + explicit UpdateNamespaceVpcResult(const std::string &payload); + ~UpdateNamespaceVpcResult(); + std::string getMessage()const; + std::string getTraceId()const; + std::string getErrorCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string traceId_; + std::string errorCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAE_MODEL_UPDATENAMESPACEVPCRESULT_H_ \ No newline at end of file diff --git a/sae/src/SaeClient.cc b/sae/src/SaeClient.cc new file mode 100644 index 000000000..109bbd72b --- /dev/null +++ b/sae/src/SaeClient.cc @@ -0,0 +1,2177 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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::Sae; +using namespace AlibabaCloud::Sae::Model; + +namespace +{ + const std::string SERVICE_NAME = "sae"; +} + +SaeClient::SaeClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RoaServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "serverless"); +} + +SaeClient::SaeClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "serverless"); +} + +SaeClient::SaeClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RoaServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "serverless"); +} + +SaeClient::~SaeClient() +{} + +SaeClient::AbortAndRollbackChangeOrderOutcome SaeClient::abortAndRollbackChangeOrder(const AbortAndRollbackChangeOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AbortAndRollbackChangeOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AbortAndRollbackChangeOrderOutcome(AbortAndRollbackChangeOrderResult(outcome.result())); + else + return AbortAndRollbackChangeOrderOutcome(outcome.error()); +} + +void SaeClient::abortAndRollbackChangeOrderAsync(const AbortAndRollbackChangeOrderRequest& request, const AbortAndRollbackChangeOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, abortAndRollbackChangeOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::AbortAndRollbackChangeOrderOutcomeCallable SaeClient::abortAndRollbackChangeOrderCallable(const AbortAndRollbackChangeOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->abortAndRollbackChangeOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::AbortChangeOrderOutcome SaeClient::abortChangeOrder(const AbortChangeOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AbortChangeOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AbortChangeOrderOutcome(AbortChangeOrderResult(outcome.result())); + else + return AbortChangeOrderOutcome(outcome.error()); +} + +void SaeClient::abortChangeOrderAsync(const AbortChangeOrderRequest& request, const AbortChangeOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, abortChangeOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::AbortChangeOrderOutcomeCallable SaeClient::abortChangeOrderCallable(const AbortChangeOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->abortChangeOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::BatchStartApplicationsOutcome SaeClient::batchStartApplications(const BatchStartApplicationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchStartApplicationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchStartApplicationsOutcome(BatchStartApplicationsResult(outcome.result())); + else + return BatchStartApplicationsOutcome(outcome.error()); +} + +void SaeClient::batchStartApplicationsAsync(const BatchStartApplicationsRequest& request, const BatchStartApplicationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchStartApplications(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::BatchStartApplicationsOutcomeCallable SaeClient::batchStartApplicationsCallable(const BatchStartApplicationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchStartApplications(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::BatchStopApplicationsOutcome SaeClient::batchStopApplications(const BatchStopApplicationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchStopApplicationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchStopApplicationsOutcome(BatchStopApplicationsResult(outcome.result())); + else + return BatchStopApplicationsOutcome(outcome.error()); +} + +void SaeClient::batchStopApplicationsAsync(const BatchStopApplicationsRequest& request, const BatchStopApplicationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchStopApplications(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::BatchStopApplicationsOutcomeCallable SaeClient::batchStopApplicationsCallable(const BatchStopApplicationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchStopApplications(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::BindSlbOutcome SaeClient::bindSlb(const BindSlbRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindSlbOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindSlbOutcome(BindSlbResult(outcome.result())); + else + return BindSlbOutcome(outcome.error()); +} + +void SaeClient::bindSlbAsync(const BindSlbRequest& request, const BindSlbAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindSlb(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::BindSlbOutcomeCallable SaeClient::bindSlbCallable(const BindSlbRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindSlb(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::ConfirmPipelineBatchOutcome SaeClient::confirmPipelineBatch(const ConfirmPipelineBatchRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ConfirmPipelineBatchOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ConfirmPipelineBatchOutcome(ConfirmPipelineBatchResult(outcome.result())); + else + return ConfirmPipelineBatchOutcome(outcome.error()); +} + +void SaeClient::confirmPipelineBatchAsync(const ConfirmPipelineBatchRequest& request, const ConfirmPipelineBatchAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, confirmPipelineBatch(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::ConfirmPipelineBatchOutcomeCallable SaeClient::confirmPipelineBatchCallable(const ConfirmPipelineBatchRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->confirmPipelineBatch(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::CreateApplicationOutcome SaeClient::createApplication(const CreateApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateApplicationOutcome(CreateApplicationResult(outcome.result())); + else + return CreateApplicationOutcome(outcome.error()); +} + +void SaeClient::createApplicationAsync(const CreateApplicationRequest& request, const CreateApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::CreateApplicationOutcomeCallable SaeClient::createApplicationCallable(const CreateApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::CreateConfigMapOutcome SaeClient::createConfigMap(const CreateConfigMapRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateConfigMapOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateConfigMapOutcome(CreateConfigMapResult(outcome.result())); + else + return CreateConfigMapOutcome(outcome.error()); +} + +void SaeClient::createConfigMapAsync(const CreateConfigMapRequest& request, const CreateConfigMapAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createConfigMap(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::CreateConfigMapOutcomeCallable SaeClient::createConfigMapCallable(const CreateConfigMapRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createConfigMap(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::CreateIngressOutcome SaeClient::createIngress(const CreateIngressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateIngressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateIngressOutcome(CreateIngressResult(outcome.result())); + else + return CreateIngressOutcome(outcome.error()); +} + +void SaeClient::createIngressAsync(const CreateIngressRequest& request, const CreateIngressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createIngress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::CreateIngressOutcomeCallable SaeClient::createIngressCallable(const CreateIngressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createIngress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::CreateNamespaceOutcome SaeClient::createNamespace(const CreateNamespaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNamespaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNamespaceOutcome(CreateNamespaceResult(outcome.result())); + else + return CreateNamespaceOutcome(outcome.error()); +} + +void SaeClient::createNamespaceAsync(const CreateNamespaceRequest& request, const CreateNamespaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNamespace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::CreateNamespaceOutcomeCallable SaeClient::createNamespaceCallable(const CreateNamespaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNamespace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DeleteApplicationOutcome SaeClient::deleteApplication(const DeleteApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteApplicationOutcome(DeleteApplicationResult(outcome.result())); + else + return DeleteApplicationOutcome(outcome.error()); +} + +void SaeClient::deleteApplicationAsync(const DeleteApplicationRequest& request, const DeleteApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::DeleteApplicationOutcomeCallable SaeClient::deleteApplicationCallable(const DeleteApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DeleteConfigMapOutcome SaeClient::deleteConfigMap(const DeleteConfigMapRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteConfigMapOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteConfigMapOutcome(DeleteConfigMapResult(outcome.result())); + else + return DeleteConfigMapOutcome(outcome.error()); +} + +void SaeClient::deleteConfigMapAsync(const DeleteConfigMapRequest& request, const DeleteConfigMapAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteConfigMap(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::DeleteConfigMapOutcomeCallable SaeClient::deleteConfigMapCallable(const DeleteConfigMapRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteConfigMap(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DeleteIngressOutcome SaeClient::deleteIngress(const DeleteIngressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteIngressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteIngressOutcome(DeleteIngressResult(outcome.result())); + else + return DeleteIngressOutcome(outcome.error()); +} + +void SaeClient::deleteIngressAsync(const DeleteIngressRequest& request, const DeleteIngressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteIngress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::DeleteIngressOutcomeCallable SaeClient::deleteIngressCallable(const DeleteIngressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteIngress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DeleteNamespaceOutcome SaeClient::deleteNamespace(const DeleteNamespaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNamespaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNamespaceOutcome(DeleteNamespaceResult(outcome.result())); + else + return DeleteNamespaceOutcome(outcome.error()); +} + +void SaeClient::deleteNamespaceAsync(const DeleteNamespaceRequest& request, const DeleteNamespaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNamespace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::DeleteNamespaceOutcomeCallable SaeClient::deleteNamespaceCallable(const DeleteNamespaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNamespace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DeployApplicationOutcome SaeClient::deployApplication(const DeployApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeployApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeployApplicationOutcome(DeployApplicationResult(outcome.result())); + else + return DeployApplicationOutcome(outcome.error()); +} + +void SaeClient::deployApplicationAsync(const DeployApplicationRequest& request, const DeployApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deployApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::DeployApplicationOutcomeCallable SaeClient::deployApplicationCallable(const DeployApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deployApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DescribeApplicationConfigOutcome SaeClient::describeApplicationConfig(const DescribeApplicationConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApplicationConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApplicationConfigOutcome(DescribeApplicationConfigResult(outcome.result())); + else + return DescribeApplicationConfigOutcome(outcome.error()); +} + +void SaeClient::describeApplicationConfigAsync(const DescribeApplicationConfigRequest& request, const DescribeApplicationConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApplicationConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::DescribeApplicationConfigOutcomeCallable SaeClient::describeApplicationConfigCallable(const DescribeApplicationConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApplicationConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DescribeApplicationGroupsOutcome SaeClient::describeApplicationGroups(const DescribeApplicationGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApplicationGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApplicationGroupsOutcome(DescribeApplicationGroupsResult(outcome.result())); + else + return DescribeApplicationGroupsOutcome(outcome.error()); +} + +void SaeClient::describeApplicationGroupsAsync(const DescribeApplicationGroupsRequest& request, const DescribeApplicationGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApplicationGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::DescribeApplicationGroupsOutcomeCallable SaeClient::describeApplicationGroupsCallable(const DescribeApplicationGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApplicationGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DescribeApplicationImageOutcome SaeClient::describeApplicationImage(const DescribeApplicationImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApplicationImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApplicationImageOutcome(DescribeApplicationImageResult(outcome.result())); + else + return DescribeApplicationImageOutcome(outcome.error()); +} + +void SaeClient::describeApplicationImageAsync(const DescribeApplicationImageRequest& request, const DescribeApplicationImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApplicationImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::DescribeApplicationImageOutcomeCallable SaeClient::describeApplicationImageCallable(const DescribeApplicationImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApplicationImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DescribeApplicationInstancesOutcome SaeClient::describeApplicationInstances(const DescribeApplicationInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApplicationInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApplicationInstancesOutcome(DescribeApplicationInstancesResult(outcome.result())); + else + return DescribeApplicationInstancesOutcome(outcome.error()); +} + +void SaeClient::describeApplicationInstancesAsync(const DescribeApplicationInstancesRequest& request, const DescribeApplicationInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApplicationInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::DescribeApplicationInstancesOutcomeCallable SaeClient::describeApplicationInstancesCallable(const DescribeApplicationInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApplicationInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DescribeApplicationSlbsOutcome SaeClient::describeApplicationSlbs(const DescribeApplicationSlbsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApplicationSlbsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApplicationSlbsOutcome(DescribeApplicationSlbsResult(outcome.result())); + else + return DescribeApplicationSlbsOutcome(outcome.error()); +} + +void SaeClient::describeApplicationSlbsAsync(const DescribeApplicationSlbsRequest& request, const DescribeApplicationSlbsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApplicationSlbs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::DescribeApplicationSlbsOutcomeCallable SaeClient::describeApplicationSlbsCallable(const DescribeApplicationSlbsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApplicationSlbs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DescribeApplicationStatusOutcome SaeClient::describeApplicationStatus(const DescribeApplicationStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApplicationStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApplicationStatusOutcome(DescribeApplicationStatusResult(outcome.result())); + else + return DescribeApplicationStatusOutcome(outcome.error()); +} + +void SaeClient::describeApplicationStatusAsync(const DescribeApplicationStatusRequest& request, const DescribeApplicationStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApplicationStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::DescribeApplicationStatusOutcomeCallable SaeClient::describeApplicationStatusCallable(const DescribeApplicationStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApplicationStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DescribeChangeOrderOutcome SaeClient::describeChangeOrder(const DescribeChangeOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeChangeOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeChangeOrderOutcome(DescribeChangeOrderResult(outcome.result())); + else + return DescribeChangeOrderOutcome(outcome.error()); +} + +void SaeClient::describeChangeOrderAsync(const DescribeChangeOrderRequest& request, const DescribeChangeOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeChangeOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::DescribeChangeOrderOutcomeCallable SaeClient::describeChangeOrderCallable(const DescribeChangeOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeChangeOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DescribeComponentsOutcome SaeClient::describeComponents(const DescribeComponentsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeComponentsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeComponentsOutcome(DescribeComponentsResult(outcome.result())); + else + return DescribeComponentsOutcome(outcome.error()); +} + +void SaeClient::describeComponentsAsync(const DescribeComponentsRequest& request, const DescribeComponentsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeComponents(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::DescribeComponentsOutcomeCallable SaeClient::describeComponentsCallable(const DescribeComponentsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeComponents(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DescribeConfigMapOutcome SaeClient::describeConfigMap(const DescribeConfigMapRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeConfigMapOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeConfigMapOutcome(DescribeConfigMapResult(outcome.result())); + else + return DescribeConfigMapOutcome(outcome.error()); +} + +void SaeClient::describeConfigMapAsync(const DescribeConfigMapRequest& request, const DescribeConfigMapAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeConfigMap(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::DescribeConfigMapOutcomeCallable SaeClient::describeConfigMapCallable(const DescribeConfigMapRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeConfigMap(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DescribeEdasContainersOutcome SaeClient::describeEdasContainers(const DescribeEdasContainersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEdasContainersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEdasContainersOutcome(DescribeEdasContainersResult(outcome.result())); + else + return DescribeEdasContainersOutcome(outcome.error()); +} + +void SaeClient::describeEdasContainersAsync(const DescribeEdasContainersRequest& request, const DescribeEdasContainersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEdasContainers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::DescribeEdasContainersOutcomeCallable SaeClient::describeEdasContainersCallable(const DescribeEdasContainersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEdasContainers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DescribeIngressOutcome SaeClient::describeIngress(const DescribeIngressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeIngressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeIngressOutcome(DescribeIngressResult(outcome.result())); + else + return DescribeIngressOutcome(outcome.error()); +} + +void SaeClient::describeIngressAsync(const DescribeIngressRequest& request, const DescribeIngressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeIngress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::DescribeIngressOutcomeCallable SaeClient::describeIngressCallable(const DescribeIngressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeIngress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DescribeInstanceLogOutcome SaeClient::describeInstanceLog(const DescribeInstanceLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceLogOutcome(DescribeInstanceLogResult(outcome.result())); + else + return DescribeInstanceLogOutcome(outcome.error()); +} + +void SaeClient::describeInstanceLogAsync(const DescribeInstanceLogRequest& request, const DescribeInstanceLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstanceLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::DescribeInstanceLogOutcomeCallable SaeClient::describeInstanceLogCallable(const DescribeInstanceLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstanceLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DescribeInstanceSpecificationsOutcome SaeClient::describeInstanceSpecifications(const DescribeInstanceSpecificationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceSpecificationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceSpecificationsOutcome(DescribeInstanceSpecificationsResult(outcome.result())); + else + return DescribeInstanceSpecificationsOutcome(outcome.error()); +} + +void SaeClient::describeInstanceSpecificationsAsync(const DescribeInstanceSpecificationsRequest& request, const DescribeInstanceSpecificationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstanceSpecifications(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::DescribeInstanceSpecificationsOutcomeCallable SaeClient::describeInstanceSpecificationsCallable(const DescribeInstanceSpecificationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstanceSpecifications(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DescribeNamespaceOutcome SaeClient::describeNamespace(const DescribeNamespaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNamespaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNamespaceOutcome(DescribeNamespaceResult(outcome.result())); + else + return DescribeNamespaceOutcome(outcome.error()); +} + +void SaeClient::describeNamespaceAsync(const DescribeNamespaceRequest& request, const DescribeNamespaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNamespace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::DescribeNamespaceOutcomeCallable SaeClient::describeNamespaceCallable(const DescribeNamespaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNamespace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DescribeNamespaceListOutcome SaeClient::describeNamespaceList(const DescribeNamespaceListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNamespaceListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNamespaceListOutcome(DescribeNamespaceListResult(outcome.result())); + else + return DescribeNamespaceListOutcome(outcome.error()); +} + +void SaeClient::describeNamespaceListAsync(const DescribeNamespaceListRequest& request, const DescribeNamespaceListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNamespaceList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::DescribeNamespaceListOutcomeCallable SaeClient::describeNamespaceListCallable(const DescribeNamespaceListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNamespaceList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DescribeNamespaceResourcesOutcome SaeClient::describeNamespaceResources(const DescribeNamespaceResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNamespaceResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNamespaceResourcesOutcome(DescribeNamespaceResourcesResult(outcome.result())); + else + return DescribeNamespaceResourcesOutcome(outcome.error()); +} + +void SaeClient::describeNamespaceResourcesAsync(const DescribeNamespaceResourcesRequest& request, const DescribeNamespaceResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNamespaceResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::DescribeNamespaceResourcesOutcomeCallable SaeClient::describeNamespaceResourcesCallable(const DescribeNamespaceResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNamespaceResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DescribeNamespacesOutcome SaeClient::describeNamespaces(const DescribeNamespacesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNamespacesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNamespacesOutcome(DescribeNamespacesResult(outcome.result())); + else + return DescribeNamespacesOutcome(outcome.error()); +} + +void SaeClient::describeNamespacesAsync(const DescribeNamespacesRequest& request, const DescribeNamespacesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNamespaces(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::DescribeNamespacesOutcomeCallable SaeClient::describeNamespacesCallable(const DescribeNamespacesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNamespaces(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::DescribeRegionsOutcome SaeClient::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 SaeClient::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)); +} + +SaeClient::DescribeRegionsOutcomeCallable SaeClient::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(); +} + +SaeClient::ListAppEventsOutcome SaeClient::listAppEvents(const ListAppEventsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAppEventsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAppEventsOutcome(ListAppEventsResult(outcome.result())); + else + return ListAppEventsOutcome(outcome.error()); +} + +void SaeClient::listAppEventsAsync(const ListAppEventsRequest& request, const ListAppEventsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAppEvents(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::ListAppEventsOutcomeCallable SaeClient::listAppEventsCallable(const ListAppEventsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAppEvents(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::ListAppVersionsOutcome SaeClient::listAppVersions(const ListAppVersionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAppVersionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAppVersionsOutcome(ListAppVersionsResult(outcome.result())); + else + return ListAppVersionsOutcome(outcome.error()); +} + +void SaeClient::listAppVersionsAsync(const ListAppVersionsRequest& request, const ListAppVersionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAppVersions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::ListAppVersionsOutcomeCallable SaeClient::listAppVersionsCallable(const ListAppVersionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAppVersions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::ListApplicationsOutcome SaeClient::listApplications(const ListApplicationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListApplicationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListApplicationsOutcome(ListApplicationsResult(outcome.result())); + else + return ListApplicationsOutcome(outcome.error()); +} + +void SaeClient::listApplicationsAsync(const ListApplicationsRequest& request, const ListApplicationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listApplications(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::ListApplicationsOutcomeCallable SaeClient::listApplicationsCallable(const ListApplicationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listApplications(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::ListChangeOrdersOutcome SaeClient::listChangeOrders(const ListChangeOrdersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListChangeOrdersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListChangeOrdersOutcome(ListChangeOrdersResult(outcome.result())); + else + return ListChangeOrdersOutcome(outcome.error()); +} + +void SaeClient::listChangeOrdersAsync(const ListChangeOrdersRequest& request, const ListChangeOrdersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listChangeOrders(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::ListChangeOrdersOutcomeCallable SaeClient::listChangeOrdersCallable(const ListChangeOrdersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listChangeOrders(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::ListConsumedServicesOutcome SaeClient::listConsumedServices(const ListConsumedServicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListConsumedServicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListConsumedServicesOutcome(ListConsumedServicesResult(outcome.result())); + else + return ListConsumedServicesOutcome(outcome.error()); +} + +void SaeClient::listConsumedServicesAsync(const ListConsumedServicesRequest& request, const ListConsumedServicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listConsumedServices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::ListConsumedServicesOutcomeCallable SaeClient::listConsumedServicesCallable(const ListConsumedServicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listConsumedServices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::ListIngressesOutcome SaeClient::listIngresses(const ListIngressesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListIngressesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListIngressesOutcome(ListIngressesResult(outcome.result())); + else + return ListIngressesOutcome(outcome.error()); +} + +void SaeClient::listIngressesAsync(const ListIngressesRequest& request, const ListIngressesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listIngresses(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::ListIngressesOutcomeCallable SaeClient::listIngressesCallable(const ListIngressesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listIngresses(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::ListLogConfigsOutcome SaeClient::listLogConfigs(const ListLogConfigsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListLogConfigsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListLogConfigsOutcome(ListLogConfigsResult(outcome.result())); + else + return ListLogConfigsOutcome(outcome.error()); +} + +void SaeClient::listLogConfigsAsync(const ListLogConfigsRequest& request, const ListLogConfigsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listLogConfigs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::ListLogConfigsOutcomeCallable SaeClient::listLogConfigsCallable(const ListLogConfigsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listLogConfigs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::ListNamespaceChangeOrdersOutcome SaeClient::listNamespaceChangeOrders(const ListNamespaceChangeOrdersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListNamespaceChangeOrdersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListNamespaceChangeOrdersOutcome(ListNamespaceChangeOrdersResult(outcome.result())); + else + return ListNamespaceChangeOrdersOutcome(outcome.error()); +} + +void SaeClient::listNamespaceChangeOrdersAsync(const ListNamespaceChangeOrdersRequest& request, const ListNamespaceChangeOrdersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listNamespaceChangeOrders(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::ListNamespaceChangeOrdersOutcomeCallable SaeClient::listNamespaceChangeOrdersCallable(const ListNamespaceChangeOrdersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listNamespaceChangeOrders(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::ListNamespacedConfigMapsOutcome SaeClient::listNamespacedConfigMaps(const ListNamespacedConfigMapsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListNamespacedConfigMapsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListNamespacedConfigMapsOutcome(ListNamespacedConfigMapsResult(outcome.result())); + else + return ListNamespacedConfigMapsOutcome(outcome.error()); +} + +void SaeClient::listNamespacedConfigMapsAsync(const ListNamespacedConfigMapsRequest& request, const ListNamespacedConfigMapsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listNamespacedConfigMaps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::ListNamespacedConfigMapsOutcomeCallable SaeClient::listNamespacedConfigMapsCallable(const ListNamespacedConfigMapsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listNamespacedConfigMaps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::ListPublishedServicesOutcome SaeClient::listPublishedServices(const ListPublishedServicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPublishedServicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPublishedServicesOutcome(ListPublishedServicesResult(outcome.result())); + else + return ListPublishedServicesOutcome(outcome.error()); +} + +void SaeClient::listPublishedServicesAsync(const ListPublishedServicesRequest& request, const ListPublishedServicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPublishedServices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::ListPublishedServicesOutcomeCallable SaeClient::listPublishedServicesCallable(const ListPublishedServicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPublishedServices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::ListTagResourcesOutcome SaeClient::listTagResources(const ListTagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result())); + else + return ListTagResourcesOutcome(outcome.error()); +} + +void SaeClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::ListTagResourcesOutcomeCallable SaeClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::QueryResourceStaticsOutcome SaeClient::queryResourceStatics(const QueryResourceStaticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryResourceStaticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryResourceStaticsOutcome(QueryResourceStaticsResult(outcome.result())); + else + return QueryResourceStaticsOutcome(outcome.error()); +} + +void SaeClient::queryResourceStaticsAsync(const QueryResourceStaticsRequest& request, const QueryResourceStaticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryResourceStatics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::QueryResourceStaticsOutcomeCallable SaeClient::queryResourceStaticsCallable(const QueryResourceStaticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryResourceStatics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::RescaleApplicationOutcome SaeClient::rescaleApplication(const RescaleApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RescaleApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RescaleApplicationOutcome(RescaleApplicationResult(outcome.result())); + else + return RescaleApplicationOutcome(outcome.error()); +} + +void SaeClient::rescaleApplicationAsync(const RescaleApplicationRequest& request, const RescaleApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, rescaleApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::RescaleApplicationOutcomeCallable SaeClient::rescaleApplicationCallable(const RescaleApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->rescaleApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::RescaleApplicationVerticallyOutcome SaeClient::rescaleApplicationVertically(const RescaleApplicationVerticallyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RescaleApplicationVerticallyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RescaleApplicationVerticallyOutcome(RescaleApplicationVerticallyResult(outcome.result())); + else + return RescaleApplicationVerticallyOutcome(outcome.error()); +} + +void SaeClient::rescaleApplicationVerticallyAsync(const RescaleApplicationVerticallyRequest& request, const RescaleApplicationVerticallyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, rescaleApplicationVertically(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::RescaleApplicationVerticallyOutcomeCallable SaeClient::rescaleApplicationVerticallyCallable(const RescaleApplicationVerticallyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->rescaleApplicationVertically(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::RestartApplicationOutcome SaeClient::restartApplication(const RestartApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RestartApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RestartApplicationOutcome(RestartApplicationResult(outcome.result())); + else + return RestartApplicationOutcome(outcome.error()); +} + +void SaeClient::restartApplicationAsync(const RestartApplicationRequest& request, const RestartApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, restartApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::RestartApplicationOutcomeCallable SaeClient::restartApplicationCallable(const RestartApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->restartApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::RollbackApplicationOutcome SaeClient::rollbackApplication(const RollbackApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RollbackApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RollbackApplicationOutcome(RollbackApplicationResult(outcome.result())); + else + return RollbackApplicationOutcome(outcome.error()); +} + +void SaeClient::rollbackApplicationAsync(const RollbackApplicationRequest& request, const RollbackApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, rollbackApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::RollbackApplicationOutcomeCallable SaeClient::rollbackApplicationCallable(const RollbackApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->rollbackApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::StartApplicationOutcome SaeClient::startApplication(const StartApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartApplicationOutcome(StartApplicationResult(outcome.result())); + else + return StartApplicationOutcome(outcome.error()); +} + +void SaeClient::startApplicationAsync(const StartApplicationRequest& request, const StartApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::StartApplicationOutcomeCallable SaeClient::startApplicationCallable(const StartApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::StopApplicationOutcome SaeClient::stopApplication(const StopApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopApplicationOutcome(StopApplicationResult(outcome.result())); + else + return StopApplicationOutcome(outcome.error()); +} + +void SaeClient::stopApplicationAsync(const StopApplicationRequest& request, const StopApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::StopApplicationOutcomeCallable SaeClient::stopApplicationCallable(const StopApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::TagResourcesOutcome SaeClient::tagResources(const TagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagResourcesOutcome(TagResourcesResult(outcome.result())); + else + return TagResourcesOutcome(outcome.error()); +} + +void SaeClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::TagResourcesOutcomeCallable SaeClient::tagResourcesCallable(const TagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::UnbindSlbOutcome SaeClient::unbindSlb(const UnbindSlbRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnbindSlbOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnbindSlbOutcome(UnbindSlbResult(outcome.result())); + else + return UnbindSlbOutcome(outcome.error()); +} + +void SaeClient::unbindSlbAsync(const UnbindSlbRequest& request, const UnbindSlbAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unbindSlb(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::UnbindSlbOutcomeCallable SaeClient::unbindSlbCallable(const UnbindSlbRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unbindSlb(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::UntagResourcesOutcome SaeClient::untagResources(const UntagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UntagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UntagResourcesOutcome(UntagResourcesResult(outcome.result())); + else + return UntagResourcesOutcome(outcome.error()); +} + +void SaeClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, untagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::UntagResourcesOutcomeCallable SaeClient::untagResourcesCallable(const UntagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->untagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::UpdateAppSecurityGroupOutcome SaeClient::updateAppSecurityGroup(const UpdateAppSecurityGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAppSecurityGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAppSecurityGroupOutcome(UpdateAppSecurityGroupResult(outcome.result())); + else + return UpdateAppSecurityGroupOutcome(outcome.error()); +} + +void SaeClient::updateAppSecurityGroupAsync(const UpdateAppSecurityGroupRequest& request, const UpdateAppSecurityGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAppSecurityGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::UpdateAppSecurityGroupOutcomeCallable SaeClient::updateAppSecurityGroupCallable(const UpdateAppSecurityGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAppSecurityGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::UpdateConfigMapOutcome SaeClient::updateConfigMap(const UpdateConfigMapRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateConfigMapOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateConfigMapOutcome(UpdateConfigMapResult(outcome.result())); + else + return UpdateConfigMapOutcome(outcome.error()); +} + +void SaeClient::updateConfigMapAsync(const UpdateConfigMapRequest& request, const UpdateConfigMapAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateConfigMap(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::UpdateConfigMapOutcomeCallable SaeClient::updateConfigMapCallable(const UpdateConfigMapRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateConfigMap(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::UpdateIngressOutcome SaeClient::updateIngress(const UpdateIngressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateIngressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateIngressOutcome(UpdateIngressResult(outcome.result())); + else + return UpdateIngressOutcome(outcome.error()); +} + +void SaeClient::updateIngressAsync(const UpdateIngressRequest& request, const UpdateIngressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateIngress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::UpdateIngressOutcomeCallable SaeClient::updateIngressCallable(const UpdateIngressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateIngress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::UpdateNamespaceOutcome SaeClient::updateNamespace(const UpdateNamespaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateNamespaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateNamespaceOutcome(UpdateNamespaceResult(outcome.result())); + else + return UpdateNamespaceOutcome(outcome.error()); +} + +void SaeClient::updateNamespaceAsync(const UpdateNamespaceRequest& request, const UpdateNamespaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateNamespace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::UpdateNamespaceOutcomeCallable SaeClient::updateNamespaceCallable(const UpdateNamespaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateNamespace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SaeClient::UpdateNamespaceVpcOutcome SaeClient::updateNamespaceVpc(const UpdateNamespaceVpcRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateNamespaceVpcOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateNamespaceVpcOutcome(UpdateNamespaceVpcResult(outcome.result())); + else + return UpdateNamespaceVpcOutcome(outcome.error()); +} + +void SaeClient::updateNamespaceVpcAsync(const UpdateNamespaceVpcRequest& request, const UpdateNamespaceVpcAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateNamespaceVpc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SaeClient::UpdateNamespaceVpcOutcomeCallable SaeClient::updateNamespaceVpcCallable(const UpdateNamespaceVpcRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateNamespaceVpc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/sae/src/model/AbortAndRollbackChangeOrderRequest.cc b/sae/src/model/AbortAndRollbackChangeOrderRequest.cc new file mode 100644 index 000000000..e08b64f81 --- /dev/null +++ b/sae/src/model/AbortAndRollbackChangeOrderRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::AbortAndRollbackChangeOrderRequest; + +AbortAndRollbackChangeOrderRequest::AbortAndRollbackChangeOrderRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/changeorder/AbortAndRollbackChangeOrder"); + setMethod(HttpRequest::Method::Put); +} + +AbortAndRollbackChangeOrderRequest::~AbortAndRollbackChangeOrderRequest() +{} + +std::string AbortAndRollbackChangeOrderRequest::getChangeOrderId()const +{ + return changeOrderId_; +} + +void AbortAndRollbackChangeOrderRequest::setChangeOrderId(const std::string& changeOrderId) +{ + changeOrderId_ = changeOrderId; + setParameter("ChangeOrderId", changeOrderId); +} + diff --git a/sae/src/model/AbortAndRollbackChangeOrderResult.cc b/sae/src/model/AbortAndRollbackChangeOrderResult.cc new file mode 100644 index 000000000..c0c3fecfd --- /dev/null +++ b/sae/src/model/AbortAndRollbackChangeOrderResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +AbortAndRollbackChangeOrderResult::AbortAndRollbackChangeOrderResult() : + ServiceResult() +{} + +AbortAndRollbackChangeOrderResult::AbortAndRollbackChangeOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AbortAndRollbackChangeOrderResult::~AbortAndRollbackChangeOrderResult() +{} + +void AbortAndRollbackChangeOrderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ChangeOrderId"].isNull()) + data_.changeOrderId = dataNode["ChangeOrderId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string AbortAndRollbackChangeOrderResult::getMessage()const +{ + return message_; +} + +std::string AbortAndRollbackChangeOrderResult::getTraceId()const +{ + return traceId_; +} + +AbortAndRollbackChangeOrderResult::Data AbortAndRollbackChangeOrderResult::getData()const +{ + return data_; +} + +std::string AbortAndRollbackChangeOrderResult::getErrorCode()const +{ + return errorCode_; +} + +std::string AbortAndRollbackChangeOrderResult::getCode()const +{ + return code_; +} + +bool AbortAndRollbackChangeOrderResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/AbortChangeOrderRequest.cc b/sae/src/model/AbortChangeOrderRequest.cc new file mode 100644 index 000000000..838d9070f --- /dev/null +++ b/sae/src/model/AbortChangeOrderRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::AbortChangeOrderRequest; + +AbortChangeOrderRequest::AbortChangeOrderRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/changeorder/AbortChangeOrder"); + setMethod(HttpRequest::Method::Put); +} + +AbortChangeOrderRequest::~AbortChangeOrderRequest() +{} + +std::string AbortChangeOrderRequest::getChangeOrderId()const +{ + return changeOrderId_; +} + +void AbortChangeOrderRequest::setChangeOrderId(const std::string& changeOrderId) +{ + changeOrderId_ = changeOrderId; + setParameter("ChangeOrderId", changeOrderId); +} + diff --git a/sae/src/model/AbortChangeOrderResult.cc b/sae/src/model/AbortChangeOrderResult.cc new file mode 100644 index 000000000..e7c828453 --- /dev/null +++ b/sae/src/model/AbortChangeOrderResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +AbortChangeOrderResult::AbortChangeOrderResult() : + ServiceResult() +{} + +AbortChangeOrderResult::AbortChangeOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AbortChangeOrderResult::~AbortChangeOrderResult() +{} + +void AbortChangeOrderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ChangeOrderId"].isNull()) + data_.changeOrderId = dataNode["ChangeOrderId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string AbortChangeOrderResult::getMessage()const +{ + return message_; +} + +std::string AbortChangeOrderResult::getTraceId()const +{ + return traceId_; +} + +AbortChangeOrderResult::Data AbortChangeOrderResult::getData()const +{ + return data_; +} + +std::string AbortChangeOrderResult::getErrorCode()const +{ + return errorCode_; +} + +std::string AbortChangeOrderResult::getCode()const +{ + return code_; +} + +bool AbortChangeOrderResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/BatchStartApplicationsRequest.cc b/sae/src/model/BatchStartApplicationsRequest.cc new file mode 100644 index 000000000..681a6f044 --- /dev/null +++ b/sae/src/model/BatchStartApplicationsRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::BatchStartApplicationsRequest; + +BatchStartApplicationsRequest::BatchStartApplicationsRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/app/batchStartApplications"); + setMethod(HttpRequest::Method::Put); +} + +BatchStartApplicationsRequest::~BatchStartApplicationsRequest() +{} + +std::string BatchStartApplicationsRequest::getAppIds()const +{ + return appIds_; +} + +void BatchStartApplicationsRequest::setAppIds(const std::string& appIds) +{ + appIds_ = appIds; + setParameter("AppIds", appIds); +} + +std::string BatchStartApplicationsRequest::getNamespaceId()const +{ + return namespaceId_; +} + +void BatchStartApplicationsRequest::setNamespaceId(const std::string& namespaceId) +{ + namespaceId_ = namespaceId; + setParameter("NamespaceId", namespaceId); +} + diff --git a/sae/src/model/BatchStartApplicationsResult.cc b/sae/src/model/BatchStartApplicationsResult.cc new file mode 100644 index 000000000..fd580302e --- /dev/null +++ b/sae/src/model/BatchStartApplicationsResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +BatchStartApplicationsResult::BatchStartApplicationsResult() : + ServiceResult() +{} + +BatchStartApplicationsResult::BatchStartApplicationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BatchStartApplicationsResult::~BatchStartApplicationsResult() +{} + +void BatchStartApplicationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ChangeOrderId"].isNull()) + data_.changeOrderId = dataNode["ChangeOrderId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string BatchStartApplicationsResult::getMessage()const +{ + return message_; +} + +std::string BatchStartApplicationsResult::getTraceId()const +{ + return traceId_; +} + +BatchStartApplicationsResult::Data BatchStartApplicationsResult::getData()const +{ + return data_; +} + +std::string BatchStartApplicationsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string BatchStartApplicationsResult::getCode()const +{ + return code_; +} + +bool BatchStartApplicationsResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/BatchStopApplicationsRequest.cc b/sae/src/model/BatchStopApplicationsRequest.cc new file mode 100644 index 000000000..5f1619c4b --- /dev/null +++ b/sae/src/model/BatchStopApplicationsRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::BatchStopApplicationsRequest; + +BatchStopApplicationsRequest::BatchStopApplicationsRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/app/batchStopApplications"); + setMethod(HttpRequest::Method::Put); +} + +BatchStopApplicationsRequest::~BatchStopApplicationsRequest() +{} + +std::string BatchStopApplicationsRequest::getAppIds()const +{ + return appIds_; +} + +void BatchStopApplicationsRequest::setAppIds(const std::string& appIds) +{ + appIds_ = appIds; + setParameter("AppIds", appIds); +} + +std::string BatchStopApplicationsRequest::getNamespaceId()const +{ + return namespaceId_; +} + +void BatchStopApplicationsRequest::setNamespaceId(const std::string& namespaceId) +{ + namespaceId_ = namespaceId; + setParameter("NamespaceId", namespaceId); +} + diff --git a/sae/src/model/BatchStopApplicationsResult.cc b/sae/src/model/BatchStopApplicationsResult.cc new file mode 100644 index 000000000..7db6748a4 --- /dev/null +++ b/sae/src/model/BatchStopApplicationsResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +BatchStopApplicationsResult::BatchStopApplicationsResult() : + ServiceResult() +{} + +BatchStopApplicationsResult::BatchStopApplicationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BatchStopApplicationsResult::~BatchStopApplicationsResult() +{} + +void BatchStopApplicationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ChangeOrderId"].isNull()) + data_.changeOrderId = dataNode["ChangeOrderId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string BatchStopApplicationsResult::getMessage()const +{ + return message_; +} + +std::string BatchStopApplicationsResult::getTraceId()const +{ + return traceId_; +} + +BatchStopApplicationsResult::Data BatchStopApplicationsResult::getData()const +{ + return data_; +} + +std::string BatchStopApplicationsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string BatchStopApplicationsResult::getCode()const +{ + return code_; +} + +bool BatchStopApplicationsResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/BindSlbRequest.cc b/sae/src/model/BindSlbRequest.cc new file mode 100644 index 000000000..4923bc207 --- /dev/null +++ b/sae/src/model/BindSlbRequest.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 + +using AlibabaCloud::Sae::Model::BindSlbRequest; + +BindSlbRequest::BindSlbRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/app/slb"); + setMethod(HttpRequest::Method::Post); +} + +BindSlbRequest::~BindSlbRequest() +{} + +std::string BindSlbRequest::getIntranet()const +{ + return intranet_; +} + +void BindSlbRequest::setIntranet(const std::string& intranet) +{ + intranet_ = intranet; + setParameter("Intranet", intranet); +} + +std::string BindSlbRequest::getIntranetSlbId()const +{ + return intranetSlbId_; +} + +void BindSlbRequest::setIntranetSlbId(const std::string& intranetSlbId) +{ + intranetSlbId_ = intranetSlbId; + setParameter("IntranetSlbId", intranetSlbId); +} + +std::string BindSlbRequest::getInternetSlbId()const +{ + return internetSlbId_; +} + +void BindSlbRequest::setInternetSlbId(const std::string& internetSlbId) +{ + internetSlbId_ = internetSlbId; + setParameter("InternetSlbId", internetSlbId); +} + +std::string BindSlbRequest::getAppId()const +{ + return appId_; +} + +void BindSlbRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string BindSlbRequest::getInternet()const +{ + return internet_; +} + +void BindSlbRequest::setInternet(const std::string& internet) +{ + internet_ = internet; + setParameter("Internet", internet); +} + diff --git a/sae/src/model/BindSlbResult.cc b/sae/src/model/BindSlbResult.cc new file mode 100644 index 000000000..630361376 --- /dev/null +++ b/sae/src/model/BindSlbResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +BindSlbResult::BindSlbResult() : + ServiceResult() +{} + +BindSlbResult::BindSlbResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BindSlbResult::~BindSlbResult() +{} + +void BindSlbResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ChangeOrderId"].isNull()) + data_.changeOrderId = dataNode["ChangeOrderId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string BindSlbResult::getMessage()const +{ + return message_; +} + +std::string BindSlbResult::getTraceId()const +{ + return traceId_; +} + +BindSlbResult::Data BindSlbResult::getData()const +{ + return data_; +} + +std::string BindSlbResult::getErrorCode()const +{ + return errorCode_; +} + +std::string BindSlbResult::getCode()const +{ + return code_; +} + +bool BindSlbResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/ConfirmPipelineBatchRequest.cc b/sae/src/model/ConfirmPipelineBatchRequest.cc new file mode 100644 index 000000000..e84af8a94 --- /dev/null +++ b/sae/src/model/ConfirmPipelineBatchRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::ConfirmPipelineBatchRequest; + +ConfirmPipelineBatchRequest::ConfirmPipelineBatchRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/changeorder/ConfirmPipelineBatch"); + setMethod(HttpRequest::Method::Get); +} + +ConfirmPipelineBatchRequest::~ConfirmPipelineBatchRequest() +{} + +bool ConfirmPipelineBatchRequest::getConfirm()const +{ + return confirm_; +} + +void ConfirmPipelineBatchRequest::setConfirm(bool confirm) +{ + confirm_ = confirm; + setParameter("Confirm", confirm ? "true" : "false"); +} + +std::string ConfirmPipelineBatchRequest::getPipelineId()const +{ + return pipelineId_; +} + +void ConfirmPipelineBatchRequest::setPipelineId(const std::string& pipelineId) +{ + pipelineId_ = pipelineId; + setParameter("PipelineId", pipelineId); +} + diff --git a/sae/src/model/ConfirmPipelineBatchResult.cc b/sae/src/model/ConfirmPipelineBatchResult.cc new file mode 100644 index 000000000..050062a3a --- /dev/null +++ b/sae/src/model/ConfirmPipelineBatchResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +ConfirmPipelineBatchResult::ConfirmPipelineBatchResult() : + ServiceResult() +{} + +ConfirmPipelineBatchResult::ConfirmPipelineBatchResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ConfirmPipelineBatchResult::~ConfirmPipelineBatchResult() +{} + +void ConfirmPipelineBatchResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PipelineId"].isNull()) + data_.pipelineId = dataNode["PipelineId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string ConfirmPipelineBatchResult::getMessage()const +{ + return message_; +} + +std::string ConfirmPipelineBatchResult::getTraceId()const +{ + return traceId_; +} + +ConfirmPipelineBatchResult::Data ConfirmPipelineBatchResult::getData()const +{ + return data_; +} + +std::string ConfirmPipelineBatchResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ConfirmPipelineBatchResult::getCode()const +{ + return code_; +} + +bool ConfirmPipelineBatchResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/CreateApplicationRequest.cc b/sae/src/model/CreateApplicationRequest.cc new file mode 100644 index 000000000..d69177b8c --- /dev/null +++ b/sae/src/model/CreateApplicationRequest.cc @@ -0,0 +1,470 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::CreateApplicationRequest; + +CreateApplicationRequest::CreateApplicationRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/app/createApplication"); + setMethod(HttpRequest::Method::Post); +} + +CreateApplicationRequest::~CreateApplicationRequest() +{} + +std::string CreateApplicationRequest::getNasId()const +{ + return nasId_; +} + +void CreateApplicationRequest::setNasId(const std::string& nasId) +{ + nasId_ = nasId; + setParameter("NasId", nasId); +} + +std::string CreateApplicationRequest::getWebContainer()const +{ + return webContainer_; +} + +void CreateApplicationRequest::setWebContainer(const std::string& webContainer) +{ + webContainer_ = webContainer; + setParameter("WebContainer", webContainer); +} + +std::string CreateApplicationRequest::getJarStartArgs()const +{ + return jarStartArgs_; +} + +void CreateApplicationRequest::setJarStartArgs(const std::string& jarStartArgs) +{ + jarStartArgs_ = jarStartArgs; + setParameter("JarStartArgs", jarStartArgs); +} + +int CreateApplicationRequest::getMemory()const +{ + return memory_; +} + +void CreateApplicationRequest::setMemory(int memory) +{ + memory_ = memory; + setParameter("Memory", std::to_string(memory)); +} + +std::string CreateApplicationRequest::getSlsConfigs()const +{ + return slsConfigs_; +} + +void CreateApplicationRequest::setSlsConfigs(const std::string& slsConfigs) +{ + slsConfigs_ = slsConfigs; + setParameter("SlsConfigs", slsConfigs); +} + +std::string CreateApplicationRequest::getCommandArgs()const +{ + return commandArgs_; +} + +void CreateApplicationRequest::setCommandArgs(const std::string& commandArgs) +{ + commandArgs_ = commandArgs; + setParameter("CommandArgs", commandArgs); +} + +std::string CreateApplicationRequest::getReadiness()const +{ + return readiness_; +} + +void CreateApplicationRequest::setReadiness(const std::string& readiness) +{ + readiness_ = readiness; + setParameter("Readiness", readiness); +} + +std::string CreateApplicationRequest::getTimezone()const +{ + return timezone_; +} + +void CreateApplicationRequest::setTimezone(const std::string& timezone) +{ + timezone_ = timezone; + setParameter("Timezone", timezone); +} + +std::string CreateApplicationRequest::getMountHost()const +{ + return mountHost_; +} + +void CreateApplicationRequest::setMountHost(const std::string& mountHost) +{ + mountHost_ = mountHost; + setParameter("MountHost", mountHost); +} + +bool CreateApplicationRequest::getAutoConfig()const +{ + return autoConfig_; +} + +void CreateApplicationRequest::setAutoConfig(bool autoConfig) +{ + autoConfig_ = autoConfig; + setParameter("AutoConfig", autoConfig ? "true" : "false"); +} + +std::string CreateApplicationRequest::getLiveness()const +{ + return liveness_; +} + +void CreateApplicationRequest::setLiveness(const std::string& liveness) +{ + liveness_ = liveness; + setParameter("Liveness", liveness); +} + +std::string CreateApplicationRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void CreateApplicationRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +std::string CreateApplicationRequest::getEnvs()const +{ + return envs_; +} + +void CreateApplicationRequest::setEnvs(const std::string& envs) +{ + envs_ = envs; + setParameter("Envs", envs); +} + +std::string CreateApplicationRequest::getPhpArmsConfigLocation()const +{ + return phpArmsConfigLocation_; +} + +void CreateApplicationRequest::setPhpArmsConfigLocation(const std::string& phpArmsConfigLocation) +{ + phpArmsConfigLocation_ = phpArmsConfigLocation; + setParameter("PhpArmsConfigLocation", phpArmsConfigLocation); +} + +std::string CreateApplicationRequest::getPackageVersion()const +{ + return packageVersion_; +} + +void CreateApplicationRequest::setPackageVersion(const std::string& packageVersion) +{ + packageVersion_ = packageVersion; + setParameter("PackageVersion", packageVersion); +} + +std::string CreateApplicationRequest::getTomcatConfig()const +{ + return tomcatConfig_; +} + +void CreateApplicationRequest::setTomcatConfig(const std::string& tomcatConfig) +{ + tomcatConfig_ = tomcatConfig; + setParameter("TomcatConfig", tomcatConfig); +} + +std::string CreateApplicationRequest::getCustomHostAlias()const +{ + return customHostAlias_; +} + +void CreateApplicationRequest::setCustomHostAlias(const std::string& customHostAlias) +{ + customHostAlias_ = customHostAlias; + setParameter("CustomHostAlias", customHostAlias); +} + +bool CreateApplicationRequest::getDeploy()const +{ + return deploy_; +} + +void CreateApplicationRequest::setDeploy(bool deploy) +{ + deploy_ = deploy; + setParameter("Deploy", deploy ? "true" : "false"); +} + +std::string CreateApplicationRequest::getWarStartOptions()const +{ + return warStartOptions_; +} + +void CreateApplicationRequest::setWarStartOptions(const std::string& warStartOptions) +{ + warStartOptions_ = warStartOptions; + setParameter("WarStartOptions", warStartOptions); +} + +std::string CreateApplicationRequest::getJarStartOptions()const +{ + return jarStartOptions_; +} + +void CreateApplicationRequest::setJarStartOptions(const std::string& jarStartOptions) +{ + jarStartOptions_ = jarStartOptions; + setParameter("JarStartOptions", jarStartOptions); +} + +std::string CreateApplicationRequest::getEdasContainerVersion()const +{ + return edasContainerVersion_; +} + +void CreateApplicationRequest::setEdasContainerVersion(const std::string& edasContainerVersion) +{ + edasContainerVersion_ = edasContainerVersion; + setParameter("EdasContainerVersion", edasContainerVersion); +} + +std::string CreateApplicationRequest::getAppName()const +{ + return appName_; +} + +void CreateApplicationRequest::setAppName(const std::string& appName) +{ + appName_ = appName; + setParameter("AppName", appName); +} + +std::string CreateApplicationRequest::getNamespaceId()const +{ + return namespaceId_; +} + +void CreateApplicationRequest::setNamespaceId(const std::string& namespaceId) +{ + namespaceId_ = namespaceId; + setParameter("NamespaceId", namespaceId); +} + +std::string CreateApplicationRequest::getPackageUrl()const +{ + return packageUrl_; +} + +void CreateApplicationRequest::setPackageUrl(const std::string& packageUrl) +{ + packageUrl_ = packageUrl; + setParameter("PackageUrl", packageUrl); +} + +int CreateApplicationRequest::getTerminationGracePeriodSeconds()const +{ + return terminationGracePeriodSeconds_; +} + +void CreateApplicationRequest::setTerminationGracePeriodSeconds(int terminationGracePeriodSeconds) +{ + terminationGracePeriodSeconds_ = terminationGracePeriodSeconds; + setParameter("TerminationGracePeriodSeconds", std::to_string(terminationGracePeriodSeconds)); +} + +std::string CreateApplicationRequest::getConfigMapMountDesc()const +{ + return configMapMountDesc_; +} + +void CreateApplicationRequest::setConfigMapMountDesc(const std::string& configMapMountDesc) +{ + configMapMountDesc_ = configMapMountDesc; + setBodyParameter("ConfigMapMountDesc", configMapMountDesc); +} + +std::string CreateApplicationRequest::getPhpConfig()const +{ + return phpConfig_; +} + +void CreateApplicationRequest::setPhpConfig(const std::string& phpConfig) +{ + phpConfig_ = phpConfig; + setBodyParameter("PhpConfig", phpConfig); +} + +std::string CreateApplicationRequest::getPreStop()const +{ + return preStop_; +} + +void CreateApplicationRequest::setPreStop(const std::string& preStop) +{ + preStop_ = preStop; + setParameter("PreStop", preStop); +} + +int CreateApplicationRequest::getReplicas()const +{ + return replicas_; +} + +void CreateApplicationRequest::setReplicas(int replicas) +{ + replicas_ = replicas; + setParameter("Replicas", std::to_string(replicas)); +} + +int CreateApplicationRequest::getCpu()const +{ + return cpu_; +} + +void CreateApplicationRequest::setCpu(int cpu) +{ + cpu_ = cpu; + setParameter("Cpu", std::to_string(cpu)); +} + +std::string CreateApplicationRequest::getCommand()const +{ + return command_; +} + +void CreateApplicationRequest::setCommand(const std::string& command) +{ + command_ = command; + setParameter("Command", command); +} + +std::string CreateApplicationRequest::getMountDesc()const +{ + return mountDesc_; +} + +void CreateApplicationRequest::setMountDesc(const std::string& mountDesc) +{ + mountDesc_ = mountDesc; + setParameter("MountDesc", mountDesc); +} + +std::string CreateApplicationRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void CreateApplicationRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string CreateApplicationRequest::getJdk()const +{ + return jdk_; +} + +void CreateApplicationRequest::setJdk(const std::string& jdk) +{ + jdk_ = jdk; + setParameter("Jdk", jdk); +} + +std::string CreateApplicationRequest::getAppDescription()const +{ + return appDescription_; +} + +void CreateApplicationRequest::setAppDescription(const std::string& appDescription) +{ + appDescription_ = appDescription; + setParameter("AppDescription", appDescription); +} + +std::string CreateApplicationRequest::getVpcId()const +{ + return vpcId_; +} + +void CreateApplicationRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string CreateApplicationRequest::getImageUrl()const +{ + return imageUrl_; +} + +void CreateApplicationRequest::setImageUrl(const std::string& imageUrl) +{ + imageUrl_ = imageUrl; + setParameter("ImageUrl", imageUrl); +} + +std::string CreateApplicationRequest::getPackageType()const +{ + return packageType_; +} + +void CreateApplicationRequest::setPackageType(const std::string& packageType) +{ + packageType_ = packageType; + setParameter("PackageType", packageType); +} + +std::string CreateApplicationRequest::getPhpConfigLocation()const +{ + return phpConfigLocation_; +} + +void CreateApplicationRequest::setPhpConfigLocation(const std::string& phpConfigLocation) +{ + phpConfigLocation_ = phpConfigLocation; + setParameter("PhpConfigLocation", phpConfigLocation); +} + +std::string CreateApplicationRequest::getPostStart()const +{ + return postStart_; +} + +void CreateApplicationRequest::setPostStart(const std::string& postStart) +{ + postStart_ = postStart; + setParameter("PostStart", postStart); +} + diff --git a/sae/src/model/CreateApplicationResult.cc b/sae/src/model/CreateApplicationResult.cc new file mode 100644 index 000000000..ffa134c54 --- /dev/null +++ b/sae/src/model/CreateApplicationResult.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::Sae; +using namespace AlibabaCloud::Sae::Model; + +CreateApplicationResult::CreateApplicationResult() : + ServiceResult() +{} + +CreateApplicationResult::CreateApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateApplicationResult::~CreateApplicationResult() +{} + +void CreateApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["AppId"].isNull()) + data_.appId = dataNode["AppId"].asString(); + if(!dataNode["ChangeOrderId"].isNull()) + data_.changeOrderId = dataNode["ChangeOrderId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateApplicationResult::getMessage()const +{ + return message_; +} + +std::string CreateApplicationResult::getTraceId()const +{ + return traceId_; +} + +CreateApplicationResult::Data CreateApplicationResult::getData()const +{ + return data_; +} + +std::string CreateApplicationResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateApplicationResult::getCode()const +{ + return code_; +} + +bool CreateApplicationResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/CreateConfigMapRequest.cc b/sae/src/model/CreateConfigMapRequest.cc new file mode 100644 index 000000000..47cbdd2f9 --- /dev/null +++ b/sae/src/model/CreateConfigMapRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::CreateConfigMapRequest; + +CreateConfigMapRequest::CreateConfigMapRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/configmap/configMap"); + setMethod(HttpRequest::Method::Post); +} + +CreateConfigMapRequest::~CreateConfigMapRequest() +{} + +std::string CreateConfigMapRequest::getData()const +{ + return data_; +} + +void CreateConfigMapRequest::setData(const std::string& data) +{ + data_ = data; + setBodyParameter("Data", data); +} + +std::string CreateConfigMapRequest::getNamespaceId()const +{ + return namespaceId_; +} + +void CreateConfigMapRequest::setNamespaceId(const std::string& namespaceId) +{ + namespaceId_ = namespaceId; + setParameter("NamespaceId", namespaceId); +} + +std::string CreateConfigMapRequest::getName()const +{ + return name_; +} + +void CreateConfigMapRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateConfigMapRequest::getDescription()const +{ + return description_; +} + +void CreateConfigMapRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + diff --git a/sae/src/model/CreateConfigMapResult.cc b/sae/src/model/CreateConfigMapResult.cc new file mode 100644 index 000000000..5d594ca15 --- /dev/null +++ b/sae/src/model/CreateConfigMapResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +CreateConfigMapResult::CreateConfigMapResult() : + ServiceResult() +{} + +CreateConfigMapResult::CreateConfigMapResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateConfigMapResult::~CreateConfigMapResult() +{} + +void CreateConfigMapResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ConfigMapId"].isNull()) + data_.configMapId = std::stol(dataNode["ConfigMapId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateConfigMapResult::getMessage()const +{ + return message_; +} + +std::string CreateConfigMapResult::getTraceId()const +{ + return traceId_; +} + +CreateConfigMapResult::Data CreateConfigMapResult::getData()const +{ + return data_; +} + +std::string CreateConfigMapResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateConfigMapResult::getCode()const +{ + return code_; +} + +bool CreateConfigMapResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/CreateIngressRequest.cc b/sae/src/model/CreateIngressRequest.cc new file mode 100644 index 000000000..7f8dcb290 --- /dev/null +++ b/sae/src/model/CreateIngressRequest.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::CreateIngressRequest; + +CreateIngressRequest::CreateIngressRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/ingress/Ingress"); + setMethod(HttpRequest::Method::Post); +} + +CreateIngressRequest::~CreateIngressRequest() +{} + +int CreateIngressRequest::getListenerPort()const +{ + return listenerPort_; +} + +void CreateIngressRequest::setListenerPort(int listenerPort) +{ + listenerPort_ = listenerPort; + setParameter("ListenerPort", std::to_string(listenerPort)); +} + +std::string CreateIngressRequest::getSlbId()const +{ + return slbId_; +} + +void CreateIngressRequest::setSlbId(const std::string& slbId) +{ + slbId_ = slbId; + setParameter("SlbId", slbId); +} + +std::string CreateIngressRequest::getNamespaceId()const +{ + return namespaceId_; +} + +void CreateIngressRequest::setNamespaceId(const std::string& namespaceId) +{ + namespaceId_ = namespaceId; + setParameter("NamespaceId", namespaceId); +} + +std::string CreateIngressRequest::getDescription()const +{ + return description_; +} + +void CreateIngressRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateIngressRequest::getRules()const +{ + return rules_; +} + +void CreateIngressRequest::setRules(const std::string& rules) +{ + rules_ = rules; + setBodyParameter("Rules", rules); +} + +std::string CreateIngressRequest::getCertId()const +{ + return certId_; +} + +void CreateIngressRequest::setCertId(const std::string& certId) +{ + certId_ = certId; + setParameter("CertId", certId); +} + +std::string CreateIngressRequest::getDefaultRule()const +{ + return defaultRule_; +} + +void CreateIngressRequest::setDefaultRule(const std::string& defaultRule) +{ + defaultRule_ = defaultRule; + setParameter("DefaultRule", defaultRule); +} + diff --git a/sae/src/model/CreateIngressResult.cc b/sae/src/model/CreateIngressResult.cc new file mode 100644 index 000000000..398c1acc3 --- /dev/null +++ b/sae/src/model/CreateIngressResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +CreateIngressResult::CreateIngressResult() : + ServiceResult() +{} + +CreateIngressResult::CreateIngressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateIngressResult::~CreateIngressResult() +{} + +void CreateIngressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["IngressId"].isNull()) + data_.ingressId = std::stol(dataNode["IngressId"].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"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string CreateIngressResult::getMessage()const +{ + return message_; +} + +std::string CreateIngressResult::getTraceId()const +{ + return traceId_; +} + +CreateIngressResult::Data CreateIngressResult::getData()const +{ + return data_; +} + +std::string CreateIngressResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateIngressResult::getCode()const +{ + return code_; +} + +bool CreateIngressResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/CreateNamespaceRequest.cc b/sae/src/model/CreateNamespaceRequest.cc new file mode 100644 index 000000000..3caf98e4c --- /dev/null +++ b/sae/src/model/CreateNamespaceRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::CreateNamespaceRequest; + +CreateNamespaceRequest::CreateNamespaceRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/paas/namespace"); + setMethod(HttpRequest::Method::Post); +} + +CreateNamespaceRequest::~CreateNamespaceRequest() +{} + +std::string CreateNamespaceRequest::getNamespaceName()const +{ + return namespaceName_; +} + +void CreateNamespaceRequest::setNamespaceName(const std::string& namespaceName) +{ + namespaceName_ = namespaceName; + setParameter("NamespaceName", namespaceName); +} + +std::string CreateNamespaceRequest::getNamespaceDescription()const +{ + return namespaceDescription_; +} + +void CreateNamespaceRequest::setNamespaceDescription(const std::string& namespaceDescription) +{ + namespaceDescription_ = namespaceDescription; + setParameter("NamespaceDescription", namespaceDescription); +} + +std::string CreateNamespaceRequest::getNamespaceId()const +{ + return namespaceId_; +} + +void CreateNamespaceRequest::setNamespaceId(const std::string& namespaceId) +{ + namespaceId_ = namespaceId; + setParameter("NamespaceId", namespaceId); +} + diff --git a/sae/src/model/CreateNamespaceResult.cc b/sae/src/model/CreateNamespaceResult.cc new file mode 100644 index 000000000..0537ee0bf --- /dev/null +++ b/sae/src/model/CreateNamespaceResult.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::Sae; +using namespace AlibabaCloud::Sae::Model; + +CreateNamespaceResult::CreateNamespaceResult() : + ServiceResult() +{} + +CreateNamespaceResult::CreateNamespaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNamespaceResult::~CreateNamespaceResult() +{} + +void CreateNamespaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["RegionId"].isNull()) + data_.regionId = dataNode["RegionId"].asString(); + if(!dataNode["NamespaceId"].isNull()) + data_.namespaceId = dataNode["NamespaceId"].asString(); + if(!dataNode["NamespaceName"].isNull()) + data_.namespaceName = dataNode["NamespaceName"].asString(); + if(!dataNode["NamespaceDescription"].isNull()) + data_.namespaceDescription = dataNode["NamespaceDescription"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string CreateNamespaceResult::getMessage()const +{ + return message_; +} + +std::string CreateNamespaceResult::getTraceId()const +{ + return traceId_; +} + +CreateNamespaceResult::Data CreateNamespaceResult::getData()const +{ + return data_; +} + +std::string CreateNamespaceResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateNamespaceResult::getCode()const +{ + return code_; +} + +bool CreateNamespaceResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DeleteApplicationRequest.cc b/sae/src/model/DeleteApplicationRequest.cc new file mode 100644 index 000000000..c8752f834 --- /dev/null +++ b/sae/src/model/DeleteApplicationRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DeleteApplicationRequest; + +DeleteApplicationRequest::DeleteApplicationRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/app/deleteApplication"); + setMethod(HttpRequest::Method::Delete); +} + +DeleteApplicationRequest::~DeleteApplicationRequest() +{} + +std::string DeleteApplicationRequest::getAppId()const +{ + return appId_; +} + +void DeleteApplicationRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + diff --git a/sae/src/model/DeleteApplicationResult.cc b/sae/src/model/DeleteApplicationResult.cc new file mode 100644 index 000000000..0aeb7e944 --- /dev/null +++ b/sae/src/model/DeleteApplicationResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +DeleteApplicationResult::DeleteApplicationResult() : + ServiceResult() +{} + +DeleteApplicationResult::DeleteApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteApplicationResult::~DeleteApplicationResult() +{} + +void DeleteApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ChangeOrderId"].isNull()) + data_.changeOrderId = dataNode["ChangeOrderId"].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"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string DeleteApplicationResult::getMessage()const +{ + return message_; +} + +std::string DeleteApplicationResult::getTraceId()const +{ + return traceId_; +} + +DeleteApplicationResult::Data DeleteApplicationResult::getData()const +{ + return data_; +} + +std::string DeleteApplicationResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteApplicationResult::getCode()const +{ + return code_; +} + +bool DeleteApplicationResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DeleteConfigMapRequest.cc b/sae/src/model/DeleteConfigMapRequest.cc new file mode 100644 index 000000000..83ccafbc3 --- /dev/null +++ b/sae/src/model/DeleteConfigMapRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DeleteConfigMapRequest; + +DeleteConfigMapRequest::DeleteConfigMapRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/configmap/configMap"); + setMethod(HttpRequest::Method::Delete); +} + +DeleteConfigMapRequest::~DeleteConfigMapRequest() +{} + +long DeleteConfigMapRequest::getConfigMapId()const +{ + return configMapId_; +} + +void DeleteConfigMapRequest::setConfigMapId(long configMapId) +{ + configMapId_ = configMapId; + setParameter("ConfigMapId", std::to_string(configMapId)); +} + diff --git a/sae/src/model/DeleteConfigMapResult.cc b/sae/src/model/DeleteConfigMapResult.cc new file mode 100644 index 000000000..fcf14b644 --- /dev/null +++ b/sae/src/model/DeleteConfigMapResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +DeleteConfigMapResult::DeleteConfigMapResult() : + ServiceResult() +{} + +DeleteConfigMapResult::DeleteConfigMapResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteConfigMapResult::~DeleteConfigMapResult() +{} + +void DeleteConfigMapResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ConfigMapId"].isNull()) + data_.configMapId = std::stol(dataNode["ConfigMapId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteConfigMapResult::getMessage()const +{ + return message_; +} + +std::string DeleteConfigMapResult::getTraceId()const +{ + return traceId_; +} + +DeleteConfigMapResult::Data DeleteConfigMapResult::getData()const +{ + return data_; +} + +std::string DeleteConfigMapResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteConfigMapResult::getCode()const +{ + return code_; +} + +bool DeleteConfigMapResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DeleteIngressRequest.cc b/sae/src/model/DeleteIngressRequest.cc new file mode 100644 index 000000000..fd87f68f7 --- /dev/null +++ b/sae/src/model/DeleteIngressRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DeleteIngressRequest; + +DeleteIngressRequest::DeleteIngressRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/ingress/Ingress"); + setMethod(HttpRequest::Method::Delete); +} + +DeleteIngressRequest::~DeleteIngressRequest() +{} + +long DeleteIngressRequest::getIngressId()const +{ + return ingressId_; +} + +void DeleteIngressRequest::setIngressId(long ingressId) +{ + ingressId_ = ingressId; + setParameter("IngressId", std::to_string(ingressId)); +} + diff --git a/sae/src/model/DeleteIngressResult.cc b/sae/src/model/DeleteIngressResult.cc new file mode 100644 index 000000000..3d5fb559e --- /dev/null +++ b/sae/src/model/DeleteIngressResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +DeleteIngressResult::DeleteIngressResult() : + ServiceResult() +{} + +DeleteIngressResult::DeleteIngressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteIngressResult::~DeleteIngressResult() +{} + +void DeleteIngressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["IngressId"].isNull()) + data_.ingressId = std::stol(dataNode["IngressId"].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"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string DeleteIngressResult::getMessage()const +{ + return message_; +} + +std::string DeleteIngressResult::getTraceId()const +{ + return traceId_; +} + +DeleteIngressResult::Data DeleteIngressResult::getData()const +{ + return data_; +} + +std::string DeleteIngressResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteIngressResult::getCode()const +{ + return code_; +} + +bool DeleteIngressResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DeleteNamespaceRequest.cc b/sae/src/model/DeleteNamespaceRequest.cc new file mode 100644 index 000000000..b24dd080d --- /dev/null +++ b/sae/src/model/DeleteNamespaceRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DeleteNamespaceRequest; + +DeleteNamespaceRequest::DeleteNamespaceRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/paas/namespace"); + setMethod(HttpRequest::Method::Delete); +} + +DeleteNamespaceRequest::~DeleteNamespaceRequest() +{} + +std::string DeleteNamespaceRequest::getNamespaceId()const +{ + return namespaceId_; +} + +void DeleteNamespaceRequest::setNamespaceId(const std::string& namespaceId) +{ + namespaceId_ = namespaceId; + setParameter("NamespaceId", namespaceId); +} + diff --git a/sae/src/model/DeleteNamespaceResult.cc b/sae/src/model/DeleteNamespaceResult.cc new file mode 100644 index 000000000..387a03340 --- /dev/null +++ b/sae/src/model/DeleteNamespaceResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +DeleteNamespaceResult::DeleteNamespaceResult() : + ServiceResult() +{} + +DeleteNamespaceResult::DeleteNamespaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNamespaceResult::~DeleteNamespaceResult() +{} + +void DeleteNamespaceResult::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["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string DeleteNamespaceResult::getMessage()const +{ + return message_; +} + +std::string DeleteNamespaceResult::getTraceId()const +{ + return traceId_; +} + +std::string DeleteNamespaceResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteNamespaceResult::getCode()const +{ + return code_; +} + +bool DeleteNamespaceResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DeployApplicationRequest.cc b/sae/src/model/DeployApplicationRequest.cc new file mode 100644 index 000000000..ee10599c9 --- /dev/null +++ b/sae/src/model/DeployApplicationRequest.cc @@ -0,0 +1,415 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DeployApplicationRequest; + +DeployApplicationRequest::DeployApplicationRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/app/deployApplication"); + setMethod(HttpRequest::Method::Post); +} + +DeployApplicationRequest::~DeployApplicationRequest() +{} + +std::string DeployApplicationRequest::getNasId()const +{ + return nasId_; +} + +void DeployApplicationRequest::setNasId(const std::string& nasId) +{ + nasId_ = nasId; + setParameter("NasId", nasId); +} + +std::string DeployApplicationRequest::getWebContainer()const +{ + return webContainer_; +} + +void DeployApplicationRequest::setWebContainer(const std::string& webContainer) +{ + webContainer_ = webContainer; + setParameter("WebContainer", webContainer); +} + +std::string DeployApplicationRequest::getJarStartArgs()const +{ + return jarStartArgs_; +} + +void DeployApplicationRequest::setJarStartArgs(const std::string& jarStartArgs) +{ + jarStartArgs_ = jarStartArgs; + setParameter("JarStartArgs", jarStartArgs); +} + +std::string DeployApplicationRequest::getEnableAhas()const +{ + return enableAhas_; +} + +void DeployApplicationRequest::setEnableAhas(const std::string& enableAhas) +{ + enableAhas_ = enableAhas; + setParameter("EnableAhas", enableAhas); +} + +std::string DeployApplicationRequest::getSlsConfigs()const +{ + return slsConfigs_; +} + +void DeployApplicationRequest::setSlsConfigs(const std::string& slsConfigs) +{ + slsConfigs_ = slsConfigs; + setParameter("SlsConfigs", slsConfigs); +} + +std::string DeployApplicationRequest::getCommandArgs()const +{ + return commandArgs_; +} + +void DeployApplicationRequest::setCommandArgs(const std::string& commandArgs) +{ + commandArgs_ = commandArgs; + setParameter("CommandArgs", commandArgs); +} + +std::string DeployApplicationRequest::getReadiness()const +{ + return readiness_; +} + +void DeployApplicationRequest::setReadiness(const std::string& readiness) +{ + readiness_ = readiness; + setParameter("Readiness", readiness); +} + +std::string DeployApplicationRequest::getTimezone()const +{ + return timezone_; +} + +void DeployApplicationRequest::setTimezone(const std::string& timezone) +{ + timezone_ = timezone; + setParameter("Timezone", timezone); +} + +std::string DeployApplicationRequest::getMountHost()const +{ + return mountHost_; +} + +void DeployApplicationRequest::setMountHost(const std::string& mountHost) +{ + mountHost_ = mountHost; + setParameter("MountHost", mountHost); +} + +int DeployApplicationRequest::getBatchWaitTime()const +{ + return batchWaitTime_; +} + +void DeployApplicationRequest::setBatchWaitTime(int batchWaitTime) +{ + batchWaitTime_ = batchWaitTime; + setParameter("BatchWaitTime", std::to_string(batchWaitTime)); +} + +std::string DeployApplicationRequest::getLiveness()const +{ + return liveness_; +} + +void DeployApplicationRequest::setLiveness(const std::string& liveness) +{ + liveness_ = liveness; + setParameter("Liveness", liveness); +} + +std::string DeployApplicationRequest::getEnvs()const +{ + return envs_; +} + +void DeployApplicationRequest::setEnvs(const std::string& envs) +{ + envs_ = envs; + setParameter("Envs", envs); +} + +std::string DeployApplicationRequest::getPhpArmsConfigLocation()const +{ + return phpArmsConfigLocation_; +} + +void DeployApplicationRequest::setPhpArmsConfigLocation(const std::string& phpArmsConfigLocation) +{ + phpArmsConfigLocation_ = phpArmsConfigLocation; + setParameter("PhpArmsConfigLocation", phpArmsConfigLocation); +} + +std::string DeployApplicationRequest::getPackageVersion()const +{ + return packageVersion_; +} + +void DeployApplicationRequest::setPackageVersion(const std::string& packageVersion) +{ + packageVersion_ = packageVersion; + setParameter("PackageVersion", packageVersion); +} + +std::string DeployApplicationRequest::getTomcatConfig()const +{ + return tomcatConfig_; +} + +void DeployApplicationRequest::setTomcatConfig(const std::string& tomcatConfig) +{ + tomcatConfig_ = tomcatConfig; + setParameter("TomcatConfig", tomcatConfig); +} + +std::string DeployApplicationRequest::getCustomHostAlias()const +{ + return customHostAlias_; +} + +void DeployApplicationRequest::setCustomHostAlias(const std::string& customHostAlias) +{ + customHostAlias_ = customHostAlias; + setParameter("CustomHostAlias", customHostAlias); +} + +std::string DeployApplicationRequest::getWarStartOptions()const +{ + return warStartOptions_; +} + +void DeployApplicationRequest::setWarStartOptions(const std::string& warStartOptions) +{ + warStartOptions_ = warStartOptions; + setParameter("WarStartOptions", warStartOptions); +} + +std::string DeployApplicationRequest::getJarStartOptions()const +{ + return jarStartOptions_; +} + +void DeployApplicationRequest::setJarStartOptions(const std::string& jarStartOptions) +{ + jarStartOptions_ = jarStartOptions; + setParameter("JarStartOptions", jarStartOptions); +} + +std::string DeployApplicationRequest::getEdasContainerVersion()const +{ + return edasContainerVersion_; +} + +void DeployApplicationRequest::setEdasContainerVersion(const std::string& edasContainerVersion) +{ + edasContainerVersion_ = edasContainerVersion; + setParameter("EdasContainerVersion", edasContainerVersion); +} + +std::string DeployApplicationRequest::getPackageUrl()const +{ + return packageUrl_; +} + +void DeployApplicationRequest::setPackageUrl(const std::string& packageUrl) +{ + packageUrl_ = packageUrl; + setParameter("PackageUrl", packageUrl); +} + +int DeployApplicationRequest::getTerminationGracePeriodSeconds()const +{ + return terminationGracePeriodSeconds_; +} + +void DeployApplicationRequest::setTerminationGracePeriodSeconds(int terminationGracePeriodSeconds) +{ + terminationGracePeriodSeconds_ = terminationGracePeriodSeconds; + setParameter("TerminationGracePeriodSeconds", std::to_string(terminationGracePeriodSeconds)); +} + +std::string DeployApplicationRequest::getConfigMapMountDesc()const +{ + return configMapMountDesc_; +} + +void DeployApplicationRequest::setConfigMapMountDesc(const std::string& configMapMountDesc) +{ + configMapMountDesc_ = configMapMountDesc; + setBodyParameter("ConfigMapMountDesc", configMapMountDesc); +} + +std::string DeployApplicationRequest::getPhpConfig()const +{ + return phpConfig_; +} + +void DeployApplicationRequest::setPhpConfig(const std::string& phpConfig) +{ + phpConfig_ = phpConfig; + setBodyParameter("PhpConfig", phpConfig); +} + +std::string DeployApplicationRequest::getPreStop()const +{ + return preStop_; +} + +void DeployApplicationRequest::setPreStop(const std::string& preStop) +{ + preStop_ = preStop; + setParameter("PreStop", preStop); +} + +std::string DeployApplicationRequest::getCommand()const +{ + return command_; +} + +void DeployApplicationRequest::setCommand(const std::string& command) +{ + command_ = command; + setParameter("Command", command); +} + +std::string DeployApplicationRequest::getUpdateStrategy()const +{ + return updateStrategy_; +} + +void DeployApplicationRequest::setUpdateStrategy(const std::string& updateStrategy) +{ + updateStrategy_ = updateStrategy; + setParameter("UpdateStrategy", updateStrategy); +} + +std::string DeployApplicationRequest::getMountDesc()const +{ + return mountDesc_; +} + +void DeployApplicationRequest::setMountDesc(const std::string& mountDesc) +{ + mountDesc_ = mountDesc; + setParameter("MountDesc", mountDesc); +} + +std::string DeployApplicationRequest::getJdk()const +{ + return jdk_; +} + +void DeployApplicationRequest::setJdk(const std::string& jdk) +{ + jdk_ = jdk; + setParameter("Jdk", jdk); +} + +int DeployApplicationRequest::getMinReadyInstances()const +{ + return minReadyInstances_; +} + +void DeployApplicationRequest::setMinReadyInstances(int minReadyInstances) +{ + minReadyInstances_ = minReadyInstances; + setParameter("MinReadyInstances", std::to_string(minReadyInstances)); +} + +std::string DeployApplicationRequest::getChangeOrderDesc()const +{ + return changeOrderDesc_; +} + +void DeployApplicationRequest::setChangeOrderDesc(const std::string& changeOrderDesc) +{ + changeOrderDesc_ = changeOrderDesc; + setParameter("ChangeOrderDesc", changeOrderDesc); +} + +std::string DeployApplicationRequest::getAppId()const +{ + return appId_; +} + +void DeployApplicationRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string DeployApplicationRequest::getImageUrl()const +{ + return imageUrl_; +} + +void DeployApplicationRequest::setImageUrl(const std::string& imageUrl) +{ + imageUrl_ = imageUrl; + setParameter("ImageUrl", imageUrl); +} + +bool DeployApplicationRequest::getAutoEnableApplicationScalingRule()const +{ + return autoEnableApplicationScalingRule_; +} + +void DeployApplicationRequest::setAutoEnableApplicationScalingRule(bool autoEnableApplicationScalingRule) +{ + autoEnableApplicationScalingRule_ = autoEnableApplicationScalingRule; + setParameter("AutoEnableApplicationScalingRule", autoEnableApplicationScalingRule ? "true" : "false"); +} + +std::string DeployApplicationRequest::getPhpConfigLocation()const +{ + return phpConfigLocation_; +} + +void DeployApplicationRequest::setPhpConfigLocation(const std::string& phpConfigLocation) +{ + phpConfigLocation_ = phpConfigLocation; + setParameter("PhpConfigLocation", phpConfigLocation); +} + +std::string DeployApplicationRequest::getPostStart()const +{ + return postStart_; +} + +void DeployApplicationRequest::setPostStart(const std::string& postStart) +{ + postStart_ = postStart; + setParameter("PostStart", postStart); +} + diff --git a/sae/src/model/DeployApplicationResult.cc b/sae/src/model/DeployApplicationResult.cc new file mode 100644 index 000000000..3518abfb6 --- /dev/null +++ b/sae/src/model/DeployApplicationResult.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::Sae; +using namespace AlibabaCloud::Sae::Model; + +DeployApplicationResult::DeployApplicationResult() : + ServiceResult() +{} + +DeployApplicationResult::DeployApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeployApplicationResult::~DeployApplicationResult() +{} + +void DeployApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["AppId"].isNull()) + data_.appId = dataNode["AppId"].asString(); + if(!dataNode["ChangeOrderId"].isNull()) + data_.changeOrderId = dataNode["ChangeOrderId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeployApplicationResult::getMessage()const +{ + return message_; +} + +std::string DeployApplicationResult::getTraceId()const +{ + return traceId_; +} + +DeployApplicationResult::Data DeployApplicationResult::getData()const +{ + return data_; +} + +std::string DeployApplicationResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeployApplicationResult::getCode()const +{ + return code_; +} + +bool DeployApplicationResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DescribeApplicationConfigRequest.cc b/sae/src/model/DescribeApplicationConfigRequest.cc new file mode 100644 index 000000000..4f8ba098e --- /dev/null +++ b/sae/src/model/DescribeApplicationConfigRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DescribeApplicationConfigRequest; + +DescribeApplicationConfigRequest::DescribeApplicationConfigRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/app/describeApplicationConfig"); + setMethod(HttpRequest::Method::Get); +} + +DescribeApplicationConfigRequest::~DescribeApplicationConfigRequest() +{} + +std::string DescribeApplicationConfigRequest::getVersionId()const +{ + return versionId_; +} + +void DescribeApplicationConfigRequest::setVersionId(const std::string& versionId) +{ + versionId_ = versionId; + setParameter("VersionId", versionId); +} + +std::string DescribeApplicationConfigRequest::getAppId()const +{ + return appId_; +} + +void DescribeApplicationConfigRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + diff --git a/sae/src/model/DescribeApplicationConfigResult.cc b/sae/src/model/DescribeApplicationConfigResult.cc new file mode 100644 index 000000000..e1606df9f --- /dev/null +++ b/sae/src/model/DescribeApplicationConfigResult.cc @@ -0,0 +1,201 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +DescribeApplicationConfigResult::DescribeApplicationConfigResult() : + ServiceResult() +{} + +DescribeApplicationConfigResult::DescribeApplicationConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApplicationConfigResult::~DescribeApplicationConfigResult() +{} + +void DescribeApplicationConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["AppId"].isNull()) + data_.appId = dataNode["AppId"].asString(); + if(!dataNode["AppName"].isNull()) + data_.appName = dataNode["AppName"].asString(); + if(!dataNode["NamespaceId"].isNull()) + data_.namespaceId = dataNode["NamespaceId"].asString(); + if(!dataNode["AppDescription"].isNull()) + data_.appDescription = dataNode["AppDescription"].asString(); + if(!dataNode["VpcId"].isNull()) + data_.vpcId = dataNode["VpcId"].asString(); + if(!dataNode["VSwitchId"].isNull()) + data_.vSwitchId = dataNode["VSwitchId"].asString(); + if(!dataNode["PackageType"].isNull()) + data_.packageType = dataNode["PackageType"].asString(); + if(!dataNode["PackageVersion"].isNull()) + data_.packageVersion = dataNode["PackageVersion"].asString(); + if(!dataNode["PackageUrl"].isNull()) + data_.packageUrl = dataNode["PackageUrl"].asString(); + if(!dataNode["ImageUrl"].isNull()) + data_.imageUrl = dataNode["ImageUrl"].asString(); + if(!dataNode["Jdk"].isNull()) + data_.jdk = dataNode["Jdk"].asString(); + if(!dataNode["WebContainer"].isNull()) + data_.webContainer = dataNode["WebContainer"].asString(); + if(!dataNode["Cpu"].isNull()) + data_.cpu = std::stoi(dataNode["Cpu"].asString()); + if(!dataNode["Memory"].isNull()) + data_.memory = std::stoi(dataNode["Memory"].asString()); + if(!dataNode["Replicas"].isNull()) + data_.replicas = std::stoi(dataNode["Replicas"].asString()); + if(!dataNode["Command"].isNull()) + data_.command = dataNode["Command"].asString(); + if(!dataNode["CommandArgs"].isNull()) + data_.commandArgs = dataNode["CommandArgs"].asString(); + if(!dataNode["Envs"].isNull()) + data_.envs = dataNode["Envs"].asString(); + if(!dataNode["CustomHostAlias"].isNull()) + data_.customHostAlias = dataNode["CustomHostAlias"].asString(); + if(!dataNode["JarStartOptions"].isNull()) + data_.jarStartOptions = dataNode["JarStartOptions"].asString(); + if(!dataNode["JarStartArgs"].isNull()) + data_.jarStartArgs = dataNode["JarStartArgs"].asString(); + if(!dataNode["Liveness"].isNull()) + data_.liveness = dataNode["Liveness"].asString(); + if(!dataNode["Readiness"].isNull()) + data_.readiness = dataNode["Readiness"].asString(); + if(!dataNode["MinReadyInstances"].isNull()) + data_.minReadyInstances = std::stoi(dataNode["MinReadyInstances"].asString()); + if(!dataNode["BatchWaitTime"].isNull()) + data_.batchWaitTime = std::stoi(dataNode["BatchWaitTime"].asString()); + if(!dataNode["EdasContainerVersion"].isNull()) + data_.edasContainerVersion = dataNode["EdasContainerVersion"].asString(); + if(!dataNode["RegionId"].isNull()) + data_.regionId = dataNode["RegionId"].asString(); + if(!dataNode["SlsConfigs"].isNull()) + data_.slsConfigs = dataNode["SlsConfigs"].asString(); + if(!dataNode["Timezone"].isNull()) + data_.timezone = dataNode["Timezone"].asString(); + if(!dataNode["NasId"].isNull()) + data_.nasId = dataNode["NasId"].asString(); + if(!dataNode["MountHost"].isNull()) + data_.mountHost = dataNode["MountHost"].asString(); + if(!dataNode["PreStop"].isNull()) + data_.preStop = dataNode["PreStop"].asString(); + if(!dataNode["PostStart"].isNull()) + data_.postStart = dataNode["PostStart"].asString(); + if(!dataNode["WarStartOptions"].isNull()) + data_.warStartOptions = dataNode["WarStartOptions"].asString(); + if(!dataNode["SecurityGroupId"].isNull()) + data_.securityGroupId = dataNode["SecurityGroupId"].asString(); + if(!dataNode["TerminationGracePeriodSeconds"].isNull()) + data_.terminationGracePeriodSeconds = std::stoi(dataNode["TerminationGracePeriodSeconds"].asString()); + if(!dataNode["EnableAhas"].isNull()) + data_.enableAhas = dataNode["EnableAhas"].asString(); + if(!dataNode["PhpArmsConfigLocation"].isNull()) + data_.phpArmsConfigLocation = dataNode["PhpArmsConfigLocation"].asString(); + if(!dataNode["PhpConfigLocation"].isNull()) + data_.phpConfigLocation = dataNode["PhpConfigLocation"].asString(); + if(!dataNode["PhpConfig"].isNull()) + data_.phpConfig = dataNode["PhpConfig"].asString(); + if(!dataNode["TomcatConfig"].isNull()) + data_.tomcatConfig = dataNode["TomcatConfig"].asString(); + auto allMountDescNode = dataNode["MountDesc"]["MountDescItem"]; + for (auto dataNodeMountDescMountDescItem : allMountDescNode) + { + Data::MountDescItem mountDescItemObject; + if(!dataNodeMountDescMountDescItem["NasPath"].isNull()) + mountDescItemObject.nasPath = dataNodeMountDescMountDescItem["NasPath"].asString(); + if(!dataNodeMountDescMountDescItem["MountPath"].isNull()) + mountDescItemObject.mountPath = dataNodeMountDescMountDescItem["MountPath"].asString(); + data_.mountDesc.push_back(mountDescItemObject); + } + auto allTagsNode = dataNode["Tags"]["Tag"]; + for (auto dataNodeTagsTag : allTagsNode) + { + Data::Tag tagObject; + if(!dataNodeTagsTag["Key"].isNull()) + tagObject.key = dataNodeTagsTag["Key"].asString(); + if(!dataNodeTagsTag["Value"].isNull()) + tagObject.value = dataNodeTagsTag["Value"].asString(); + data_.tags.push_back(tagObject); + } + auto allConfigMapMountDescNode = dataNode["ConfigMapMountDesc"]["ConfigMapMountDescItem"]; + for (auto dataNodeConfigMapMountDescConfigMapMountDescItem : allConfigMapMountDescNode) + { + Data::ConfigMapMountDescItem configMapMountDescItemObject; + if(!dataNodeConfigMapMountDescConfigMapMountDescItem["ConfigMapId"].isNull()) + configMapMountDescItemObject.configMapId = std::stol(dataNodeConfigMapMountDescConfigMapMountDescItem["ConfigMapId"].asString()); + if(!dataNodeConfigMapMountDescConfigMapMountDescItem["ConfigMapName"].isNull()) + configMapMountDescItemObject.configMapName = dataNodeConfigMapMountDescConfigMapMountDescItem["ConfigMapName"].asString(); + if(!dataNodeConfigMapMountDescConfigMapMountDescItem["Key"].isNull()) + configMapMountDescItemObject.key = dataNodeConfigMapMountDescConfigMapMountDescItem["Key"].asString(); + if(!dataNodeConfigMapMountDescConfigMapMountDescItem["MountPath"].isNull()) + configMapMountDescItemObject.mountPath = dataNodeConfigMapMountDescConfigMapMountDescItem["MountPath"].asString(); + data_.configMapMountDesc.push_back(configMapMountDescItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string DescribeApplicationConfigResult::getMessage()const +{ + return message_; +} + +std::string DescribeApplicationConfigResult::getTraceId()const +{ + return traceId_; +} + +DescribeApplicationConfigResult::Data DescribeApplicationConfigResult::getData()const +{ + return data_; +} + +std::string DescribeApplicationConfigResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DescribeApplicationConfigResult::getCode()const +{ + return code_; +} + +bool DescribeApplicationConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DescribeApplicationGroupsRequest.cc b/sae/src/model/DescribeApplicationGroupsRequest.cc new file mode 100644 index 000000000..bd6cef39f --- /dev/null +++ b/sae/src/model/DescribeApplicationGroupsRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DescribeApplicationGroupsRequest; + +DescribeApplicationGroupsRequest::DescribeApplicationGroupsRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/app/describeApplicationGroups"); + setMethod(HttpRequest::Method::Get); +} + +DescribeApplicationGroupsRequest::~DescribeApplicationGroupsRequest() +{} + +std::string DescribeApplicationGroupsRequest::getAppId()const +{ + return appId_; +} + +void DescribeApplicationGroupsRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +int DescribeApplicationGroupsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeApplicationGroupsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeApplicationGroupsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeApplicationGroupsRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + diff --git a/sae/src/model/DescribeApplicationGroupsResult.cc b/sae/src/model/DescribeApplicationGroupsResult.cc new file mode 100644 index 000000000..0eede904c --- /dev/null +++ b/sae/src/model/DescribeApplicationGroupsResult.cc @@ -0,0 +1,114 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +DescribeApplicationGroupsResult::DescribeApplicationGroupsResult() : + ServiceResult() +{} + +DescribeApplicationGroupsResult::DescribeApplicationGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApplicationGroupsResult::~DescribeApplicationGroupsResult() +{} + +void DescribeApplicationGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["ApplicationGroup"]; + for (auto valueDataApplicationGroup : allDataNode) + { + ApplicationGroup dataObject; + if(!valueDataApplicationGroup["GroupId"].isNull()) + dataObject.groupId = valueDataApplicationGroup["GroupId"].asString(); + if(!valueDataApplicationGroup["GroupName"].isNull()) + dataObject.groupName = valueDataApplicationGroup["GroupName"].asString(); + if(!valueDataApplicationGroup["GroupType"].isNull()) + dataObject.groupType = std::stoi(valueDataApplicationGroup["GroupType"].asString()); + if(!valueDataApplicationGroup["PackageType"].isNull()) + dataObject.packageType = valueDataApplicationGroup["PackageType"].asString(); + if(!valueDataApplicationGroup["PackageVersion"].isNull()) + dataObject.packageVersion = valueDataApplicationGroup["PackageVersion"].asString(); + if(!valueDataApplicationGroup["ImageUrl"].isNull()) + dataObject.imageUrl = valueDataApplicationGroup["ImageUrl"].asString(); + if(!valueDataApplicationGroup["PackageUrl"].isNull()) + dataObject.packageUrl = valueDataApplicationGroup["PackageUrl"].asString(); + if(!valueDataApplicationGroup["Jdk"].isNull()) + dataObject.jdk = valueDataApplicationGroup["Jdk"].asString(); + if(!valueDataApplicationGroup["WebContainer"].isNull()) + dataObject.webContainer = valueDataApplicationGroup["WebContainer"].asString(); + if(!valueDataApplicationGroup["EdasContainerVersion"].isNull()) + dataObject.edasContainerVersion = valueDataApplicationGroup["EdasContainerVersion"].asString(); + if(!valueDataApplicationGroup["Replicas"].isNull()) + dataObject.replicas = std::stoi(valueDataApplicationGroup["Replicas"].asString()); + if(!valueDataApplicationGroup["RunningInstances"].isNull()) + dataObject.runningInstances = std::stoi(valueDataApplicationGroup["RunningInstances"].asString()); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string DescribeApplicationGroupsResult::getMessage()const +{ + return message_; +} + +std::string DescribeApplicationGroupsResult::getTraceId()const +{ + return traceId_; +} + +std::vector DescribeApplicationGroupsResult::getData()const +{ + return data_; +} + +std::string DescribeApplicationGroupsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DescribeApplicationGroupsResult::getCode()const +{ + return code_; +} + +bool DescribeApplicationGroupsResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DescribeApplicationImageRequest.cc b/sae/src/model/DescribeApplicationImageRequest.cc new file mode 100644 index 000000000..996b9eb4c --- /dev/null +++ b/sae/src/model/DescribeApplicationImageRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DescribeApplicationImageRequest; + +DescribeApplicationImageRequest::DescribeApplicationImageRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/container/describeApplicationImage"); + setMethod(HttpRequest::Method::Get); +} + +DescribeApplicationImageRequest::~DescribeApplicationImageRequest() +{} + +std::string DescribeApplicationImageRequest::getAppId()const +{ + return appId_; +} + +void DescribeApplicationImageRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string DescribeApplicationImageRequest::getImageUrl()const +{ + return imageUrl_; +} + +void DescribeApplicationImageRequest::setImageUrl(const std::string& imageUrl) +{ + imageUrl_ = imageUrl; + setParameter("ImageUrl", imageUrl); +} + diff --git a/sae/src/model/DescribeApplicationImageResult.cc b/sae/src/model/DescribeApplicationImageResult.cc new file mode 100644 index 000000000..b1f38384c --- /dev/null +++ b/sae/src/model/DescribeApplicationImageResult.cc @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +DescribeApplicationImageResult::DescribeApplicationImageResult() : + ServiceResult() +{} + +DescribeApplicationImageResult::DescribeApplicationImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApplicationImageResult::~DescribeApplicationImageResult() +{} + +void DescribeApplicationImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CrUrl"].isNull()) + data_.crUrl = dataNode["CrUrl"].asString(); + if(!dataNode["Logo"].isNull()) + data_.logo = dataNode["Logo"].asString(); + if(!dataNode["RegionId"].isNull()) + data_.regionId = dataNode["RegionId"].asString(); + if(!dataNode["RepoId"].isNull()) + data_.repoId = std::stoi(dataNode["RepoId"].asString()); + if(!dataNode["RepoName"].isNull()) + data_.repoName = dataNode["RepoName"].asString(); + if(!dataNode["RepoNamespace"].isNull()) + data_.repoNamespace = dataNode["RepoNamespace"].asString(); + if(!dataNode["RepoOriginType"].isNull()) + data_.repoOriginType = dataNode["RepoOriginType"].asString(); + if(!dataNode["RepoType"].isNull()) + data_.repoType = dataNode["RepoType"].asString(); + if(!dataNode["RepoTag"].isNull()) + data_.repoTag = dataNode["RepoTag"].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"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string DescribeApplicationImageResult::getMessage()const +{ + return message_; +} + +std::string DescribeApplicationImageResult::getTraceId()const +{ + return traceId_; +} + +DescribeApplicationImageResult::Data DescribeApplicationImageResult::getData()const +{ + return data_; +} + +std::string DescribeApplicationImageResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DescribeApplicationImageResult::getCode()const +{ + return code_; +} + +bool DescribeApplicationImageResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DescribeApplicationInstancesRequest.cc b/sae/src/model/DescribeApplicationInstancesRequest.cc new file mode 100644 index 000000000..c0c20461a --- /dev/null +++ b/sae/src/model/DescribeApplicationInstancesRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DescribeApplicationInstancesRequest; + +DescribeApplicationInstancesRequest::DescribeApplicationInstancesRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/app/describeApplicationInstances"); + setMethod(HttpRequest::Method::Get); +} + +DescribeApplicationInstancesRequest::~DescribeApplicationInstancesRequest() +{} + +std::string DescribeApplicationInstancesRequest::getAppId()const +{ + return appId_; +} + +void DescribeApplicationInstancesRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string DescribeApplicationInstancesRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeApplicationInstancesRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +int DescribeApplicationInstancesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeApplicationInstancesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeApplicationInstancesRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeApplicationInstancesRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + diff --git a/sae/src/model/DescribeApplicationInstancesResult.cc b/sae/src/model/DescribeApplicationInstancesResult.cc new file mode 100644 index 000000000..836112c0b --- /dev/null +++ b/sae/src/model/DescribeApplicationInstancesResult.cc @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +DescribeApplicationInstancesResult::DescribeApplicationInstancesResult() : + ServiceResult() +{} + +DescribeApplicationInstancesResult::DescribeApplicationInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApplicationInstancesResult::~DescribeApplicationInstancesResult() +{} + +void DescribeApplicationInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stoi(dataNode["CurrentPage"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalSize"].isNull()) + data_.totalSize = std::stoi(dataNode["TotalSize"].asString()); + auto allInstancesNode = dataNode["Instances"]["Instance"]; + for (auto dataNodeInstancesInstance : allInstancesNode) + { + Data::Instance instanceObject; + if(!dataNodeInstancesInstance["GroupId"].isNull()) + instanceObject.groupId = dataNodeInstancesInstance["GroupId"].asString(); + if(!dataNodeInstancesInstance["InstanceId"].isNull()) + instanceObject.instanceId = dataNodeInstancesInstance["InstanceId"].asString(); + if(!dataNodeInstancesInstance["InstanceContainerStatus"].isNull()) + instanceObject.instanceContainerStatus = dataNodeInstancesInstance["InstanceContainerStatus"].asString(); + if(!dataNodeInstancesInstance["InstanceContainerIp"].isNull()) + instanceObject.instanceContainerIp = dataNodeInstancesInstance["InstanceContainerIp"].asString(); + if(!dataNodeInstancesInstance["CreateTimeStamp"].isNull()) + instanceObject.createTimeStamp = std::stol(dataNodeInstancesInstance["CreateTimeStamp"].asString()); + if(!dataNodeInstancesInstance["GroupId"].isNull()) + instanceObject.groupId1 = dataNodeInstancesInstance["GroupId"].asString(); + if(!dataNodeInstancesInstance["VSwitchId"].isNull()) + instanceObject.vSwitchId = dataNodeInstancesInstance["VSwitchId"].asString(); + if(!dataNodeInstancesInstance["InstanceContainerRestarts"].isNull()) + instanceObject.instanceContainerRestarts = std::stol(dataNodeInstancesInstance["InstanceContainerRestarts"].asString()); + data_.instances.push_back(instanceObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string DescribeApplicationInstancesResult::getMessage()const +{ + return message_; +} + +std::string DescribeApplicationInstancesResult::getTraceId()const +{ + return traceId_; +} + +DescribeApplicationInstancesResult::Data DescribeApplicationInstancesResult::getData()const +{ + return data_; +} + +std::string DescribeApplicationInstancesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DescribeApplicationInstancesResult::getCode()const +{ + return code_; +} + +bool DescribeApplicationInstancesResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DescribeApplicationSlbsRequest.cc b/sae/src/model/DescribeApplicationSlbsRequest.cc new file mode 100644 index 000000000..216e3b450 --- /dev/null +++ b/sae/src/model/DescribeApplicationSlbsRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DescribeApplicationSlbsRequest; + +DescribeApplicationSlbsRequest::DescribeApplicationSlbsRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/app/slb"); + setMethod(HttpRequest::Method::Get); +} + +DescribeApplicationSlbsRequest::~DescribeApplicationSlbsRequest() +{} + +std::string DescribeApplicationSlbsRequest::getAppId()const +{ + return appId_; +} + +void DescribeApplicationSlbsRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + diff --git a/sae/src/model/DescribeApplicationSlbsResult.cc b/sae/src/model/DescribeApplicationSlbsResult.cc new file mode 100644 index 000000000..1d07c6b20 --- /dev/null +++ b/sae/src/model/DescribeApplicationSlbsResult.cc @@ -0,0 +1,121 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +DescribeApplicationSlbsResult::DescribeApplicationSlbsResult() : + ServiceResult() +{} + +DescribeApplicationSlbsResult::DescribeApplicationSlbsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApplicationSlbsResult::~DescribeApplicationSlbsResult() +{} + +void DescribeApplicationSlbsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["InternetIp"].isNull()) + data_.internetIp = dataNode["InternetIp"].asString(); + if(!dataNode["IntranetIp"].isNull()) + data_.intranetIp = dataNode["IntranetIp"].asString(); + if(!dataNode["InternetSlbId"].isNull()) + data_.internetSlbId = dataNode["InternetSlbId"].asString(); + if(!dataNode["IntranetSlbId"].isNull()) + data_.intranetSlbId = dataNode["IntranetSlbId"].asString(); + auto allInternetNode = dataNode["Internet"]["InternetItem"]; + for (auto dataNodeInternetInternetItem : allInternetNode) + { + Data::InternetItem internetItemObject; + if(!dataNodeInternetInternetItem["Port"].isNull()) + internetItemObject.port = std::stoi(dataNodeInternetInternetItem["Port"].asString()); + if(!dataNodeInternetInternetItem["Protocol"].isNull()) + internetItemObject.protocol = dataNodeInternetInternetItem["Protocol"].asString(); + if(!dataNodeInternetInternetItem["TargetPort"].isNull()) + internetItemObject.targetPort = std::stoi(dataNodeInternetInternetItem["TargetPort"].asString()); + if(!dataNodeInternetInternetItem["HttpsCertId"].isNull()) + internetItemObject.httpsCertId = dataNodeInternetInternetItem["HttpsCertId"].asString(); + data_.internet.push_back(internetItemObject); + } + auto allIntranetNode = dataNode["Intranet"]["IntranetItem"]; + for (auto dataNodeIntranetIntranetItem : allIntranetNode) + { + Data::IntranetItem intranetItemObject; + if(!dataNodeIntranetIntranetItem["Port"].isNull()) + intranetItemObject.port = std::stoi(dataNodeIntranetIntranetItem["Port"].asString()); + if(!dataNodeIntranetIntranetItem["Protocol"].isNull()) + intranetItemObject.protocol = dataNodeIntranetIntranetItem["Protocol"].asString(); + if(!dataNodeIntranetIntranetItem["TargetPort"].isNull()) + intranetItemObject.targetPort = std::stoi(dataNodeIntranetIntranetItem["TargetPort"].asString()); + if(!dataNodeIntranetIntranetItem["HttpsCertId"].isNull()) + intranetItemObject.httpsCertId = dataNodeIntranetIntranetItem["HttpsCertId"].asString(); + data_.intranet.push_back(intranetItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string DescribeApplicationSlbsResult::getMessage()const +{ + return message_; +} + +std::string DescribeApplicationSlbsResult::getTraceId()const +{ + return traceId_; +} + +DescribeApplicationSlbsResult::Data DescribeApplicationSlbsResult::getData()const +{ + return data_; +} + +std::string DescribeApplicationSlbsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DescribeApplicationSlbsResult::getCode()const +{ + return code_; +} + +bool DescribeApplicationSlbsResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DescribeApplicationStatusRequest.cc b/sae/src/model/DescribeApplicationStatusRequest.cc new file mode 100644 index 000000000..295e66068 --- /dev/null +++ b/sae/src/model/DescribeApplicationStatusRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DescribeApplicationStatusRequest; + +DescribeApplicationStatusRequest::DescribeApplicationStatusRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/app/describeApplicationStatus"); + setMethod(HttpRequest::Method::Get); +} + +DescribeApplicationStatusRequest::~DescribeApplicationStatusRequest() +{} + +std::string DescribeApplicationStatusRequest::getAppId()const +{ + return appId_; +} + +void DescribeApplicationStatusRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + diff --git a/sae/src/model/DescribeApplicationStatusResult.cc b/sae/src/model/DescribeApplicationStatusResult.cc new file mode 100644 index 000000000..1ee733011 --- /dev/null +++ b/sae/src/model/DescribeApplicationStatusResult.cc @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +DescribeApplicationStatusResult::DescribeApplicationStatusResult() : + ServiceResult() +{} + +DescribeApplicationStatusResult::DescribeApplicationStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApplicationStatusResult::~DescribeApplicationStatusResult() +{} + +void DescribeApplicationStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["AppId"].isNull()) + data_.appId = dataNode["AppId"].asString(); + if(!dataNode["LastChangeOrderId"].isNull()) + data_.lastChangeOrderId = dataNode["LastChangeOrderId"].asString(); + if(!dataNode["LastChangeOrderStatus"].isNull()) + data_.lastChangeOrderStatus = dataNode["LastChangeOrderStatus"].asString(); + if(!dataNode["LastChangeOrderRunning"].isNull()) + data_.lastChangeOrderRunning = dataNode["LastChangeOrderRunning"].asString() == "true"; + if(!dataNode["CurrentStatus"].isNull()) + data_.currentStatus = dataNode["CurrentStatus"].asString(); + if(!dataNode["ArmsApmInfo"].isNull()) + data_.armsApmInfo = dataNode["ArmsApmInfo"].asString(); + if(!dataNode["RunningInstances"].isNull()) + data_.runningInstances = std::stoi(dataNode["RunningInstances"].asString()); + if(!dataNode["ArmsAdvancedEnabled"].isNull()) + data_.armsAdvancedEnabled = dataNode["ArmsAdvancedEnabled"].asString(); + if(!dataNode["CreateTime"].isNull()) + data_.createTime = dataNode["CreateTime"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string DescribeApplicationStatusResult::getMessage()const +{ + return message_; +} + +std::string DescribeApplicationStatusResult::getTraceId()const +{ + return traceId_; +} + +DescribeApplicationStatusResult::Data DescribeApplicationStatusResult::getData()const +{ + return data_; +} + +std::string DescribeApplicationStatusResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DescribeApplicationStatusResult::getCode()const +{ + return code_; +} + +bool DescribeApplicationStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DescribeChangeOrderRequest.cc b/sae/src/model/DescribeChangeOrderRequest.cc new file mode 100644 index 000000000..10a636882 --- /dev/null +++ b/sae/src/model/DescribeChangeOrderRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DescribeChangeOrderRequest; + +DescribeChangeOrderRequest::DescribeChangeOrderRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/changeorder/DescribeChangeOrder"); + setMethod(HttpRequest::Method::Get); +} + +DescribeChangeOrderRequest::~DescribeChangeOrderRequest() +{} + +std::string DescribeChangeOrderRequest::getChangeOrderId()const +{ + return changeOrderId_; +} + +void DescribeChangeOrderRequest::setChangeOrderId(const std::string& changeOrderId) +{ + changeOrderId_ = changeOrderId; + setParameter("ChangeOrderId", changeOrderId); +} + diff --git a/sae/src/model/DescribeChangeOrderResult.cc b/sae/src/model/DescribeChangeOrderResult.cc new file mode 100644 index 000000000..b4255cb86 --- /dev/null +++ b/sae/src/model/DescribeChangeOrderResult.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +DescribeChangeOrderResult::DescribeChangeOrderResult() : + ServiceResult() +{} + +DescribeChangeOrderResult::DescribeChangeOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeChangeOrderResult::~DescribeChangeOrderResult() +{} + +void DescribeChangeOrderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["AppName"].isNull()) + data_.appName = dataNode["AppName"].asString(); + if(!dataNode["Auto"].isNull()) + data_._auto = dataNode["Auto"].asString() == "true"; + if(!dataNode["BatchCount"].isNull()) + data_.batchCount = std::stoi(dataNode["BatchCount"].asString()); + if(!dataNode["BatchType"].isNull()) + data_.batchType = dataNode["BatchType"].asString(); + if(!dataNode["BatchWaitTime"].isNull()) + data_.batchWaitTime = std::stoi(dataNode["BatchWaitTime"].asString()); + if(!dataNode["ChangeOrderId"].isNull()) + data_.changeOrderId = dataNode["ChangeOrderId"].asString(); + if(!dataNode["CoType"].isNull()) + data_.coType = dataNode["CoType"].asString(); + if(!dataNode["CoTypeCode"].isNull()) + data_.coTypeCode = dataNode["CoTypeCode"].asString(); + if(!dataNode["CreateTime"].isNull()) + data_.createTime = dataNode["CreateTime"].asString(); + if(!dataNode["CurrentPipelineId"].isNull()) + data_.currentPipelineId = dataNode["CurrentPipelineId"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = std::stoi(dataNode["Status"].asString()); + if(!dataNode["SupportAbortFreeze"].isNull()) + data_.supportAbortFreeze = dataNode["SupportAbortFreeze"].asString() == "true"; + if(!dataNode["SupportRollback"].isNull()) + data_.supportRollback = dataNode["SupportRollback"].asString() == "true"; + if(!dataNode["ErrorMessage"].isNull()) + data_.errorMessage = dataNode["ErrorMessage"].asString(); + auto allPipelinesNode = dataNode["Pipelines"]["Pipeline"]; + for (auto dataNodePipelinesPipeline : allPipelinesNode) + { + Data::Pipeline pipelineObject; + if(!dataNodePipelinesPipeline["BatchType"].isNull()) + pipelineObject.batchType = std::stoi(dataNodePipelinesPipeline["BatchType"].asString()); + if(!dataNodePipelinesPipeline["ParallelCount"].isNull()) + pipelineObject.parallelCount = std::stoi(dataNodePipelinesPipeline["ParallelCount"].asString()); + if(!dataNodePipelinesPipeline["PipelineId"].isNull()) + pipelineObject.pipelineId = dataNodePipelinesPipeline["PipelineId"].asString(); + if(!dataNodePipelinesPipeline["PipelineName"].isNull()) + pipelineObject.pipelineName = dataNodePipelinesPipeline["PipelineName"].asString(); + if(!dataNodePipelinesPipeline["StartTime"].isNull()) + pipelineObject.startTime = std::stol(dataNodePipelinesPipeline["StartTime"].asString()); + if(!dataNodePipelinesPipeline["Status"].isNull()) + pipelineObject.status = std::stoi(dataNodePipelinesPipeline["Status"].asString()); + if(!dataNodePipelinesPipeline["UpdateTime"].isNull()) + pipelineObject.updateTime = std::stol(dataNodePipelinesPipeline["UpdateTime"].asString()); + data_.pipelines.push_back(pipelineObject); + } + auto allCoTargets = dataNode["CoTargets"]["CoTarget"]; + for (auto value : allCoTargets) + data_.coTargets.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string DescribeChangeOrderResult::getMessage()const +{ + return message_; +} + +std::string DescribeChangeOrderResult::getTraceId()const +{ + return traceId_; +} + +DescribeChangeOrderResult::Data DescribeChangeOrderResult::getData()const +{ + return data_; +} + +std::string DescribeChangeOrderResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DescribeChangeOrderResult::getCode()const +{ + return code_; +} + +bool DescribeChangeOrderResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DescribeComponentsRequest.cc b/sae/src/model/DescribeComponentsRequest.cc new file mode 100644 index 000000000..8c6bc54cf --- /dev/null +++ b/sae/src/model/DescribeComponentsRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DescribeComponentsRequest; + +DescribeComponentsRequest::DescribeComponentsRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/resource/components"); + setMethod(HttpRequest::Method::Get); +} + +DescribeComponentsRequest::~DescribeComponentsRequest() +{} + +std::string DescribeComponentsRequest::getAppId()const +{ + return appId_; +} + +void DescribeComponentsRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string DescribeComponentsRequest::getType()const +{ + return type_; +} + +void DescribeComponentsRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + diff --git a/sae/src/model/DescribeComponentsResult.cc b/sae/src/model/DescribeComponentsResult.cc new file mode 100644 index 000000000..9006a650c --- /dev/null +++ b/sae/src/model/DescribeComponentsResult.cc @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +DescribeComponentsResult::DescribeComponentsResult() : + ServiceResult() +{} + +DescribeComponentsResult::DescribeComponentsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeComponentsResult::~DescribeComponentsResult() +{} + +void DescribeComponentsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["ComponentKey"].isNull()) + dataObject.componentKey = valueDataDataItem["ComponentKey"].asString(); + if(!valueDataDataItem["ComponentDescription"].isNull()) + dataObject.componentDescription = valueDataDataItem["ComponentDescription"].asString(); + if(!valueDataDataItem["Expired"].isNull()) + dataObject.expired = valueDataDataItem["Expired"].asString() == "true"; + if(!valueDataDataItem["Type"].isNull()) + dataObject.type = valueDataDataItem["Type"].asString(); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string DescribeComponentsResult::getMessage()const +{ + return message_; +} + +std::string DescribeComponentsResult::getTraceId()const +{ + return traceId_; +} + +std::vector DescribeComponentsResult::getData()const +{ + return data_; +} + +std::string DescribeComponentsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DescribeComponentsResult::getCode()const +{ + return code_; +} + +bool DescribeComponentsResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DescribeConfigMapRequest.cc b/sae/src/model/DescribeConfigMapRequest.cc new file mode 100644 index 000000000..c04ac75e7 --- /dev/null +++ b/sae/src/model/DescribeConfigMapRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DescribeConfigMapRequest; + +DescribeConfigMapRequest::DescribeConfigMapRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/configmap/configMap"); + setMethod(HttpRequest::Method::Get); +} + +DescribeConfigMapRequest::~DescribeConfigMapRequest() +{} + +long DescribeConfigMapRequest::getConfigMapId()const +{ + return configMapId_; +} + +void DescribeConfigMapRequest::setConfigMapId(long configMapId) +{ + configMapId_ = configMapId; + setParameter("ConfigMapId", std::to_string(configMapId)); +} + diff --git a/sae/src/model/DescribeConfigMapResult.cc b/sae/src/model/DescribeConfigMapResult.cc new file mode 100644 index 000000000..16ee01aa3 --- /dev/null +++ b/sae/src/model/DescribeConfigMapResult.cc @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +DescribeConfigMapResult::DescribeConfigMapResult() : + ServiceResult() +{} + +DescribeConfigMapResult::DescribeConfigMapResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeConfigMapResult::~DescribeConfigMapResult() +{} + +void DescribeConfigMapResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ConfigMapId"].isNull()) + data_.configMapId = std::stol(dataNode["ConfigMapId"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["NamespaceId"].isNull()) + data_.namespaceId = dataNode["NamespaceId"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["Data"].isNull()) + data_.data = dataNode["Data"].asString(); + if(!dataNode["CreateTime"].isNull()) + data_.createTime = std::stol(dataNode["CreateTime"].asString()); + if(!dataNode["UpdateTime"].isNull()) + data_.updateTime = std::stol(dataNode["UpdateTime"].asString()); + auto allRelateAppsNode = dataNode["RelateApps"]["RelateApp"]; + for (auto dataNodeRelateAppsRelateApp : allRelateAppsNode) + { + Data::RelateApp relateAppObject; + if(!dataNodeRelateAppsRelateApp["AppId"].isNull()) + relateAppObject.appId = dataNodeRelateAppsRelateApp["AppId"].asString(); + if(!dataNodeRelateAppsRelateApp["AppName"].isNull()) + relateAppObject.appName = dataNodeRelateAppsRelateApp["AppName"].asString(); + data_.relateApps.push_back(relateAppObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DescribeConfigMapResult::getMessage()const +{ + return message_; +} + +std::string DescribeConfigMapResult::getTraceId()const +{ + return traceId_; +} + +DescribeConfigMapResult::Data DescribeConfigMapResult::getData()const +{ + return data_; +} + +std::string DescribeConfigMapResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DescribeConfigMapResult::getCode()const +{ + return code_; +} + +bool DescribeConfigMapResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DescribeEdasContainersRequest.cc b/sae/src/model/DescribeEdasContainersRequest.cc new file mode 100644 index 000000000..23488b708 --- /dev/null +++ b/sae/src/model/DescribeEdasContainersRequest.cc @@ -0,0 +1,30 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DescribeEdasContainersRequest; + +DescribeEdasContainersRequest::DescribeEdasContainersRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/resource/edasContainers"); + setMethod(HttpRequest::Method::Get); +} + +DescribeEdasContainersRequest::~DescribeEdasContainersRequest() +{} + diff --git a/sae/src/model/DescribeEdasContainersResult.cc b/sae/src/model/DescribeEdasContainersResult.cc new file mode 100644 index 000000000..09a9f1a34 --- /dev/null +++ b/sae/src/model/DescribeEdasContainersResult.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 +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +DescribeEdasContainersResult::DescribeEdasContainersResult() : + ServiceResult() +{} + +DescribeEdasContainersResult::DescribeEdasContainersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEdasContainersResult::~DescribeEdasContainersResult() +{} + +void DescribeEdasContainersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["Disabled"].isNull()) + dataObject.disabled = valueDataDataItem["Disabled"].asString() == "true"; + if(!valueDataDataItem["EdasContainerVersion"].isNull()) + dataObject.edasContainerVersion = valueDataDataItem["EdasContainerVersion"].asString(); + data_.push_back(dataObject); + } + 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"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string DescribeEdasContainersResult::getMessage()const +{ + return message_; +} + +std::string DescribeEdasContainersResult::getTraceId()const +{ + return traceId_; +} + +std::vector DescribeEdasContainersResult::getData()const +{ + return data_; +} + +std::string DescribeEdasContainersResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DescribeEdasContainersResult::getCode()const +{ + return code_; +} + +bool DescribeEdasContainersResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DescribeIngressRequest.cc b/sae/src/model/DescribeIngressRequest.cc new file mode 100644 index 000000000..12d5caa93 --- /dev/null +++ b/sae/src/model/DescribeIngressRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DescribeIngressRequest; + +DescribeIngressRequest::DescribeIngressRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/ingress/Ingress"); + setMethod(HttpRequest::Method::Get); +} + +DescribeIngressRequest::~DescribeIngressRequest() +{} + +long DescribeIngressRequest::getIngressId()const +{ + return ingressId_; +} + +void DescribeIngressRequest::setIngressId(long ingressId) +{ + ingressId_ = ingressId; + setParameter("IngressId", std::to_string(ingressId)); +} + diff --git a/sae/src/model/DescribeIngressResult.cc b/sae/src/model/DescribeIngressResult.cc new file mode 100644 index 000000000..0684b76c2 --- /dev/null +++ b/sae/src/model/DescribeIngressResult.cc @@ -0,0 +1,124 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +DescribeIngressResult::DescribeIngressResult() : + ServiceResult() +{} + +DescribeIngressResult::DescribeIngressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeIngressResult::~DescribeIngressResult() +{} + +void DescribeIngressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["NamespaceId"].isNull()) + data_.namespaceId = dataNode["NamespaceId"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["SlbId"].isNull()) + data_.slbId = dataNode["SlbId"].asString(); + if(!dataNode["ListenerPort"].isNull()) + data_.listenerPort = std::stoi(dataNode["ListenerPort"].asString()); + if(!dataNode["CertId"].isNull()) + data_.certId = dataNode["CertId"].asString(); + if(!dataNode["SlbType"].isNull()) + data_.slbType = dataNode["SlbType"].asString(); + auto allRulesNode = dataNode["Rules"]["Rule"]; + for (auto dataNodeRulesRule : allRulesNode) + { + Data::Rule ruleObject; + if(!dataNodeRulesRule["AppId"].isNull()) + ruleObject.appId = dataNodeRulesRule["AppId"].asString(); + if(!dataNodeRulesRule["ContainerPort"].isNull()) + ruleObject.containerPort = std::stoi(dataNodeRulesRule["ContainerPort"].asString()); + if(!dataNodeRulesRule["Domain"].isNull()) + ruleObject.domain = dataNodeRulesRule["Domain"].asString(); + if(!dataNodeRulesRule["Path"].isNull()) + ruleObject.path = dataNodeRulesRule["Path"].asString(); + if(!dataNodeRulesRule["AppName"].isNull()) + ruleObject.appName = dataNodeRulesRule["AppName"].asString(); + data_.rules.push_back(ruleObject); + } + auto defaultRuleNode = dataNode["DefaultRule"]; + if(!defaultRuleNode["AppId"].isNull()) + data_.defaultRule.appId = defaultRuleNode["AppId"].asString(); + if(!defaultRuleNode["ContainerPort"].isNull()) + data_.defaultRule.containerPort = std::stoi(defaultRuleNode["ContainerPort"].asString()); + if(!defaultRuleNode["AppName"].isNull()) + data_.defaultRule.appName = defaultRuleNode["AppName"].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"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string DescribeIngressResult::getMessage()const +{ + return message_; +} + +std::string DescribeIngressResult::getTraceId()const +{ + return traceId_; +} + +DescribeIngressResult::Data DescribeIngressResult::getData()const +{ + return data_; +} + +std::string DescribeIngressResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DescribeIngressResult::getCode()const +{ + return code_; +} + +bool DescribeIngressResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DescribeInstanceLogRequest.cc b/sae/src/model/DescribeInstanceLogRequest.cc new file mode 100644 index 000000000..1a9b7cac9 --- /dev/null +++ b/sae/src/model/DescribeInstanceLogRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DescribeInstanceLogRequest; + +DescribeInstanceLogRequest::DescribeInstanceLogRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/instance/describeInstanceLog"); + setMethod(HttpRequest::Method::Get); +} + +DescribeInstanceLogRequest::~DescribeInstanceLogRequest() +{} + +std::string DescribeInstanceLogRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeInstanceLogRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/sae/src/model/DescribeInstanceLogResult.cc b/sae/src/model/DescribeInstanceLogResult.cc new file mode 100644 index 000000000..d922b4e15 --- /dev/null +++ b/sae/src/model/DescribeInstanceLogResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +DescribeInstanceLogResult::DescribeInstanceLogResult() : + ServiceResult() +{} + +DescribeInstanceLogResult::DescribeInstanceLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceLogResult::~DescribeInstanceLogResult() +{} + +void DescribeInstanceLogResult::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"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DescribeInstanceLogResult::getMessage()const +{ + return message_; +} + +std::string DescribeInstanceLogResult::getTraceId()const +{ + return traceId_; +} + +std::string DescribeInstanceLogResult::getData()const +{ + return data_; +} + +std::string DescribeInstanceLogResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DescribeInstanceLogResult::getCode()const +{ + return code_; +} + +bool DescribeInstanceLogResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DescribeInstanceSpecificationsRequest.cc b/sae/src/model/DescribeInstanceSpecificationsRequest.cc new file mode 100644 index 000000000..ddefc8ddc --- /dev/null +++ b/sae/src/model/DescribeInstanceSpecificationsRequest.cc @@ -0,0 +1,30 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DescribeInstanceSpecificationsRequest; + +DescribeInstanceSpecificationsRequest::DescribeInstanceSpecificationsRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/paas/quota/instanceSpecifications"); + setMethod(HttpRequest::Method::Get); +} + +DescribeInstanceSpecificationsRequest::~DescribeInstanceSpecificationsRequest() +{} + diff --git a/sae/src/model/DescribeInstanceSpecificationsResult.cc b/sae/src/model/DescribeInstanceSpecificationsResult.cc new file mode 100644 index 000000000..864422da7 --- /dev/null +++ b/sae/src/model/DescribeInstanceSpecificationsResult.cc @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +DescribeInstanceSpecificationsResult::DescribeInstanceSpecificationsResult() : + ServiceResult() +{} + +DescribeInstanceSpecificationsResult::DescribeInstanceSpecificationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceSpecificationsResult::~DescribeInstanceSpecificationsResult() +{} + +void DescribeInstanceSpecificationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["Cpu"].isNull()) + dataObject.cpu = std::stoi(valueDataDataItem["Cpu"].asString()); + if(!valueDataDataItem["Enable"].isNull()) + dataObject.enable = valueDataDataItem["Enable"].asString() == "true"; + if(!valueDataDataItem["Id"].isNull()) + dataObject.id = std::stoi(valueDataDataItem["Id"].asString()); + if(!valueDataDataItem["Memory"].isNull()) + dataObject.memory = std::stoi(valueDataDataItem["Memory"].asString()); + if(!valueDataDataItem["SpecInfo"].isNull()) + dataObject.specInfo = valueDataDataItem["SpecInfo"].asString(); + if(!valueDataDataItem["Version"].isNull()) + dataObject.version = std::stoi(valueDataDataItem["Version"].asString()); + data_.push_back(dataObject); + } + 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"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string DescribeInstanceSpecificationsResult::getMessage()const +{ + return message_; +} + +std::string DescribeInstanceSpecificationsResult::getTraceId()const +{ + return traceId_; +} + +std::vector DescribeInstanceSpecificationsResult::getData()const +{ + return data_; +} + +std::string DescribeInstanceSpecificationsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DescribeInstanceSpecificationsResult::getCode()const +{ + return code_; +} + +bool DescribeInstanceSpecificationsResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DescribeNamespaceListRequest.cc b/sae/src/model/DescribeNamespaceListRequest.cc new file mode 100644 index 000000000..3cd25d580 --- /dev/null +++ b/sae/src/model/DescribeNamespaceListRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DescribeNamespaceListRequest; + +DescribeNamespaceListRequest::DescribeNamespaceListRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/namespace/describeNamespaceList"); + setMethod(HttpRequest::Method::Get); +} + +DescribeNamespaceListRequest::~DescribeNamespaceListRequest() +{} + +bool DescribeNamespaceListRequest::getHybridCloudExclude()const +{ + return hybridCloudExclude_; +} + +void DescribeNamespaceListRequest::setHybridCloudExclude(bool hybridCloudExclude) +{ + hybridCloudExclude_ = hybridCloudExclude; + setParameter("HybridCloudExclude", hybridCloudExclude ? "true" : "false"); +} + +bool DescribeNamespaceListRequest::getContainCustom()const +{ + return containCustom_; +} + +void DescribeNamespaceListRequest::setContainCustom(bool containCustom) +{ + containCustom_ = containCustom; + setParameter("ContainCustom", containCustom ? "true" : "false"); +} + diff --git a/sae/src/model/DescribeNamespaceListResult.cc b/sae/src/model/DescribeNamespaceListResult.cc new file mode 100644 index 000000000..949826e2a --- /dev/null +++ b/sae/src/model/DescribeNamespaceListResult.cc @@ -0,0 +1,110 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +DescribeNamespaceListResult::DescribeNamespaceListResult() : + ServiceResult() +{} + +DescribeNamespaceListResult::DescribeNamespaceListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNamespaceListResult::~DescribeNamespaceListResult() +{} + +void DescribeNamespaceListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["RegionList"]; + for (auto valueDataRegionList : allDataNode) + { + RegionList dataObject; + if(!valueDataRegionList["NamespaceName"].isNull()) + dataObject.namespaceName = valueDataRegionList["NamespaceName"].asString(); + if(!valueDataRegionList["NamespaceId"].isNull()) + dataObject.namespaceId = valueDataRegionList["NamespaceId"].asString(); + if(!valueDataRegionList["AgentInstall"].isNull()) + dataObject.agentInstall = valueDataRegionList["AgentInstall"].asString(); + if(!valueDataRegionList["Current"].isNull()) + dataObject.current = valueDataRegionList["Current"].asString() == "true"; + if(!valueDataRegionList["Custom"].isNull()) + dataObject.custom = valueDataRegionList["Custom"].asString() == "true"; + if(!valueDataRegionList["RegionId"].isNull()) + dataObject.regionId = valueDataRegionList["RegionId"].asString(); + if(!valueDataRegionList["HybridCloudEnable"].isNull()) + dataObject.hybridCloudEnable = valueDataRegionList["HybridCloudEnable"].asString() == "true"; + if(!valueDataRegionList["VpcId"].isNull()) + dataObject.vpcId = valueDataRegionList["VpcId"].asString(); + if(!valueDataRegionList["VSwitchId"].isNull()) + dataObject.vSwitchId = valueDataRegionList["VSwitchId"].asString(); + if(!valueDataRegionList["SecurityGroupId"].isNull()) + dataObject.securityGroupId = valueDataRegionList["SecurityGroupId"].asString(); + data_.push_back(dataObject); + } + 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"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string DescribeNamespaceListResult::getMessage()const +{ + return message_; +} + +std::string DescribeNamespaceListResult::getTraceId()const +{ + return traceId_; +} + +std::vector DescribeNamespaceListResult::getData()const +{ + return data_; +} + +std::string DescribeNamespaceListResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DescribeNamespaceListResult::getCode()const +{ + return code_; +} + +bool DescribeNamespaceListResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DescribeNamespaceRequest.cc b/sae/src/model/DescribeNamespaceRequest.cc new file mode 100644 index 000000000..79754c207 --- /dev/null +++ b/sae/src/model/DescribeNamespaceRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DescribeNamespaceRequest; + +DescribeNamespaceRequest::DescribeNamespaceRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/paas/namespace"); + setMethod(HttpRequest::Method::Get); +} + +DescribeNamespaceRequest::~DescribeNamespaceRequest() +{} + +std::string DescribeNamespaceRequest::getNamespaceId()const +{ + return namespaceId_; +} + +void DescribeNamespaceRequest::setNamespaceId(const std::string& namespaceId) +{ + namespaceId_ = namespaceId; + setParameter("NamespaceId", namespaceId); +} + diff --git a/sae/src/model/DescribeNamespaceResourcesRequest.cc b/sae/src/model/DescribeNamespaceResourcesRequest.cc new file mode 100644 index 000000000..89494726d --- /dev/null +++ b/sae/src/model/DescribeNamespaceResourcesRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DescribeNamespaceResourcesRequest; + +DescribeNamespaceResourcesRequest::DescribeNamespaceResourcesRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/namespace/describeNamespaceResources"); + setMethod(HttpRequest::Method::Get); +} + +DescribeNamespaceResourcesRequest::~DescribeNamespaceResourcesRequest() +{} + +std::string DescribeNamespaceResourcesRequest::getNamespaceId()const +{ + return namespaceId_; +} + +void DescribeNamespaceResourcesRequest::setNamespaceId(const std::string& namespaceId) +{ + namespaceId_ = namespaceId; + setParameter("NamespaceId", namespaceId); +} + diff --git a/sae/src/model/DescribeNamespaceResourcesResult.cc b/sae/src/model/DescribeNamespaceResourcesResult.cc new file mode 100644 index 000000000..cb6915eca --- /dev/null +++ b/sae/src/model/DescribeNamespaceResourcesResult.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +DescribeNamespaceResourcesResult::DescribeNamespaceResourcesResult() : + ServiceResult() +{} + +DescribeNamespaceResourcesResult::DescribeNamespaceResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNamespaceResourcesResult::~DescribeNamespaceResourcesResult() +{} + +void DescribeNamespaceResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["NamespaceId"].isNull()) + data_.namespaceId = dataNode["NamespaceId"].asString(); + if(!dataNode["NamespaceName"].isNull()) + data_.namespaceName = dataNode["NamespaceName"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["UserId"].isNull()) + data_.userId = dataNode["UserId"].asString(); + if(!dataNode["BelongRegion"].isNull()) + data_.belongRegion = dataNode["BelongRegion"].asString(); + if(!dataNode["TenantId"].isNull()) + data_.tenantId = dataNode["TenantId"].asString(); + if(!dataNode["VpcId"].isNull()) + data_.vpcId = dataNode["VpcId"].asString(); + if(!dataNode["VSwitchId"].isNull()) + data_.vSwitchId = dataNode["VSwitchId"].asString(); + if(!dataNode["SecurityGroupId"].isNull()) + data_.securityGroupId = dataNode["SecurityGroupId"].asString(); + if(!dataNode["AppCount"].isNull()) + data_.appCount = std::stol(dataNode["AppCount"].asString()); + if(!dataNode["LastChangeOrderId"].isNull()) + data_.lastChangeOrderId = dataNode["LastChangeOrderId"].asString(); + if(!dataNode["LastChangeOrderStatus"].isNull()) + data_.lastChangeOrderStatus = dataNode["LastChangeOrderStatus"].asString(); + if(!dataNode["LastChangeOrderRunning"].isNull()) + data_.lastChangeOrderRunning = dataNode["LastChangeOrderRunning"].asString() == "true"; + if(!dataNode["VpcName"].isNull()) + data_.vpcName = dataNode["VpcName"].asString(); + if(!dataNode["VSwitchName"].isNull()) + data_.vSwitchName = dataNode["VSwitchName"].asString(); + if(!dataNode["NotificationExpired"].isNull()) + data_.notificationExpired = dataNode["NotificationExpired"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DescribeNamespaceResourcesResult::getMessage()const +{ + return message_; +} + +std::string DescribeNamespaceResourcesResult::getTraceId()const +{ + return traceId_; +} + +DescribeNamespaceResourcesResult::Data DescribeNamespaceResourcesResult::getData()const +{ + return data_; +} + +std::string DescribeNamespaceResourcesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DescribeNamespaceResourcesResult::getCode()const +{ + return code_; +} + +bool DescribeNamespaceResourcesResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DescribeNamespaceResult.cc b/sae/src/model/DescribeNamespaceResult.cc new file mode 100644 index 000000000..eb89310e4 --- /dev/null +++ b/sae/src/model/DescribeNamespaceResult.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::Sae; +using namespace AlibabaCloud::Sae::Model; + +DescribeNamespaceResult::DescribeNamespaceResult() : + ServiceResult() +{} + +DescribeNamespaceResult::DescribeNamespaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNamespaceResult::~DescribeNamespaceResult() +{} + +void DescribeNamespaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["RegionId"].isNull()) + data_.regionId = dataNode["RegionId"].asString(); + if(!dataNode["NamespaceId"].isNull()) + data_.namespaceId = dataNode["NamespaceId"].asString(); + if(!dataNode["NamespaceName"].isNull()) + data_.namespaceName = dataNode["NamespaceName"].asString(); + if(!dataNode["NamespaceDescription"].isNull()) + data_.namespaceDescription = dataNode["NamespaceDescription"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string DescribeNamespaceResult::getMessage()const +{ + return message_; +} + +std::string DescribeNamespaceResult::getTraceId()const +{ + return traceId_; +} + +DescribeNamespaceResult::Data DescribeNamespaceResult::getData()const +{ + return data_; +} + +std::string DescribeNamespaceResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DescribeNamespaceResult::getCode()const +{ + return code_; +} + +bool DescribeNamespaceResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DescribeNamespacesRequest.cc b/sae/src/model/DescribeNamespacesRequest.cc new file mode 100644 index 000000000..8b57e0137 --- /dev/null +++ b/sae/src/model/DescribeNamespacesRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DescribeNamespacesRequest; + +DescribeNamespacesRequest::DescribeNamespacesRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/paas/namespaces"); + setMethod(HttpRequest::Method::Get); +} + +DescribeNamespacesRequest::~DescribeNamespacesRequest() +{} + +int DescribeNamespacesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeNamespacesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeNamespacesRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeNamespacesRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + diff --git a/sae/src/model/DescribeNamespacesResult.cc b/sae/src/model/DescribeNamespacesResult.cc new file mode 100644 index 000000000..16b8ec1aa --- /dev/null +++ b/sae/src/model/DescribeNamespacesResult.cc @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +DescribeNamespacesResult::DescribeNamespacesResult() : + ServiceResult() +{} + +DescribeNamespacesResult::DescribeNamespacesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNamespacesResult::~DescribeNamespacesResult() +{} + +void DescribeNamespacesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stoi(dataNode["CurrentPage"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalSize"].isNull()) + data_.totalSize = std::stoi(dataNode["TotalSize"].asString()); + auto allNamespacesNode = dataNode["Namespaces"]["Namespace"]; + for (auto dataNodeNamespacesNamespace : allNamespacesNode) + { + Data::_Namespace _namespaceObject; + if(!dataNodeNamespacesNamespace["AccessKey"].isNull()) + _namespaceObject.accessKey = dataNodeNamespacesNamespace["AccessKey"].asString(); + if(!dataNodeNamespacesNamespace["AddressServerHost"].isNull()) + _namespaceObject.addressServerHost = dataNodeNamespacesNamespace["AddressServerHost"].asString(); + if(!dataNodeNamespacesNamespace["SecretKey"].isNull()) + _namespaceObject.secretKey = dataNodeNamespacesNamespace["SecretKey"].asString(); + if(!dataNodeNamespacesNamespace["TenantId"].isNull()) + _namespaceObject.tenantId = dataNodeNamespacesNamespace["TenantId"].asString(); + if(!dataNodeNamespacesNamespace["RegionId"].isNull()) + _namespaceObject.regionId = dataNodeNamespacesNamespace["RegionId"].asString(); + if(!dataNodeNamespacesNamespace["NamespaceId"].isNull()) + _namespaceObject.namespaceId = dataNodeNamespacesNamespace["NamespaceId"].asString(); + if(!dataNodeNamespacesNamespace["NamespaceName"].isNull()) + _namespaceObject.namespaceName = dataNodeNamespacesNamespace["NamespaceName"].asString(); + if(!dataNodeNamespacesNamespace["NamespaceDescription"].isNull()) + _namespaceObject.namespaceDescription = dataNodeNamespacesNamespace["NamespaceDescription"].asString(); + data_.namespaces.push_back(_namespaceObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string DescribeNamespacesResult::getMessage()const +{ + return message_; +} + +std::string DescribeNamespacesResult::getTraceId()const +{ + return traceId_; +} + +DescribeNamespacesResult::Data DescribeNamespacesResult::getData()const +{ + return data_; +} + +std::string DescribeNamespacesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DescribeNamespacesResult::getCode()const +{ + return code_; +} + +bool DescribeNamespacesResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/DescribeRegionsRequest.cc b/sae/src/model/DescribeRegionsRequest.cc new file mode 100644 index 000000000..95e110dad --- /dev/null +++ b/sae/src/model/DescribeRegionsRequest.cc @@ -0,0 +1,30 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/paas/regionConfig"); + setMethod(HttpRequest::Method::Get); +} + +DescribeRegionsRequest::~DescribeRegionsRequest() +{} + diff --git a/sae/src/model/DescribeRegionsResult.cc b/sae/src/model/DescribeRegionsResult.cc new file mode 100644 index 000000000..8a273f160 --- /dev/null +++ b/sae/src/model/DescribeRegionsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +DescribeRegionsResult::DescribeRegionsResult() : + ServiceResult() +{} + +DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionsResult::~DescribeRegionsResult() +{} + +void DescribeRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRegionsNode = value["Regions"]["Region"]; + for (auto valueRegionsRegion : allRegionsNode) + { + Region regionsObject; + if(!valueRegionsRegion["RegionId"].isNull()) + regionsObject.regionId = valueRegionsRegion["RegionId"].asString(); + if(!valueRegionsRegion["RegionEndpoint"].isNull()) + regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString(); + if(!valueRegionsRegion["LocalName"].isNull()) + regionsObject.localName = valueRegionsRegion["LocalName"].asString(); + regions_.push_back(regionsObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeRegionsResult::getMessage()const +{ + return message_; +} + +std::vector DescribeRegionsResult::getRegions()const +{ + return regions_; +} + +int DescribeRegionsResult::getCode()const +{ + return code_; +} + diff --git a/sae/src/model/ListAppEventsRequest.cc b/sae/src/model/ListAppEventsRequest.cc new file mode 100644 index 000000000..4bd9c14e4 --- /dev/null +++ b/sae/src/model/ListAppEventsRequest.cc @@ -0,0 +1,118 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::ListAppEventsRequest; + +ListAppEventsRequest::ListAppEventsRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/app/listAppEvents"); + setMethod(HttpRequest::Method::Get); +} + +ListAppEventsRequest::~ListAppEventsRequest() +{} + +std::string ListAppEventsRequest::getReason()const +{ + return reason_; +} + +void ListAppEventsRequest::setReason(const std::string& reason) +{ + reason_ = reason; + setParameter("Reason", reason); +} + +std::string ListAppEventsRequest::getObjectKind()const +{ + return objectKind_; +} + +void ListAppEventsRequest::setObjectKind(const std::string& objectKind) +{ + objectKind_ = objectKind; + setParameter("ObjectKind", objectKind); +} + +std::string ListAppEventsRequest::getAppId()const +{ + return appId_; +} + +void ListAppEventsRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +int ListAppEventsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListAppEventsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListAppEventsRequest::getObjectName()const +{ + return objectName_; +} + +void ListAppEventsRequest::setObjectName(const std::string& objectName) +{ + objectName_ = objectName; + setParameter("ObjectName", objectName); +} + +std::string ListAppEventsRequest::get_Namespace()const +{ + return _namespace_; +} + +void ListAppEventsRequest::set_Namespace(const std::string& _namespace) +{ + _namespace_ = _namespace; + setParameter("_Namespace", _namespace); +} + +int ListAppEventsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void ListAppEventsRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string ListAppEventsRequest::getEventType()const +{ + return eventType_; +} + +void ListAppEventsRequest::setEventType(const std::string& eventType) +{ + eventType_ = eventType; + setParameter("EventType", eventType); +} + diff --git a/sae/src/model/ListAppEventsResult.cc b/sae/src/model/ListAppEventsResult.cc new file mode 100644 index 000000000..c7409140c --- /dev/null +++ b/sae/src/model/ListAppEventsResult.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +ListAppEventsResult::ListAppEventsResult() : + ServiceResult() +{} + +ListAppEventsResult::ListAppEventsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAppEventsResult::~ListAppEventsResult() +{} + +void ListAppEventsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stoi(dataNode["CurrentPage"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalSize"].isNull()) + data_.totalSize = std::stoi(dataNode["TotalSize"].asString()); + auto allAppEventEntityNode = dataNode["AppEventEntity"]["AppEventEntityItem"]; + for (auto dataNodeAppEventEntityAppEventEntityItem : allAppEventEntityNode) + { + Data::AppEventEntityItem appEventEntityItemObject; + if(!dataNodeAppEventEntityAppEventEntityItem["ObjectKind"].isNull()) + appEventEntityItemObject.objectKind = dataNodeAppEventEntityAppEventEntityItem["ObjectKind"].asString(); + if(!dataNodeAppEventEntityAppEventEntityItem["ObjectName"].isNull()) + appEventEntityItemObject.objectName = dataNodeAppEventEntityAppEventEntityItem["ObjectName"].asString(); + if(!dataNodeAppEventEntityAppEventEntityItem["EventType"].isNull()) + appEventEntityItemObject.eventType = dataNodeAppEventEntityAppEventEntityItem["EventType"].asString(); + if(!dataNodeAppEventEntityAppEventEntityItem["Message"].isNull()) + appEventEntityItemObject.message = dataNodeAppEventEntityAppEventEntityItem["Message"].asString(); + if(!dataNodeAppEventEntityAppEventEntityItem["FirstTimestamp"].isNull()) + appEventEntityItemObject.firstTimestamp = dataNodeAppEventEntityAppEventEntityItem["FirstTimestamp"].asString(); + if(!dataNodeAppEventEntityAppEventEntityItem["LastTimestamp"].isNull()) + appEventEntityItemObject.lastTimestamp = dataNodeAppEventEntityAppEventEntityItem["LastTimestamp"].asString(); + if(!dataNodeAppEventEntityAppEventEntityItem["Reason"].isNull()) + appEventEntityItemObject.reason = dataNodeAppEventEntityAppEventEntityItem["Reason"].asString(); + data_.appEventEntity.push_back(appEventEntityItemObject); + } + 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"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ListAppEventsResult::getMessage()const +{ + return message_; +} + +ListAppEventsResult::Data ListAppEventsResult::getData()const +{ + return data_; +} + +std::string ListAppEventsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListAppEventsResult::getCode()const +{ + return code_; +} + +bool ListAppEventsResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/ListAppVersionsRequest.cc b/sae/src/model/ListAppVersionsRequest.cc new file mode 100644 index 000000000..db80d3be4 --- /dev/null +++ b/sae/src/model/ListAppVersionsRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::ListAppVersionsRequest; + +ListAppVersionsRequest::ListAppVersionsRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/app/listAppVersions"); + setMethod(HttpRequest::Method::Get); +} + +ListAppVersionsRequest::~ListAppVersionsRequest() +{} + +std::string ListAppVersionsRequest::getAppId()const +{ + return appId_; +} + +void ListAppVersionsRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + diff --git a/sae/src/model/ListAppVersionsResult.cc b/sae/src/model/ListAppVersionsResult.cc new file mode 100644 index 000000000..0d105532e --- /dev/null +++ b/sae/src/model/ListAppVersionsResult.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::Sae; +using namespace AlibabaCloud::Sae::Model; + +ListAppVersionsResult::ListAppVersionsResult() : + ServiceResult() +{} + +ListAppVersionsResult::ListAppVersionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAppVersionsResult::~ListAppVersionsResult() +{} + +void ListAppVersionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["PackageVersionEntity"]; + for (auto valueDataPackageVersionEntity : allDataNode) + { + PackageVersionEntity dataObject; + if(!valueDataPackageVersionEntity["Id"].isNull()) + dataObject.id = valueDataPackageVersionEntity["Id"].asString(); + if(!valueDataPackageVersionEntity["CreateTime"].isNull()) + dataObject.createTime = valueDataPackageVersionEntity["CreateTime"].asString(); + if(!valueDataPackageVersionEntity["WarUrl"].isNull()) + dataObject.warUrl = valueDataPackageVersionEntity["WarUrl"].asString(); + if(!valueDataPackageVersionEntity["Type"].isNull()) + dataObject.type = valueDataPackageVersionEntity["Type"].asString(); + if(!valueDataPackageVersionEntity["BuildPackageUrl"].isNull()) + dataObject.buildPackageUrl = valueDataPackageVersionEntity["BuildPackageUrl"].asString(); + data_.push_back(dataObject); + } + 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"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ListAppVersionsResult::getMessage()const +{ + return message_; +} + +std::vector ListAppVersionsResult::getData()const +{ + return data_; +} + +std::string ListAppVersionsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListAppVersionsResult::getCode()const +{ + return code_; +} + +bool ListAppVersionsResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/ListApplicationsRequest.cc b/sae/src/model/ListApplicationsRequest.cc new file mode 100644 index 000000000..8e398399b --- /dev/null +++ b/sae/src/model/ListApplicationsRequest.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 + +using AlibabaCloud::Sae::Model::ListApplicationsRequest; + +ListApplicationsRequest::ListApplicationsRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/app/listApplications"); + setMethod(HttpRequest::Method::Get); +} + +ListApplicationsRequest::~ListApplicationsRequest() +{} + +std::string ListApplicationsRequest::getAppName()const +{ + return appName_; +} + +void ListApplicationsRequest::setAppName(const std::string& appName) +{ + appName_ = appName; + setParameter("AppName", appName); +} + +std::string ListApplicationsRequest::getNamespaceId()const +{ + return namespaceId_; +} + +void ListApplicationsRequest::setNamespaceId(const std::string& namespaceId) +{ + namespaceId_ = namespaceId; + setParameter("NamespaceId", namespaceId); +} + +int ListApplicationsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListApplicationsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListApplicationsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void ListApplicationsRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string ListApplicationsRequest::getTags()const +{ + return tags_; +} + +void ListApplicationsRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + diff --git a/sae/src/model/ListApplicationsResult.cc b/sae/src/model/ListApplicationsResult.cc new file mode 100644 index 000000000..1d470d598 --- /dev/null +++ b/sae/src/model/ListApplicationsResult.cc @@ -0,0 +1,118 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +ListApplicationsResult::ListApplicationsResult() : + ServiceResult() +{} + +ListApplicationsResult::ListApplicationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListApplicationsResult::~ListApplicationsResult() +{} + +void ListApplicationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stoi(dataNode["CurrentPage"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalSize"].isNull()) + data_.totalSize = std::stoi(dataNode["TotalSize"].asString()); + auto allApplicationsNode = dataNode["Applications"]["Application"]; + for (auto dataNodeApplicationsApplication : allApplicationsNode) + { + Data::Application applicationObject; + if(!dataNodeApplicationsApplication["AppDeletingStatus"].isNull()) + applicationObject.appDeletingStatus = dataNodeApplicationsApplication["AppDeletingStatus"].asString() == "true"; + if(!dataNodeApplicationsApplication["AppId"].isNull()) + applicationObject.appId = dataNodeApplicationsApplication["AppId"].asString(); + if(!dataNodeApplicationsApplication["AppName"].isNull()) + applicationObject.appName = dataNodeApplicationsApplication["AppName"].asString(); + if(!dataNodeApplicationsApplication["RegionId"].isNull()) + applicationObject.regionId = dataNodeApplicationsApplication["RegionId"].asString(); + if(!dataNodeApplicationsApplication["RunningInstances"].isNull()) + applicationObject.runningInstances = std::stoi(dataNodeApplicationsApplication["RunningInstances"].asString()); + if(!dataNodeApplicationsApplication["Instances"].isNull()) + applicationObject.instances = std::stoi(dataNodeApplicationsApplication["Instances"].asString()); + if(!dataNodeApplicationsApplication["NamespaceId"].isNull()) + applicationObject.namespaceId = dataNodeApplicationsApplication["NamespaceId"].asString(); + if(!dataNodeApplicationsApplication["ScaleRuleType"].isNull()) + applicationObject.scaleRuleType = dataNodeApplicationsApplication["ScaleRuleType"].asString(); + if(!dataNodeApplicationsApplication["ScaleRuleEnabled"].isNull()) + applicationObject.scaleRuleEnabled = dataNodeApplicationsApplication["ScaleRuleEnabled"].asString() == "true"; + auto allTagsNode = allApplicationsNode["Tags"]["TagsItem"]; + for (auto allApplicationsNodeTagsTagsItem : allTagsNode) + { + Data::Application::TagsItem tagsObject; + if(!allApplicationsNodeTagsTagsItem["Key"].isNull()) + tagsObject.key = allApplicationsNodeTagsTagsItem["Key"].asString(); + if(!allApplicationsNodeTagsTagsItem["Value"].isNull()) + tagsObject.value = allApplicationsNodeTagsTagsItem["Value"].asString(); + applicationObject.tags.push_back(tagsObject); + } + data_.applications.push_back(applicationObject); + } + 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"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string ListApplicationsResult::getMessage()const +{ + return message_; +} + +ListApplicationsResult::Data ListApplicationsResult::getData()const +{ + return data_; +} + +std::string ListApplicationsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListApplicationsResult::getCode()const +{ + return code_; +} + +bool ListApplicationsResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/ListChangeOrdersRequest.cc b/sae/src/model/ListChangeOrdersRequest.cc new file mode 100644 index 000000000..6b2132b33 --- /dev/null +++ b/sae/src/model/ListChangeOrdersRequest.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::ListChangeOrdersRequest; + +ListChangeOrdersRequest::ListChangeOrdersRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/changeorder/ListChangeOrders"); + setMethod(HttpRequest::Method::Get); +} + +ListChangeOrdersRequest::~ListChangeOrdersRequest() +{} + +std::string ListChangeOrdersRequest::getCoType()const +{ + return coType_; +} + +void ListChangeOrdersRequest::setCoType(const std::string& coType) +{ + coType_ = coType; + setParameter("CoType", coType); +} + +std::string ListChangeOrdersRequest::getAppId()const +{ + return appId_; +} + +void ListChangeOrdersRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +int ListChangeOrdersRequest::getPageSize()const +{ + return pageSize_; +} + +void ListChangeOrdersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListChangeOrdersRequest::getCurrentPage()const +{ + return currentPage_; +} + +void ListChangeOrdersRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string ListChangeOrdersRequest::getCoStatus()const +{ + return coStatus_; +} + +void ListChangeOrdersRequest::setCoStatus(const std::string& coStatus) +{ + coStatus_ = coStatus; + setParameter("CoStatus", coStatus); +} + +std::string ListChangeOrdersRequest::getKey()const +{ + return key_; +} + +void ListChangeOrdersRequest::setKey(const std::string& key) +{ + key_ = key; + setParameter("Key", key); +} + diff --git a/sae/src/model/ListChangeOrdersResult.cc b/sae/src/model/ListChangeOrdersResult.cc new file mode 100644 index 000000000..9ecfa6e2e --- /dev/null +++ b/sae/src/model/ListChangeOrdersResult.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +ListChangeOrdersResult::ListChangeOrdersResult() : + ServiceResult() +{} + +ListChangeOrdersResult::ListChangeOrdersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListChangeOrdersResult::~ListChangeOrdersResult() +{} + +void ListChangeOrdersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stoi(dataNode["CurrentPage"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalSize"].isNull()) + data_.totalSize = std::stoi(dataNode["TotalSize"].asString()); + auto allChangeOrderListNode = dataNode["ChangeOrderList"]["ChangeOrder"]; + for (auto dataNodeChangeOrderListChangeOrder : allChangeOrderListNode) + { + Data::ChangeOrder changeOrderObject; + if(!dataNodeChangeOrderListChangeOrder["AppId"].isNull()) + changeOrderObject.appId = dataNodeChangeOrderListChangeOrder["AppId"].asString(); + if(!dataNodeChangeOrderListChangeOrder["BatchCount"].isNull()) + changeOrderObject.batchCount = std::stoi(dataNodeChangeOrderListChangeOrder["BatchCount"].asString()); + if(!dataNodeChangeOrderListChangeOrder["BatchType"].isNull()) + changeOrderObject.batchType = dataNodeChangeOrderListChangeOrder["BatchType"].asString(); + if(!dataNodeChangeOrderListChangeOrder["ChangeOrderId"].isNull()) + changeOrderObject.changeOrderId = dataNodeChangeOrderListChangeOrder["ChangeOrderId"].asString(); + if(!dataNodeChangeOrderListChangeOrder["CoType"].isNull()) + changeOrderObject.coType = dataNodeChangeOrderListChangeOrder["CoType"].asString(); + if(!dataNodeChangeOrderListChangeOrder["CoTypeCode"].isNull()) + changeOrderObject.coTypeCode = dataNodeChangeOrderListChangeOrder["CoTypeCode"].asString(); + if(!dataNodeChangeOrderListChangeOrder["CreateTime"].isNull()) + changeOrderObject.createTime = dataNodeChangeOrderListChangeOrder["CreateTime"].asString(); + if(!dataNodeChangeOrderListChangeOrder["Description"].isNull()) + changeOrderObject.description = dataNodeChangeOrderListChangeOrder["Description"].asString(); + if(!dataNodeChangeOrderListChangeOrder["FinishTime"].isNull()) + changeOrderObject.finishTime = dataNodeChangeOrderListChangeOrder["FinishTime"].asString(); + if(!dataNodeChangeOrderListChangeOrder["GroupId"].isNull()) + changeOrderObject.groupId = dataNodeChangeOrderListChangeOrder["GroupId"].asString(); + if(!dataNodeChangeOrderListChangeOrder["Pipelines"].isNull()) + changeOrderObject.pipelines = dataNodeChangeOrderListChangeOrder["Pipelines"].asString(); + if(!dataNodeChangeOrderListChangeOrder["Source"].isNull()) + changeOrderObject.source = dataNodeChangeOrderListChangeOrder["Source"].asString(); + if(!dataNodeChangeOrderListChangeOrder["Status"].isNull()) + changeOrderObject.status = std::stoi(dataNodeChangeOrderListChangeOrder["Status"].asString()); + if(!dataNodeChangeOrderListChangeOrder["UserId"].isNull()) + changeOrderObject.userId = dataNodeChangeOrderListChangeOrder["UserId"].asString(); + if(!dataNodeChangeOrderListChangeOrder["CreateUserId"].isNull()) + changeOrderObject.createUserId = dataNodeChangeOrderListChangeOrder["CreateUserId"].asString(); + data_.changeOrderList.push_back(changeOrderObject); + } + 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"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string ListChangeOrdersResult::getMessage()const +{ + return message_; +} + +std::string ListChangeOrdersResult::getTraceId()const +{ + return traceId_; +} + +ListChangeOrdersResult::Data ListChangeOrdersResult::getData()const +{ + return data_; +} + +std::string ListChangeOrdersResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListChangeOrdersResult::getCode()const +{ + return code_; +} + +bool ListChangeOrdersResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/ListConsumedServicesRequest.cc b/sae/src/model/ListConsumedServicesRequest.cc new file mode 100644 index 000000000..764d3800a --- /dev/null +++ b/sae/src/model/ListConsumedServicesRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::ListConsumedServicesRequest; + +ListConsumedServicesRequest::ListConsumedServicesRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/service/listConsumedServices"); + setMethod(HttpRequest::Method::Get); +} + +ListConsumedServicesRequest::~ListConsumedServicesRequest() +{} + +std::string ListConsumedServicesRequest::getAppId()const +{ + return appId_; +} + +void ListConsumedServicesRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + diff --git a/sae/src/model/ListConsumedServicesResult.cc b/sae/src/model/ListConsumedServicesResult.cc new file mode 100644 index 000000000..42bb7e9cb --- /dev/null +++ b/sae/src/model/ListConsumedServicesResult.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +ListConsumedServicesResult::ListConsumedServicesResult() : + ServiceResult() +{} + +ListConsumedServicesResult::ListConsumedServicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListConsumedServicesResult::~ListConsumedServicesResult() +{} + +void ListConsumedServicesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["ListConsumedServices"]; + for (auto valueDataListConsumedServices : allDataNode) + { + ListConsumedServices dataObject; + if(!valueDataListConsumedServices["AppId"].isNull()) + dataObject.appId = valueDataListConsumedServices["AppId"].asString(); + if(!valueDataListConsumedServices["Group2Ip"].isNull()) + dataObject.group2Ip = valueDataListConsumedServices["Group2Ip"].asString(); + if(!valueDataListConsumedServices["Name"].isNull()) + dataObject.name = valueDataListConsumedServices["Name"].asString(); + if(!valueDataListConsumedServices["Type"].isNull()) + dataObject.type = valueDataListConsumedServices["Type"].asString(); + if(!valueDataListConsumedServices["Version"].isNull()) + dataObject.version = valueDataListConsumedServices["Version"].asString(); + auto allGroups = value["Groups"]["Group"]; + for (auto value : allGroups) + dataObject.groups.push_back(value.asString()); + auto allIps = value["Ips"]["Ip"]; + for (auto value : allIps) + dataObject.ips.push_back(value.asString()); + data_.push_back(dataObject); + } + 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"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string ListConsumedServicesResult::getMessage()const +{ + return message_; +} + +std::string ListConsumedServicesResult::getTraceId()const +{ + return traceId_; +} + +std::vector ListConsumedServicesResult::getData()const +{ + return data_; +} + +std::string ListConsumedServicesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListConsumedServicesResult::getCode()const +{ + return code_; +} + +bool ListConsumedServicesResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/ListIngressesRequest.cc b/sae/src/model/ListIngressesRequest.cc new file mode 100644 index 000000000..4088425a4 --- /dev/null +++ b/sae/src/model/ListIngressesRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::ListIngressesRequest; + +ListIngressesRequest::ListIngressesRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/ingress/IngressList"); + setMethod(HttpRequest::Method::Get); +} + +ListIngressesRequest::~ListIngressesRequest() +{} + +std::string ListIngressesRequest::getNamespaceId()const +{ + return namespaceId_; +} + +void ListIngressesRequest::setNamespaceId(const std::string& namespaceId) +{ + namespaceId_ = namespaceId; + setParameter("NamespaceId", namespaceId); +} + +std::string ListIngressesRequest::getAppId()const +{ + return appId_; +} + +void ListIngressesRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + diff --git a/sae/src/model/ListIngressesResult.cc b/sae/src/model/ListIngressesResult.cc new file mode 100644 index 000000000..9d031e173 --- /dev/null +++ b/sae/src/model/ListIngressesResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +ListIngressesResult::ListIngressesResult() : + ServiceResult() +{} + +ListIngressesResult::ListIngressesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListIngressesResult::~ListIngressesResult() +{} + +void ListIngressesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allIngressListNode = dataNode["IngressList"]["Ingress"]; + for (auto dataNodeIngressListIngress : allIngressListNode) + { + Data::Ingress ingressObject; + if(!dataNodeIngressListIngress["Id"].isNull()) + ingressObject.id = std::stol(dataNodeIngressListIngress["Id"].asString()); + if(!dataNodeIngressListIngress["Name"].isNull()) + ingressObject.name = dataNodeIngressListIngress["Name"].asString(); + if(!dataNodeIngressListIngress["NamespaceId"].isNull()) + ingressObject.namespaceId = dataNodeIngressListIngress["NamespaceId"].asString(); + if(!dataNodeIngressListIngress["SlbId"].isNull()) + ingressObject.slbId = dataNodeIngressListIngress["SlbId"].asString(); + if(!dataNodeIngressListIngress["ListenerPort"].isNull()) + ingressObject.listenerPort = dataNodeIngressListIngress["ListenerPort"].asString(); + if(!dataNodeIngressListIngress["CertId"].isNull()) + ingressObject.certId = dataNodeIngressListIngress["CertId"].asString(); + if(!dataNodeIngressListIngress["Description"].isNull()) + ingressObject.description = dataNodeIngressListIngress["Description"].asString(); + if(!dataNodeIngressListIngress["SlbType"].isNull()) + ingressObject.slbType = dataNodeIngressListIngress["SlbType"].asString(); + data_.ingressList.push_back(ingressObject); + } + 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"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string ListIngressesResult::getMessage()const +{ + return message_; +} + +std::string ListIngressesResult::getTraceId()const +{ + return traceId_; +} + +ListIngressesResult::Data ListIngressesResult::getData()const +{ + return data_; +} + +std::string ListIngressesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListIngressesResult::getCode()const +{ + return code_; +} + +bool ListIngressesResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/ListLogConfigsRequest.cc b/sae/src/model/ListLogConfigsRequest.cc new file mode 100644 index 000000000..b89e38d68 --- /dev/null +++ b/sae/src/model/ListLogConfigsRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::ListLogConfigsRequest; + +ListLogConfigsRequest::ListLogConfigsRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/log/listLogConfigs"); + setMethod(HttpRequest::Method::Get); +} + +ListLogConfigsRequest::~ListLogConfigsRequest() +{} + +std::string ListLogConfigsRequest::getAppId()const +{ + return appId_; +} + +void ListLogConfigsRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +int ListLogConfigsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListLogConfigsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListLogConfigsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void ListLogConfigsRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + diff --git a/sae/src/model/ListLogConfigsResult.cc b/sae/src/model/ListLogConfigsResult.cc new file mode 100644 index 000000000..c5d351d06 --- /dev/null +++ b/sae/src/model/ListLogConfigsResult.cc @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +ListLogConfigsResult::ListLogConfigsResult() : + ServiceResult() +{} + +ListLogConfigsResult::ListLogConfigsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListLogConfigsResult::~ListLogConfigsResult() +{} + +void ListLogConfigsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stoi(dataNode["CurrentPage"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalSize"].isNull()) + data_.totalSize = std::stoi(dataNode["TotalSize"].asString()); + auto allLogConfigsNode = dataNode["LogConfigs"]["LogConfig"]; + for (auto dataNodeLogConfigsLogConfig : allLogConfigsNode) + { + Data::LogConfig logConfigObject; + if(!dataNodeLogConfigsLogConfig["ConfigName"].isNull()) + logConfigObject.configName = dataNodeLogConfigsLogConfig["ConfigName"].asString(); + if(!dataNodeLogConfigsLogConfig["LogDir"].isNull()) + logConfigObject.logDir = dataNodeLogConfigsLogConfig["LogDir"].asString(); + if(!dataNodeLogConfigsLogConfig["SlsProject"].isNull()) + logConfigObject.slsProject = dataNodeLogConfigsLogConfig["SlsProject"].asString(); + if(!dataNodeLogConfigsLogConfig["SlsLogStore"].isNull()) + logConfigObject.slsLogStore = dataNodeLogConfigsLogConfig["SlsLogStore"].asString(); + if(!dataNodeLogConfigsLogConfig["StoreType"].isNull()) + logConfigObject.storeType = dataNodeLogConfigsLogConfig["StoreType"].asString(); + if(!dataNodeLogConfigsLogConfig["LogType"].isNull()) + logConfigObject.logType = dataNodeLogConfigsLogConfig["LogType"].asString(); + if(!dataNodeLogConfigsLogConfig["RegionId"].isNull()) + logConfigObject.regionId = dataNodeLogConfigsLogConfig["RegionId"].asString(); + if(!dataNodeLogConfigsLogConfig["CreateTime"].isNull()) + logConfigObject.createTime = dataNodeLogConfigsLogConfig["CreateTime"].asString(); + data_.logConfigs.push_back(logConfigObject); + } + 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"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string ListLogConfigsResult::getMessage()const +{ + return message_; +} + +std::string ListLogConfigsResult::getTraceId()const +{ + return traceId_; +} + +ListLogConfigsResult::Data ListLogConfigsResult::getData()const +{ + return data_; +} + +std::string ListLogConfigsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListLogConfigsResult::getCode()const +{ + return code_; +} + +bool ListLogConfigsResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/ListNamespaceChangeOrdersRequest.cc b/sae/src/model/ListNamespaceChangeOrdersRequest.cc new file mode 100644 index 000000000..e41c50c44 --- /dev/null +++ b/sae/src/model/ListNamespaceChangeOrdersRequest.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::ListNamespaceChangeOrdersRequest; + +ListNamespaceChangeOrdersRequest::ListNamespaceChangeOrdersRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/changeorder/listNamespaceChangeOrders"); + setMethod(HttpRequest::Method::Get); +} + +ListNamespaceChangeOrdersRequest::~ListNamespaceChangeOrdersRequest() +{} + +std::string ListNamespaceChangeOrdersRequest::getCoType()const +{ + return coType_; +} + +void ListNamespaceChangeOrdersRequest::setCoType(const std::string& coType) +{ + coType_ = coType; + setParameter("CoType", coType); +} + +std::string ListNamespaceChangeOrdersRequest::getNamespaceId()const +{ + return namespaceId_; +} + +void ListNamespaceChangeOrdersRequest::setNamespaceId(const std::string& namespaceId) +{ + namespaceId_ = namespaceId; + setParameter("NamespaceId", namespaceId); +} + +int ListNamespaceChangeOrdersRequest::getPageSize()const +{ + return pageSize_; +} + +void ListNamespaceChangeOrdersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListNamespaceChangeOrdersRequest::getCurrentPage()const +{ + return currentPage_; +} + +void ListNamespaceChangeOrdersRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string ListNamespaceChangeOrdersRequest::getCoStatus()const +{ + return coStatus_; +} + +void ListNamespaceChangeOrdersRequest::setCoStatus(const std::string& coStatus) +{ + coStatus_ = coStatus; + setParameter("CoStatus", coStatus); +} + +std::string ListNamespaceChangeOrdersRequest::getKey()const +{ + return key_; +} + +void ListNamespaceChangeOrdersRequest::setKey(const std::string& key) +{ + key_ = key; + setParameter("Key", key); +} + diff --git a/sae/src/model/ListNamespaceChangeOrdersResult.cc b/sae/src/model/ListNamespaceChangeOrdersResult.cc new file mode 100644 index 000000000..7252b4ae2 --- /dev/null +++ b/sae/src/model/ListNamespaceChangeOrdersResult.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +ListNamespaceChangeOrdersResult::ListNamespaceChangeOrdersResult() : + ServiceResult() +{} + +ListNamespaceChangeOrdersResult::ListNamespaceChangeOrdersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListNamespaceChangeOrdersResult::~ListNamespaceChangeOrdersResult() +{} + +void ListNamespaceChangeOrdersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stoi(dataNode["CurrentPage"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalSize"].isNull()) + data_.totalSize = std::stoi(dataNode["TotalSize"].asString()); + auto allChangeOrderListNode = dataNode["ChangeOrderList"]["ChangeOrder"]; + for (auto dataNodeChangeOrderListChangeOrder : allChangeOrderListNode) + { + Data::ChangeOrder changeOrderObject; + if(!dataNodeChangeOrderListChangeOrder["NamespaceId"].isNull()) + changeOrderObject.namespaceId = dataNodeChangeOrderListChangeOrder["NamespaceId"].asString(); + if(!dataNodeChangeOrderListChangeOrder["BatchCount"].isNull()) + changeOrderObject.batchCount = std::stoi(dataNodeChangeOrderListChangeOrder["BatchCount"].asString()); + if(!dataNodeChangeOrderListChangeOrder["BatchType"].isNull()) + changeOrderObject.batchType = dataNodeChangeOrderListChangeOrder["BatchType"].asString(); + if(!dataNodeChangeOrderListChangeOrder["ChangeOrderId"].isNull()) + changeOrderObject.changeOrderId = dataNodeChangeOrderListChangeOrder["ChangeOrderId"].asString(); + if(!dataNodeChangeOrderListChangeOrder["CoType"].isNull()) + changeOrderObject.coType = dataNodeChangeOrderListChangeOrder["CoType"].asString(); + if(!dataNodeChangeOrderListChangeOrder["CoTypeCode"].isNull()) + changeOrderObject.coTypeCode = dataNodeChangeOrderListChangeOrder["CoTypeCode"].asString(); + if(!dataNodeChangeOrderListChangeOrder["CreateTime"].isNull()) + changeOrderObject.createTime = dataNodeChangeOrderListChangeOrder["CreateTime"].asString(); + if(!dataNodeChangeOrderListChangeOrder["Description"].isNull()) + changeOrderObject.description = dataNodeChangeOrderListChangeOrder["Description"].asString(); + if(!dataNodeChangeOrderListChangeOrder["FinishTime"].isNull()) + changeOrderObject.finishTime = dataNodeChangeOrderListChangeOrder["FinishTime"].asString(); + if(!dataNodeChangeOrderListChangeOrder["GroupId"].isNull()) + changeOrderObject.groupId = dataNodeChangeOrderListChangeOrder["GroupId"].asString(); + if(!dataNodeChangeOrderListChangeOrder["Pipelines"].isNull()) + changeOrderObject.pipelines = dataNodeChangeOrderListChangeOrder["Pipelines"].asString(); + if(!dataNodeChangeOrderListChangeOrder["Source"].isNull()) + changeOrderObject.source = dataNodeChangeOrderListChangeOrder["Source"].asString(); + if(!dataNodeChangeOrderListChangeOrder["Status"].isNull()) + changeOrderObject.status = std::stoi(dataNodeChangeOrderListChangeOrder["Status"].asString()); + if(!dataNodeChangeOrderListChangeOrder["CreateUserId"].isNull()) + changeOrderObject.createUserId = dataNodeChangeOrderListChangeOrder["CreateUserId"].asString(); + if(!dataNodeChangeOrderListChangeOrder["UserId"].isNull()) + changeOrderObject.userId = dataNodeChangeOrderListChangeOrder["UserId"].asString(); + data_.changeOrderList.push_back(changeOrderObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListNamespaceChangeOrdersResult::getMessage()const +{ + return message_; +} + +std::string ListNamespaceChangeOrdersResult::getTraceId()const +{ + return traceId_; +} + +ListNamespaceChangeOrdersResult::Data ListNamespaceChangeOrdersResult::getData()const +{ + return data_; +} + +std::string ListNamespaceChangeOrdersResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListNamespaceChangeOrdersResult::getCode()const +{ + return code_; +} + +bool ListNamespaceChangeOrdersResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/ListNamespacedConfigMapsRequest.cc b/sae/src/model/ListNamespacedConfigMapsRequest.cc new file mode 100644 index 000000000..b27d10fbf --- /dev/null +++ b/sae/src/model/ListNamespacedConfigMapsRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::ListNamespacedConfigMapsRequest; + +ListNamespacedConfigMapsRequest::ListNamespacedConfigMapsRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/configmap/listNamespacedConfigMaps"); + setMethod(HttpRequest::Method::Get); +} + +ListNamespacedConfigMapsRequest::~ListNamespacedConfigMapsRequest() +{} + +std::string ListNamespacedConfigMapsRequest::getNamespaceId()const +{ + return namespaceId_; +} + +void ListNamespacedConfigMapsRequest::setNamespaceId(const std::string& namespaceId) +{ + namespaceId_ = namespaceId; + setParameter("NamespaceId", namespaceId); +} + diff --git a/sae/src/model/ListNamespacedConfigMapsResult.cc b/sae/src/model/ListNamespacedConfigMapsResult.cc new file mode 100644 index 000000000..6545a8878 --- /dev/null +++ b/sae/src/model/ListNamespacedConfigMapsResult.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +ListNamespacedConfigMapsResult::ListNamespacedConfigMapsResult() : + ServiceResult() +{} + +ListNamespacedConfigMapsResult::ListNamespacedConfigMapsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListNamespacedConfigMapsResult::~ListNamespacedConfigMapsResult() +{} + +void ListNamespacedConfigMapsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allConfigMapsNode = dataNode["ConfigMaps"]["ConfigMap"]; + for (auto dataNodeConfigMapsConfigMap : allConfigMapsNode) + { + Data::ConfigMap configMapObject; + if(!dataNodeConfigMapsConfigMap["ConfigMapId"].isNull()) + configMapObject.configMapId = std::stol(dataNodeConfigMapsConfigMap["ConfigMapId"].asString()); + if(!dataNodeConfigMapsConfigMap["Name"].isNull()) + configMapObject.name = dataNodeConfigMapsConfigMap["Name"].asString(); + if(!dataNodeConfigMapsConfigMap["NamespaceId"].isNull()) + configMapObject.namespaceId = dataNodeConfigMapsConfigMap["NamespaceId"].asString(); + if(!dataNodeConfigMapsConfigMap["Description"].isNull()) + configMapObject.description = dataNodeConfigMapsConfigMap["Description"].asString(); + if(!dataNodeConfigMapsConfigMap["Data"].isNull()) + configMapObject.data = dataNodeConfigMapsConfigMap["Data"].asString(); + if(!dataNodeConfigMapsConfigMap["CreateTime"].isNull()) + configMapObject.createTime = std::stol(dataNodeConfigMapsConfigMap["CreateTime"].asString()); + if(!dataNodeConfigMapsConfigMap["UpdateTime"].isNull()) + configMapObject.updateTime = std::stol(dataNodeConfigMapsConfigMap["UpdateTime"].asString()); + auto allRelateAppsNode = allConfigMapsNode["RelateApps"]["RelateApp"]; + for (auto allConfigMapsNodeRelateAppsRelateApp : allRelateAppsNode) + { + Data::ConfigMap::RelateApp relateAppsObject; + if(!allConfigMapsNodeRelateAppsRelateApp["AppId"].isNull()) + relateAppsObject.appId = allConfigMapsNodeRelateAppsRelateApp["AppId"].asString(); + if(!allConfigMapsNodeRelateAppsRelateApp["AppName"].isNull()) + relateAppsObject.appName = allConfigMapsNodeRelateAppsRelateApp["AppName"].asString(); + configMapObject.relateApps.push_back(relateAppsObject); + } + data_.configMaps.push_back(configMapObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListNamespacedConfigMapsResult::getMessage()const +{ + return message_; +} + +std::string ListNamespacedConfigMapsResult::getTraceId()const +{ + return traceId_; +} + +ListNamespacedConfigMapsResult::Data ListNamespacedConfigMapsResult::getData()const +{ + return data_; +} + +std::string ListNamespacedConfigMapsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListNamespacedConfigMapsResult::getCode()const +{ + return code_; +} + +bool ListNamespacedConfigMapsResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/ListPublishedServicesRequest.cc b/sae/src/model/ListPublishedServicesRequest.cc new file mode 100644 index 000000000..29c678b46 --- /dev/null +++ b/sae/src/model/ListPublishedServicesRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::ListPublishedServicesRequest; + +ListPublishedServicesRequest::ListPublishedServicesRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/service/listPublishedServices"); + setMethod(HttpRequest::Method::Get); +} + +ListPublishedServicesRequest::~ListPublishedServicesRequest() +{} + +std::string ListPublishedServicesRequest::getAppId()const +{ + return appId_; +} + +void ListPublishedServicesRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + diff --git a/sae/src/model/ListPublishedServicesResult.cc b/sae/src/model/ListPublishedServicesResult.cc new file mode 100644 index 000000000..1004b7157 --- /dev/null +++ b/sae/src/model/ListPublishedServicesResult.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +ListPublishedServicesResult::ListPublishedServicesResult() : + ServiceResult() +{} + +ListPublishedServicesResult::ListPublishedServicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPublishedServicesResult::~ListPublishedServicesResult() +{} + +void ListPublishedServicesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["AppId"].isNull()) + dataObject.appId = valueDataDataItem["AppId"].asString(); + if(!valueDataDataItem["Group2Ip"].isNull()) + dataObject.group2Ip = valueDataDataItem["Group2Ip"].asString(); + if(!valueDataDataItem["Name"].isNull()) + dataObject.name = valueDataDataItem["Name"].asString(); + if(!valueDataDataItem["Type"].isNull()) + dataObject.type = valueDataDataItem["Type"].asString(); + if(!valueDataDataItem["Version"].isNull()) + dataObject.version = valueDataDataItem["Version"].asString(); + auto allGroups = value["Groups"]["Group"]; + for (auto value : allGroups) + dataObject.groups.push_back(value.asString()); + auto allIps = value["Ips"]["Ip"]; + for (auto value : allIps) + dataObject.ips.push_back(value.asString()); + data_.push_back(dataObject); + } + 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"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string ListPublishedServicesResult::getMessage()const +{ + return message_; +} + +std::string ListPublishedServicesResult::getTraceId()const +{ + return traceId_; +} + +std::vector ListPublishedServicesResult::getData()const +{ + return data_; +} + +std::string ListPublishedServicesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListPublishedServicesResult::getCode()const +{ + return code_; +} + +bool ListPublishedServicesResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/ListTagResourcesRequest.cc b/sae/src/model/ListTagResourcesRequest.cc new file mode 100644 index 000000000..4213d615e --- /dev/null +++ b/sae/src/model/ListTagResourcesRequest.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 + +using AlibabaCloud::Sae::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/tags"); + setMethod(HttpRequest::Method::Get); +} + +ListTagResourcesRequest::~ListTagResourcesRequest() +{} + +std::string ListTagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void ListTagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListTagResourcesRequest::getNextToken()const +{ + return nextToken_; +} + +void ListTagResourcesRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +std::string ListTagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string ListTagResourcesRequest::getResourceIds()const +{ + return resourceIds_; +} + +void ListTagResourcesRequest::setResourceIds(const std::string& resourceIds) +{ + resourceIds_ = resourceIds; + setParameter("ResourceIds", resourceIds); +} + +std::string ListTagResourcesRequest::getTags()const +{ + return tags_; +} + +void ListTagResourcesRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + diff --git a/sae/src/model/ListTagResourcesResult.cc b/sae/src/model/ListTagResourcesResult.cc new file mode 100644 index 000000000..c99c1a617 --- /dev/null +++ b/sae/src/model/ListTagResourcesResult.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::Sae; +using namespace AlibabaCloud::Sae::Model; + +ListTagResourcesResult::ListTagResourcesResult() : + ServiceResult() +{} + +ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagResourcesResult::~ListTagResourcesResult() +{} + +void ListTagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["NextToken"].isNull()) + data_.nextToken = dataNode["NextToken"].asString(); + auto allTagResourcesNode = dataNode["TagResources"]["TagResource"]; + for (auto dataNodeTagResourcesTagResource : allTagResourcesNode) + { + Data::TagResource tagResourceObject; + if(!dataNodeTagResourcesTagResource["TagKey"].isNull()) + tagResourceObject.tagKey = dataNodeTagResourcesTagResource["TagKey"].asString(); + if(!dataNodeTagResourcesTagResource["TagValue"].isNull()) + tagResourceObject.tagValue = dataNodeTagResourcesTagResource["TagValue"].asString(); + if(!dataNodeTagResourcesTagResource["ResourceId"].isNull()) + tagResourceObject.resourceId = dataNodeTagResourcesTagResource["ResourceId"].asString(); + if(!dataNodeTagResourcesTagResource["ResourceType"].isNull()) + tagResourceObject.resourceType = dataNodeTagResourcesTagResource["ResourceType"].asString(); + data_.tagResources.push_back(tagResourceObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string ListTagResourcesResult::getMessage()const +{ + return message_; +} + +std::string ListTagResourcesResult::getTraceId()const +{ + return traceId_; +} + +ListTagResourcesResult::Data ListTagResourcesResult::getData()const +{ + return data_; +} + +std::string ListTagResourcesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListTagResourcesResult::getCode()const +{ + return code_; +} + +bool ListTagResourcesResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/QueryResourceStaticsRequest.cc b/sae/src/model/QueryResourceStaticsRequest.cc new file mode 100644 index 000000000..875aa85aa --- /dev/null +++ b/sae/src/model/QueryResourceStaticsRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::QueryResourceStaticsRequest; + +QueryResourceStaticsRequest::QueryResourceStaticsRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/paas/quota/queryResourceStatics"); + setMethod(HttpRequest::Method::Get); +} + +QueryResourceStaticsRequest::~QueryResourceStaticsRequest() +{} + +std::string QueryResourceStaticsRequest::getAppId()const +{ + return appId_; +} + +void QueryResourceStaticsRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + diff --git a/sae/src/model/QueryResourceStaticsResult.cc b/sae/src/model/QueryResourceStaticsResult.cc new file mode 100644 index 000000000..8adf704ee --- /dev/null +++ b/sae/src/model/QueryResourceStaticsResult.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +QueryResourceStaticsResult::QueryResourceStaticsResult() : + ServiceResult() +{} + +QueryResourceStaticsResult::QueryResourceStaticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryResourceStaticsResult::~QueryResourceStaticsResult() +{} + +void QueryResourceStaticsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto realTimeResNode = dataNode["RealTimeRes"]; + if(!realTimeResNode["Cpu"].isNull()) + data_.realTimeRes.cpu = std::stof(realTimeResNode["Cpu"].asString()); + if(!realTimeResNode["Memory"].isNull()) + data_.realTimeRes.memory = std::stof(realTimeResNode["Memory"].asString()); + auto summaryNode = dataNode["Summary"]; + if(!summaryNode["Cpu"].isNull()) + data_.summary.cpu = std::stof(summaryNode["Cpu"].asString()); + if(!summaryNode["Memory"].isNull()) + data_.summary.memory = std::stof(summaryNode["Memory"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string QueryResourceStaticsResult::getMessage()const +{ + return message_; +} + +std::string QueryResourceStaticsResult::getTraceId()const +{ + return traceId_; +} + +QueryResourceStaticsResult::Data QueryResourceStaticsResult::getData()const +{ + return data_; +} + +std::string QueryResourceStaticsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string QueryResourceStaticsResult::getCode()const +{ + return code_; +} + +bool QueryResourceStaticsResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/RescaleApplicationRequest.cc b/sae/src/model/RescaleApplicationRequest.cc new file mode 100644 index 000000000..ef32c8a3a --- /dev/null +++ b/sae/src/model/RescaleApplicationRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::RescaleApplicationRequest; + +RescaleApplicationRequest::RescaleApplicationRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/app/rescaleApplication"); + setMethod(HttpRequest::Method::Put); +} + +RescaleApplicationRequest::~RescaleApplicationRequest() +{} + +int RescaleApplicationRequest::getMinReadyInstances()const +{ + return minReadyInstances_; +} + +void RescaleApplicationRequest::setMinReadyInstances(int minReadyInstances) +{ + minReadyInstances_ = minReadyInstances; + setParameter("MinReadyInstances", std::to_string(minReadyInstances)); +} + +int RescaleApplicationRequest::getReplicas()const +{ + return replicas_; +} + +void RescaleApplicationRequest::setReplicas(int replicas) +{ + replicas_ = replicas; + setParameter("Replicas", std::to_string(replicas)); +} + +std::string RescaleApplicationRequest::getAppId()const +{ + return appId_; +} + +void RescaleApplicationRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + diff --git a/sae/src/model/RescaleApplicationResult.cc b/sae/src/model/RescaleApplicationResult.cc new file mode 100644 index 000000000..9348b01a4 --- /dev/null +++ b/sae/src/model/RescaleApplicationResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +RescaleApplicationResult::RescaleApplicationResult() : + ServiceResult() +{} + +RescaleApplicationResult::RescaleApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RescaleApplicationResult::~RescaleApplicationResult() +{} + +void RescaleApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ChangeOrderId"].isNull()) + data_.changeOrderId = dataNode["ChangeOrderId"].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"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string RescaleApplicationResult::getMessage()const +{ + return message_; +} + +RescaleApplicationResult::Data RescaleApplicationResult::getData()const +{ + return data_; +} + +std::string RescaleApplicationResult::getErrorCode()const +{ + return errorCode_; +} + +std::string RescaleApplicationResult::getCode()const +{ + return code_; +} + +bool RescaleApplicationResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/RescaleApplicationVerticallyRequest.cc b/sae/src/model/RescaleApplicationVerticallyRequest.cc new file mode 100644 index 000000000..bb9ded6b7 --- /dev/null +++ b/sae/src/model/RescaleApplicationVerticallyRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::RescaleApplicationVerticallyRequest; + +RescaleApplicationVerticallyRequest::RescaleApplicationVerticallyRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/app/rescaleApplicationVertically"); + setMethod(HttpRequest::Method::Post); +} + +RescaleApplicationVerticallyRequest::~RescaleApplicationVerticallyRequest() +{} + +std::string RescaleApplicationVerticallyRequest::getMemory()const +{ + return memory_; +} + +void RescaleApplicationVerticallyRequest::setMemory(const std::string& memory) +{ + memory_ = memory; + setParameter("Memory", memory); +} + +std::string RescaleApplicationVerticallyRequest::getAppId()const +{ + return appId_; +} + +void RescaleApplicationVerticallyRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string RescaleApplicationVerticallyRequest::getCpu()const +{ + return cpu_; +} + +void RescaleApplicationVerticallyRequest::setCpu(const std::string& cpu) +{ + cpu_ = cpu; + setParameter("Cpu", cpu); +} + diff --git a/sae/src/model/RescaleApplicationVerticallyResult.cc b/sae/src/model/RescaleApplicationVerticallyResult.cc new file mode 100644 index 000000000..149af3b88 --- /dev/null +++ b/sae/src/model/RescaleApplicationVerticallyResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +RescaleApplicationVerticallyResult::RescaleApplicationVerticallyResult() : + ServiceResult() +{} + +RescaleApplicationVerticallyResult::RescaleApplicationVerticallyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RescaleApplicationVerticallyResult::~RescaleApplicationVerticallyResult() +{} + +void RescaleApplicationVerticallyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ChangeOrderId"].isNull()) + data_.changeOrderId = dataNode["ChangeOrderId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string RescaleApplicationVerticallyResult::getMessage()const +{ + return message_; +} + +std::string RescaleApplicationVerticallyResult::getTraceId()const +{ + return traceId_; +} + +RescaleApplicationVerticallyResult::Data RescaleApplicationVerticallyResult::getData()const +{ + return data_; +} + +std::string RescaleApplicationVerticallyResult::getErrorCode()const +{ + return errorCode_; +} + +std::string RescaleApplicationVerticallyResult::getCode()const +{ + return code_; +} + +bool RescaleApplicationVerticallyResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/RestartApplicationRequest.cc b/sae/src/model/RestartApplicationRequest.cc new file mode 100644 index 000000000..c140d45ce --- /dev/null +++ b/sae/src/model/RestartApplicationRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::RestartApplicationRequest; + +RestartApplicationRequest::RestartApplicationRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/app/restartApplication"); + setMethod(HttpRequest::Method::Put); +} + +RestartApplicationRequest::~RestartApplicationRequest() +{} + +int RestartApplicationRequest::getMinReadyInstances()const +{ + return minReadyInstances_; +} + +void RestartApplicationRequest::setMinReadyInstances(int minReadyInstances) +{ + minReadyInstances_ = minReadyInstances; + setParameter("MinReadyInstances", std::to_string(minReadyInstances)); +} + +std::string RestartApplicationRequest::getAppId()const +{ + return appId_; +} + +void RestartApplicationRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + diff --git a/sae/src/model/RestartApplicationResult.cc b/sae/src/model/RestartApplicationResult.cc new file mode 100644 index 000000000..3c12fc866 --- /dev/null +++ b/sae/src/model/RestartApplicationResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +RestartApplicationResult::RestartApplicationResult() : + ServiceResult() +{} + +RestartApplicationResult::RestartApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RestartApplicationResult::~RestartApplicationResult() +{} + +void RestartApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ChangeOrderId"].isNull()) + data_.changeOrderId = dataNode["ChangeOrderId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string RestartApplicationResult::getMessage()const +{ + return message_; +} + +std::string RestartApplicationResult::getTraceId()const +{ + return traceId_; +} + +RestartApplicationResult::Data RestartApplicationResult::getData()const +{ + return data_; +} + +std::string RestartApplicationResult::getErrorCode()const +{ + return errorCode_; +} + +std::string RestartApplicationResult::getCode()const +{ + return code_; +} + +bool RestartApplicationResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/RollbackApplicationRequest.cc b/sae/src/model/RollbackApplicationRequest.cc new file mode 100644 index 000000000..ab60daec5 --- /dev/null +++ b/sae/src/model/RollbackApplicationRequest.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::RollbackApplicationRequest; + +RollbackApplicationRequest::RollbackApplicationRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/app/rollbackApplication"); + setMethod(HttpRequest::Method::Put); +} + +RollbackApplicationRequest::~RollbackApplicationRequest() +{} + +int RollbackApplicationRequest::getMinReadyInstances()const +{ + return minReadyInstances_; +} + +void RollbackApplicationRequest::setMinReadyInstances(int minReadyInstances) +{ + minReadyInstances_ = minReadyInstances; + setParameter("MinReadyInstances", std::to_string(minReadyInstances)); +} + +std::string RollbackApplicationRequest::getVersionId()const +{ + return versionId_; +} + +void RollbackApplicationRequest::setVersionId(const std::string& versionId) +{ + versionId_ = versionId; + setParameter("VersionId", versionId); +} + +std::string RollbackApplicationRequest::getAppId()const +{ + return appId_; +} + +void RollbackApplicationRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +int RollbackApplicationRequest::getBatchWaitTime()const +{ + return batchWaitTime_; +} + +void RollbackApplicationRequest::setBatchWaitTime(int batchWaitTime) +{ + batchWaitTime_ = batchWaitTime; + setParameter("BatchWaitTime", std::to_string(batchWaitTime)); +} + +std::string RollbackApplicationRequest::getAutoEnableApplicationScalingRule()const +{ + return autoEnableApplicationScalingRule_; +} + +void RollbackApplicationRequest::setAutoEnableApplicationScalingRule(const std::string& autoEnableApplicationScalingRule) +{ + autoEnableApplicationScalingRule_ = autoEnableApplicationScalingRule; + setParameter("AutoEnableApplicationScalingRule", autoEnableApplicationScalingRule); +} + +std::string RollbackApplicationRequest::getUpdateStrategy()const +{ + return updateStrategy_; +} + +void RollbackApplicationRequest::setUpdateStrategy(const std::string& updateStrategy) +{ + updateStrategy_ = updateStrategy; + setParameter("UpdateStrategy", updateStrategy); +} + diff --git a/sae/src/model/RollbackApplicationResult.cc b/sae/src/model/RollbackApplicationResult.cc new file mode 100644 index 000000000..91423d087 --- /dev/null +++ b/sae/src/model/RollbackApplicationResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +RollbackApplicationResult::RollbackApplicationResult() : + ServiceResult() +{} + +RollbackApplicationResult::RollbackApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RollbackApplicationResult::~RollbackApplicationResult() +{} + +void RollbackApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ChangeOrderId"].isNull()) + data_.changeOrderId = dataNode["ChangeOrderId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string RollbackApplicationResult::getMessage()const +{ + return message_; +} + +std::string RollbackApplicationResult::getTraceId()const +{ + return traceId_; +} + +RollbackApplicationResult::Data RollbackApplicationResult::getData()const +{ + return data_; +} + +std::string RollbackApplicationResult::getErrorCode()const +{ + return errorCode_; +} + +std::string RollbackApplicationResult::getCode()const +{ + return code_; +} + +bool RollbackApplicationResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/StartApplicationRequest.cc b/sae/src/model/StartApplicationRequest.cc new file mode 100644 index 000000000..f3b028a46 --- /dev/null +++ b/sae/src/model/StartApplicationRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::StartApplicationRequest; + +StartApplicationRequest::StartApplicationRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/app/startApplication"); + setMethod(HttpRequest::Method::Put); +} + +StartApplicationRequest::~StartApplicationRequest() +{} + +std::string StartApplicationRequest::getAppId()const +{ + return appId_; +} + +void StartApplicationRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + diff --git a/sae/src/model/StartApplicationResult.cc b/sae/src/model/StartApplicationResult.cc new file mode 100644 index 000000000..fc8e2b836 --- /dev/null +++ b/sae/src/model/StartApplicationResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +StartApplicationResult::StartApplicationResult() : + ServiceResult() +{} + +StartApplicationResult::StartApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartApplicationResult::~StartApplicationResult() +{} + +void StartApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ChangeOrderId"].isNull()) + data_.changeOrderId = dataNode["ChangeOrderId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string StartApplicationResult::getMessage()const +{ + return message_; +} + +std::string StartApplicationResult::getTraceId()const +{ + return traceId_; +} + +StartApplicationResult::Data StartApplicationResult::getData()const +{ + return data_; +} + +std::string StartApplicationResult::getErrorCode()const +{ + return errorCode_; +} + +std::string StartApplicationResult::getCode()const +{ + return code_; +} + +bool StartApplicationResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/StopApplicationRequest.cc b/sae/src/model/StopApplicationRequest.cc new file mode 100644 index 000000000..d17f29a69 --- /dev/null +++ b/sae/src/model/StopApplicationRequest.cc @@ -0,0 +1,41 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::StopApplicationRequest; + +StopApplicationRequest::StopApplicationRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/app/stopApplication"); + setMethod(HttpRequest::Method::Put); +} + +StopApplicationRequest::~StopApplicationRequest() +{} + +std::string StopApplicationRequest::getAppId()const +{ + return appId_; +} + +void StopApplicationRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + diff --git a/sae/src/model/StopApplicationResult.cc b/sae/src/model/StopApplicationResult.cc new file mode 100644 index 000000000..f1a1f448c --- /dev/null +++ b/sae/src/model/StopApplicationResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +StopApplicationResult::StopApplicationResult() : + ServiceResult() +{} + +StopApplicationResult::StopApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopApplicationResult::~StopApplicationResult() +{} + +void StopApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ChangeOrderId"].isNull()) + data_.changeOrderId = dataNode["ChangeOrderId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string StopApplicationResult::getMessage()const +{ + return message_; +} + +std::string StopApplicationResult::getTraceId()const +{ + return traceId_; +} + +StopApplicationResult::Data StopApplicationResult::getData()const +{ + return data_; +} + +std::string StopApplicationResult::getErrorCode()const +{ + return errorCode_; +} + +std::string StopApplicationResult::getCode()const +{ + return code_; +} + +bool StopApplicationResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/TagResourcesRequest.cc b/sae/src/model/TagResourcesRequest.cc new file mode 100644 index 000000000..e4a293b33 --- /dev/null +++ b/sae/src/model/TagResourcesRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/tags"); + setMethod(HttpRequest::Method::Post); +} + +TagResourcesRequest::~TagResourcesRequest() +{} + +std::string TagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void TagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +std::string TagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setBodyParameter("ResourceType", resourceType); +} + +std::string TagResourcesRequest::getTags()const +{ + return tags_; +} + +void TagResourcesRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setBodyParameter("Tags", tags); +} + +std::string TagResourcesRequest::getResourceIds()const +{ + return resourceIds_; +} + +void TagResourcesRequest::setResourceIds(const std::string& resourceIds) +{ + resourceIds_ = resourceIds; + setBodyParameter("ResourceIds", resourceIds); +} + diff --git a/sae/src/model/TagResourcesResult.cc b/sae/src/model/TagResourcesResult.cc new file mode 100644 index 000000000..97167e195 --- /dev/null +++ b/sae/src/model/TagResourcesResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +TagResourcesResult::TagResourcesResult() : + ServiceResult() +{} + +TagResourcesResult::TagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagResourcesResult::~TagResourcesResult() +{} + +void TagResourcesResult::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["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string TagResourcesResult::getMessage()const +{ + return message_; +} + +std::string TagResourcesResult::getTraceId()const +{ + return traceId_; +} + +bool TagResourcesResult::getData()const +{ + return data_; +} + +std::string TagResourcesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string TagResourcesResult::getCode()const +{ + return code_; +} + +bool TagResourcesResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/UnbindSlbRequest.cc b/sae/src/model/UnbindSlbRequest.cc new file mode 100644 index 000000000..7adcadf7e --- /dev/null +++ b/sae/src/model/UnbindSlbRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::UnbindSlbRequest; + +UnbindSlbRequest::UnbindSlbRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/app/slb"); + setMethod(HttpRequest::Method::Delete); +} + +UnbindSlbRequest::~UnbindSlbRequest() +{} + +bool UnbindSlbRequest::getIntranet()const +{ + return intranet_; +} + +void UnbindSlbRequest::setIntranet(bool intranet) +{ + intranet_ = intranet; + setParameter("Intranet", intranet ? "true" : "false"); +} + +std::string UnbindSlbRequest::getAppId()const +{ + return appId_; +} + +void UnbindSlbRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +bool UnbindSlbRequest::getInternet()const +{ + return internet_; +} + +void UnbindSlbRequest::setInternet(bool internet) +{ + internet_ = internet; + setParameter("Internet", internet ? "true" : "false"); +} + diff --git a/sae/src/model/UnbindSlbResult.cc b/sae/src/model/UnbindSlbResult.cc new file mode 100644 index 000000000..6f91c4fb0 --- /dev/null +++ b/sae/src/model/UnbindSlbResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +UnbindSlbResult::UnbindSlbResult() : + ServiceResult() +{} + +UnbindSlbResult::UnbindSlbResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnbindSlbResult::~UnbindSlbResult() +{} + +void UnbindSlbResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ChangeOrderId"].isNull()) + data_.changeOrderId = dataNode["ChangeOrderId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string UnbindSlbResult::getMessage()const +{ + return message_; +} + +std::string UnbindSlbResult::getTraceId()const +{ + return traceId_; +} + +UnbindSlbResult::Data UnbindSlbResult::getData()const +{ + return data_; +} + +std::string UnbindSlbResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UnbindSlbResult::getCode()const +{ + return code_; +} + +bool UnbindSlbResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/UntagResourcesRequest.cc b/sae/src/model/UntagResourcesRequest.cc new file mode 100644 index 000000000..8b4522c9d --- /dev/null +++ b/sae/src/model/UntagResourcesRequest.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 + +using AlibabaCloud::Sae::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/tags"); + setMethod(HttpRequest::Method::Delete); +} + +UntagResourcesRequest::~UntagResourcesRequest() +{} + +std::string UntagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void UntagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UntagResourcesRequest::getTagKeys()const +{ + return tagKeys_; +} + +void UntagResourcesRequest::setTagKeys(const std::string& tagKeys) +{ + tagKeys_ = tagKeys; + setParameter("TagKeys", tagKeys); +} + +bool UntagResourcesRequest::getDeleteAll()const +{ + return deleteAll_; +} + +void UntagResourcesRequest::setDeleteAll(bool deleteAll) +{ + deleteAll_ = deleteAll; + setParameter("DeleteAll", deleteAll ? "true" : "false"); +} + +std::string UntagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void UntagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string UntagResourcesRequest::getResourceIds()const +{ + return resourceIds_; +} + +void UntagResourcesRequest::setResourceIds(const std::string& resourceIds) +{ + resourceIds_ = resourceIds; + setParameter("ResourceIds", resourceIds); +} + diff --git a/sae/src/model/UntagResourcesResult.cc b/sae/src/model/UntagResourcesResult.cc new file mode 100644 index 000000000..e39b4d160 --- /dev/null +++ b/sae/src/model/UntagResourcesResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +UntagResourcesResult::UntagResourcesResult() : + ServiceResult() +{} + +UntagResourcesResult::UntagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UntagResourcesResult::~UntagResourcesResult() +{} + +void UntagResourcesResult::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["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string UntagResourcesResult::getMessage()const +{ + return message_; +} + +std::string UntagResourcesResult::getTraceId()const +{ + return traceId_; +} + +bool UntagResourcesResult::getData()const +{ + return data_; +} + +std::string UntagResourcesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UntagResourcesResult::getCode()const +{ + return code_; +} + +bool UntagResourcesResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/UpdateAppSecurityGroupRequest.cc b/sae/src/model/UpdateAppSecurityGroupRequest.cc new file mode 100644 index 000000000..64f30238e --- /dev/null +++ b/sae/src/model/UpdateAppSecurityGroupRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::UpdateAppSecurityGroupRequest; + +UpdateAppSecurityGroupRequest::UpdateAppSecurityGroupRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/app/updateAppSecurityGroup"); + setMethod(HttpRequest::Method::Put); +} + +UpdateAppSecurityGroupRequest::~UpdateAppSecurityGroupRequest() +{} + +std::string UpdateAppSecurityGroupRequest::getAppId()const +{ + return appId_; +} + +void UpdateAppSecurityGroupRequest::setAppId(const std::string& appId) +{ + appId_ = appId; + setParameter("AppId", appId); +} + +std::string UpdateAppSecurityGroupRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void UpdateAppSecurityGroupRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + diff --git a/sae/src/model/UpdateAppSecurityGroupResult.cc b/sae/src/model/UpdateAppSecurityGroupResult.cc new file mode 100644 index 000000000..ed646c2f8 --- /dev/null +++ b/sae/src/model/UpdateAppSecurityGroupResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +UpdateAppSecurityGroupResult::UpdateAppSecurityGroupResult() : + ServiceResult() +{} + +UpdateAppSecurityGroupResult::UpdateAppSecurityGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAppSecurityGroupResult::~UpdateAppSecurityGroupResult() +{} + +void UpdateAppSecurityGroupResult::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["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpdateAppSecurityGroupResult::getMessage()const +{ + return message_; +} + +std::string UpdateAppSecurityGroupResult::getTraceId()const +{ + return traceId_; +} + +std::string UpdateAppSecurityGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateAppSecurityGroupResult::getCode()const +{ + return code_; +} + +bool UpdateAppSecurityGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/UpdateConfigMapRequest.cc b/sae/src/model/UpdateConfigMapRequest.cc new file mode 100644 index 000000000..800c0c5a1 --- /dev/null +++ b/sae/src/model/UpdateConfigMapRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::UpdateConfigMapRequest; + +UpdateConfigMapRequest::UpdateConfigMapRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/configmap/configMap"); + setMethod(HttpRequest::Method::Put); +} + +UpdateConfigMapRequest::~UpdateConfigMapRequest() +{} + +std::string UpdateConfigMapRequest::getData()const +{ + return data_; +} + +void UpdateConfigMapRequest::setData(const std::string& data) +{ + data_ = data; + setBodyParameter("Data", data); +} + +std::string UpdateConfigMapRequest::getDescription()const +{ + return description_; +} + +void UpdateConfigMapRequest::setDescription(const std::string& description) +{ + description_ = description; + setBodyParameter("Description", description); +} + +long UpdateConfigMapRequest::getConfigMapId()const +{ + return configMapId_; +} + +void UpdateConfigMapRequest::setConfigMapId(long configMapId) +{ + configMapId_ = configMapId; + setParameter("ConfigMapId", std::to_string(configMapId)); +} + diff --git a/sae/src/model/UpdateConfigMapResult.cc b/sae/src/model/UpdateConfigMapResult.cc new file mode 100644 index 000000000..56f2e17c3 --- /dev/null +++ b/sae/src/model/UpdateConfigMapResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +UpdateConfigMapResult::UpdateConfigMapResult() : + ServiceResult() +{} + +UpdateConfigMapResult::UpdateConfigMapResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateConfigMapResult::~UpdateConfigMapResult() +{} + +void UpdateConfigMapResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ConfigMapId"].isNull()) + data_.configMapId = dataNode["ConfigMapId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpdateConfigMapResult::getMessage()const +{ + return message_; +} + +std::string UpdateConfigMapResult::getTraceId()const +{ + return traceId_; +} + +UpdateConfigMapResult::Data UpdateConfigMapResult::getData()const +{ + return data_; +} + +std::string UpdateConfigMapResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateConfigMapResult::getCode()const +{ + return code_; +} + +bool UpdateConfigMapResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/UpdateIngressRequest.cc b/sae/src/model/UpdateIngressRequest.cc new file mode 100644 index 000000000..16e635a3c --- /dev/null +++ b/sae/src/model/UpdateIngressRequest.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::UpdateIngressRequest; + +UpdateIngressRequest::UpdateIngressRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/ingress/Ingress"); + setMethod(HttpRequest::Method::Put); +} + +UpdateIngressRequest::~UpdateIngressRequest() +{} + +long UpdateIngressRequest::getIngressId()const +{ + return ingressId_; +} + +void UpdateIngressRequest::setIngressId(long ingressId) +{ + ingressId_ = ingressId; + setParameter("IngressId", std::to_string(ingressId)); +} + +std::string UpdateIngressRequest::getListenerPort()const +{ + return listenerPort_; +} + +void UpdateIngressRequest::setListenerPort(const std::string& listenerPort) +{ + listenerPort_ = listenerPort; + setParameter("ListenerPort", listenerPort); +} + +std::string UpdateIngressRequest::getDescription()const +{ + return description_; +} + +void UpdateIngressRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string UpdateIngressRequest::getRules()const +{ + return rules_; +} + +void UpdateIngressRequest::setRules(const std::string& rules) +{ + rules_ = rules; + setBodyParameter("Rules", rules); +} + +std::string UpdateIngressRequest::getCertId()const +{ + return certId_; +} + +void UpdateIngressRequest::setCertId(const std::string& certId) +{ + certId_ = certId; + setParameter("CertId", certId); +} + +std::string UpdateIngressRequest::getDefaultRule()const +{ + return defaultRule_; +} + +void UpdateIngressRequest::setDefaultRule(const std::string& defaultRule) +{ + defaultRule_ = defaultRule; + setParameter("DefaultRule", defaultRule); +} + diff --git a/sae/src/model/UpdateIngressResult.cc b/sae/src/model/UpdateIngressResult.cc new file mode 100644 index 000000000..0c4939932 --- /dev/null +++ b/sae/src/model/UpdateIngressResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +UpdateIngressResult::UpdateIngressResult() : + ServiceResult() +{} + +UpdateIngressResult::UpdateIngressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateIngressResult::~UpdateIngressResult() +{} + +void UpdateIngressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["IngressId"].isNull()) + data_.ingressId = std::stol(dataNode["IngressId"].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"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string UpdateIngressResult::getMessage()const +{ + return message_; +} + +std::string UpdateIngressResult::getTraceId()const +{ + return traceId_; +} + +UpdateIngressResult::Data UpdateIngressResult::getData()const +{ + return data_; +} + +std::string UpdateIngressResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateIngressResult::getCode()const +{ + return code_; +} + +bool UpdateIngressResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/UpdateNamespaceRequest.cc b/sae/src/model/UpdateNamespaceRequest.cc new file mode 100644 index 000000000..657270261 --- /dev/null +++ b/sae/src/model/UpdateNamespaceRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::UpdateNamespaceRequest; + +UpdateNamespaceRequest::UpdateNamespaceRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/paas/namespace"); + setMethod(HttpRequest::Method::Put); +} + +UpdateNamespaceRequest::~UpdateNamespaceRequest() +{} + +std::string UpdateNamespaceRequest::getNamespaceName()const +{ + return namespaceName_; +} + +void UpdateNamespaceRequest::setNamespaceName(const std::string& namespaceName) +{ + namespaceName_ = namespaceName; + setParameter("NamespaceName", namespaceName); +} + +std::string UpdateNamespaceRequest::getNamespaceDescription()const +{ + return namespaceDescription_; +} + +void UpdateNamespaceRequest::setNamespaceDescription(const std::string& namespaceDescription) +{ + namespaceDescription_ = namespaceDescription; + setParameter("NamespaceDescription", namespaceDescription); +} + +std::string UpdateNamespaceRequest::getNamespaceId()const +{ + return namespaceId_; +} + +void UpdateNamespaceRequest::setNamespaceId(const std::string& namespaceId) +{ + namespaceId_ = namespaceId; + setParameter("NamespaceId", namespaceId); +} + diff --git a/sae/src/model/UpdateNamespaceResult.cc b/sae/src/model/UpdateNamespaceResult.cc new file mode 100644 index 000000000..cb08c25d0 --- /dev/null +++ b/sae/src/model/UpdateNamespaceResult.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::Sae; +using namespace AlibabaCloud::Sae::Model; + +UpdateNamespaceResult::UpdateNamespaceResult() : + ServiceResult() +{} + +UpdateNamespaceResult::UpdateNamespaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateNamespaceResult::~UpdateNamespaceResult() +{} + +void UpdateNamespaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["RegionId"].isNull()) + data_.regionId = dataNode["RegionId"].asString(); + if(!dataNode["NamespaceId"].isNull()) + data_.namespaceId = dataNode["NamespaceId"].asString(); + if(!dataNode["NamespaceName"].isNull()) + data_.namespaceName = dataNode["NamespaceName"].asString(); + if(!dataNode["NamespaceDescription"].isNull()) + data_.namespaceDescription = dataNode["NamespaceDescription"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + +} + +std::string UpdateNamespaceResult::getMessage()const +{ + return message_; +} + +std::string UpdateNamespaceResult::getTraceId()const +{ + return traceId_; +} + +UpdateNamespaceResult::Data UpdateNamespaceResult::getData()const +{ + return data_; +} + +std::string UpdateNamespaceResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateNamespaceResult::getCode()const +{ + return code_; +} + +bool UpdateNamespaceResult::getSuccess()const +{ + return success_; +} + diff --git a/sae/src/model/UpdateNamespaceVpcRequest.cc b/sae/src/model/UpdateNamespaceVpcRequest.cc new file mode 100644 index 000000000..fa0b84035 --- /dev/null +++ b/sae/src/model/UpdateNamespaceVpcRequest.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sae::Model::UpdateNamespaceVpcRequest; + +UpdateNamespaceVpcRequest::UpdateNamespaceVpcRequest() : + RoaServiceRequest("sae", "2019-05-06") +{ + setResourcePath("/pop/v1/sam/namespace/updateNamespaceVpc"); + setMethod(HttpRequest::Method::Post); +} + +UpdateNamespaceVpcRequest::~UpdateNamespaceVpcRequest() +{} + +std::string UpdateNamespaceVpcRequest::getNamespaceId()const +{ + return namespaceId_; +} + +void UpdateNamespaceVpcRequest::setNamespaceId(const std::string& namespaceId) +{ + namespaceId_ = namespaceId; + setParameter("NamespaceId", namespaceId); +} + +std::string UpdateNamespaceVpcRequest::getVpcId()const +{ + return vpcId_; +} + +void UpdateNamespaceVpcRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + diff --git a/sae/src/model/UpdateNamespaceVpcResult.cc b/sae/src/model/UpdateNamespaceVpcResult.cc new file mode 100644 index 000000000..5e437f7a8 --- /dev/null +++ b/sae/src/model/UpdateNamespaceVpcResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sae; +using namespace AlibabaCloud::Sae::Model; + +UpdateNamespaceVpcResult::UpdateNamespaceVpcResult() : + ServiceResult() +{} + +UpdateNamespaceVpcResult::UpdateNamespaceVpcResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateNamespaceVpcResult::~UpdateNamespaceVpcResult() +{} + +void UpdateNamespaceVpcResult::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["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TraceId"].isNull()) + traceId_ = value["TraceId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpdateNamespaceVpcResult::getMessage()const +{ + return message_; +} + +std::string UpdateNamespaceVpcResult::getTraceId()const +{ + return traceId_; +} + +std::string UpdateNamespaceVpcResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateNamespaceVpcResult::getCode()const +{ + return code_; +} + +bool UpdateNamespaceVpcResult::getSuccess()const +{ + return success_; +} +