diff --git a/CHANGELOG b/CHANGELOG index 9214bcee1..ef0dd03a3 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-04-09 Version: 1.36.347 +- Generated 2018-03-13 for `retailcloud`. + 2020-04-09 Version: 1.36.346 - Add DescribePrice API. diff --git a/VERSION b/VERSION index 08df520fb..81a8b4acb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.346 \ No newline at end of file +1.36.347 \ No newline at end of file diff --git a/retailcloud/CMakeLists.txt b/retailcloud/CMakeLists.txt new file mode 100644 index 000000000..645618c4d --- /dev/null +++ b/retailcloud/CMakeLists.txt @@ -0,0 +1,366 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(retailcloud_public_header + include/alibabacloud/retailcloud/RetailcloudClient.h + include/alibabacloud/retailcloud/RetailcloudExport.h ) + +set(retailcloud_public_header_model + include/alibabacloud/retailcloud/model/AddClusterNodeRequest.h + include/alibabacloud/retailcloud/model/AddClusterNodeResult.h + include/alibabacloud/retailcloud/model/BatchAddServersRequest.h + include/alibabacloud/retailcloud/model/BatchAddServersResult.h + include/alibabacloud/retailcloud/model/BindNodeLabelRequest.h + include/alibabacloud/retailcloud/model/BindNodeLabelResult.h + include/alibabacloud/retailcloud/model/CloseDeployOrderRequest.h + include/alibabacloud/retailcloud/model/CloseDeployOrderResult.h + include/alibabacloud/retailcloud/model/CreateAppRequest.h + include/alibabacloud/retailcloud/model/CreateAppResult.h + include/alibabacloud/retailcloud/model/CreateAppResourceAllocRequest.h + include/alibabacloud/retailcloud/model/CreateAppResourceAllocResult.h + include/alibabacloud/retailcloud/model/CreateClusterRequest.h + include/alibabacloud/retailcloud/model/CreateClusterResult.h + include/alibabacloud/retailcloud/model/CreateDbRequest.h + include/alibabacloud/retailcloud/model/CreateDbResult.h + include/alibabacloud/retailcloud/model/CreateDeployConfigRequest.h + include/alibabacloud/retailcloud/model/CreateDeployConfigResult.h + include/alibabacloud/retailcloud/model/CreateEnvironmentRequest.h + include/alibabacloud/retailcloud/model/CreateEnvironmentResult.h + include/alibabacloud/retailcloud/model/CreateNodeLabelRequest.h + include/alibabacloud/retailcloud/model/CreateNodeLabelResult.h + include/alibabacloud/retailcloud/model/CreatePersistentVolumeRequest.h + include/alibabacloud/retailcloud/model/CreatePersistentVolumeResult.h + include/alibabacloud/retailcloud/model/CreatePersistentVolumeClaimRequest.h + include/alibabacloud/retailcloud/model/CreatePersistentVolumeClaimResult.h + include/alibabacloud/retailcloud/model/CreateServiceRequest.h + include/alibabacloud/retailcloud/model/CreateServiceResult.h + include/alibabacloud/retailcloud/model/CreateSlbAPRequest.h + include/alibabacloud/retailcloud/model/CreateSlbAPResult.h + include/alibabacloud/retailcloud/model/DeleteAppDetailRequest.h + include/alibabacloud/retailcloud/model/DeleteAppDetailResult.h + include/alibabacloud/retailcloud/model/DeleteAppEnvironmentRequest.h + include/alibabacloud/retailcloud/model/DeleteAppEnvironmentResult.h + include/alibabacloud/retailcloud/model/DeleteAppResourceAllocRequest.h + include/alibabacloud/retailcloud/model/DeleteAppResourceAllocResult.h + include/alibabacloud/retailcloud/model/DeleteClusterRequest.h + include/alibabacloud/retailcloud/model/DeleteClusterResult.h + include/alibabacloud/retailcloud/model/DeleteDatabaseRequest.h + include/alibabacloud/retailcloud/model/DeleteDatabaseResult.h + include/alibabacloud/retailcloud/model/DeleteDeployConfigRequest.h + include/alibabacloud/retailcloud/model/DeleteDeployConfigResult.h + include/alibabacloud/retailcloud/model/DeleteNodeLabelRequest.h + include/alibabacloud/retailcloud/model/DeleteNodeLabelResult.h + include/alibabacloud/retailcloud/model/DeletePersistentVolumeRequest.h + include/alibabacloud/retailcloud/model/DeletePersistentVolumeResult.h + include/alibabacloud/retailcloud/model/DeletePersistentVolumeClaimRequest.h + include/alibabacloud/retailcloud/model/DeletePersistentVolumeClaimResult.h + include/alibabacloud/retailcloud/model/DeleteRdsAccountRequest.h + include/alibabacloud/retailcloud/model/DeleteRdsAccountResult.h + include/alibabacloud/retailcloud/model/DeleteServiceRequest.h + include/alibabacloud/retailcloud/model/DeleteServiceResult.h + include/alibabacloud/retailcloud/model/DeleteSlbAPRequest.h + include/alibabacloud/retailcloud/model/DeleteSlbAPResult.h + include/alibabacloud/retailcloud/model/DeployAppRequest.h + include/alibabacloud/retailcloud/model/DeployAppResult.h + include/alibabacloud/retailcloud/model/DescribeAppDetailRequest.h + include/alibabacloud/retailcloud/model/DescribeAppDetailResult.h + include/alibabacloud/retailcloud/model/DescribeAppEnvironmentDetailRequest.h + include/alibabacloud/retailcloud/model/DescribeAppEnvironmentDetailResult.h + include/alibabacloud/retailcloud/model/DescribeAppResourceAllocRequest.h + include/alibabacloud/retailcloud/model/DescribeAppResourceAllocResult.h + include/alibabacloud/retailcloud/model/DescribeDatabasesRequest.h + include/alibabacloud/retailcloud/model/DescribeDatabasesResult.h + include/alibabacloud/retailcloud/model/DescribeDeployOrderDetailRequest.h + include/alibabacloud/retailcloud/model/DescribeDeployOrderDetailResult.h + include/alibabacloud/retailcloud/model/DescribePodEventsRequest.h + include/alibabacloud/retailcloud/model/DescribePodEventsResult.h + include/alibabacloud/retailcloud/model/DescribePodLogRequest.h + include/alibabacloud/retailcloud/model/DescribePodLogResult.h + include/alibabacloud/retailcloud/model/DescribeRdsAccountsRequest.h + include/alibabacloud/retailcloud/model/DescribeRdsAccountsResult.h + include/alibabacloud/retailcloud/model/DescribeServiceDetailRequest.h + include/alibabacloud/retailcloud/model/DescribeServiceDetailResult.h + include/alibabacloud/retailcloud/model/DescribeSlbAPDetailRequest.h + include/alibabacloud/retailcloud/model/DescribeSlbAPDetailResult.h + include/alibabacloud/retailcloud/model/GetInstTransInfoRequest.h + include/alibabacloud/retailcloud/model/GetInstTransInfoResult.h + include/alibabacloud/retailcloud/model/GetRdsBackUpRequest.h + include/alibabacloud/retailcloud/model/GetRdsBackUpResult.h + include/alibabacloud/retailcloud/model/GrantDbToAccountRequest.h + include/alibabacloud/retailcloud/model/GrantDbToAccountResult.h + include/alibabacloud/retailcloud/model/ListAppRequest.h + include/alibabacloud/retailcloud/model/ListAppResult.h + include/alibabacloud/retailcloud/model/ListAppCmsGroupsRequest.h + include/alibabacloud/retailcloud/model/ListAppCmsGroupsResult.h + include/alibabacloud/retailcloud/model/ListAppEnvironmentRequest.h + include/alibabacloud/retailcloud/model/ListAppEnvironmentResult.h + include/alibabacloud/retailcloud/model/ListAppInstanceRequest.h + include/alibabacloud/retailcloud/model/ListAppInstanceResult.h + include/alibabacloud/retailcloud/model/ListAppResourceAllocsRequest.h + include/alibabacloud/retailcloud/model/ListAppResourceAllocsResult.h + include/alibabacloud/retailcloud/model/ListAvailableClusterNodeRequest.h + include/alibabacloud/retailcloud/model/ListAvailableClusterNodeResult.h + include/alibabacloud/retailcloud/model/ListClusterRequest.h + include/alibabacloud/retailcloud/model/ListClusterResult.h + include/alibabacloud/retailcloud/model/ListClusterNodeRequest.h + include/alibabacloud/retailcloud/model/ListClusterNodeResult.h + include/alibabacloud/retailcloud/model/ListDeployConfigRequest.h + include/alibabacloud/retailcloud/model/ListDeployConfigResult.h + include/alibabacloud/retailcloud/model/ListDeployOrdersRequest.h + include/alibabacloud/retailcloud/model/ListDeployOrdersResult.h + include/alibabacloud/retailcloud/model/ListNodeLabelBindingsRequest.h + include/alibabacloud/retailcloud/model/ListNodeLabelBindingsResult.h + include/alibabacloud/retailcloud/model/ListNodeLabelsRequest.h + include/alibabacloud/retailcloud/model/ListNodeLabelsResult.h + include/alibabacloud/retailcloud/model/ListPersistentVolumeRequest.h + include/alibabacloud/retailcloud/model/ListPersistentVolumeResult.h + include/alibabacloud/retailcloud/model/ListPersistentVolumeClaimRequest.h + include/alibabacloud/retailcloud/model/ListPersistentVolumeClaimResult.h + include/alibabacloud/retailcloud/model/ListPodsRequest.h + include/alibabacloud/retailcloud/model/ListPodsResult.h + include/alibabacloud/retailcloud/model/ListServicesRequest.h + include/alibabacloud/retailcloud/model/ListServicesResult.h + include/alibabacloud/retailcloud/model/ListSlbAPsRequest.h + include/alibabacloud/retailcloud/model/ListSlbAPsResult.h + include/alibabacloud/retailcloud/model/ListUsersRequest.h + include/alibabacloud/retailcloud/model/ListUsersResult.h + include/alibabacloud/retailcloud/model/ModifyServiceRequest.h + include/alibabacloud/retailcloud/model/ModifyServiceResult.h + include/alibabacloud/retailcloud/model/ModifySlbAPRequest.h + include/alibabacloud/retailcloud/model/ModifySlbAPResult.h + include/alibabacloud/retailcloud/model/QueryClusterDetailRequest.h + include/alibabacloud/retailcloud/model/QueryClusterDetailResult.h + include/alibabacloud/retailcloud/model/RemoveClusterNodeRequest.h + include/alibabacloud/retailcloud/model/RemoveClusterNodeResult.h + include/alibabacloud/retailcloud/model/ResourceStatusNotifyRequest.h + include/alibabacloud/retailcloud/model/ResourceStatusNotifyResult.h + include/alibabacloud/retailcloud/model/ResumeDeployRequest.h + include/alibabacloud/retailcloud/model/ResumeDeployResult.h + include/alibabacloud/retailcloud/model/ScaleAppRequest.h + include/alibabacloud/retailcloud/model/ScaleAppResult.h + include/alibabacloud/retailcloud/model/SetDeployPauseTypeRequest.h + include/alibabacloud/retailcloud/model/SetDeployPauseTypeResult.h + include/alibabacloud/retailcloud/model/UnbindNodeLabelRequest.h + include/alibabacloud/retailcloud/model/UnbindNodeLabelResult.h + include/alibabacloud/retailcloud/model/UpdateAppRequest.h + include/alibabacloud/retailcloud/model/UpdateAppResult.h + include/alibabacloud/retailcloud/model/UpdateDeployConfigRequest.h + include/alibabacloud/retailcloud/model/UpdateDeployConfigResult.h + include/alibabacloud/retailcloud/model/UpdateEnvironmentRequest.h + include/alibabacloud/retailcloud/model/UpdateEnvironmentResult.h ) + +set(retailcloud_src + src/RetailcloudClient.cc + src/model/AddClusterNodeRequest.cc + src/model/AddClusterNodeResult.cc + src/model/BatchAddServersRequest.cc + src/model/BatchAddServersResult.cc + src/model/BindNodeLabelRequest.cc + src/model/BindNodeLabelResult.cc + src/model/CloseDeployOrderRequest.cc + src/model/CloseDeployOrderResult.cc + src/model/CreateAppRequest.cc + src/model/CreateAppResult.cc + src/model/CreateAppResourceAllocRequest.cc + src/model/CreateAppResourceAllocResult.cc + src/model/CreateClusterRequest.cc + src/model/CreateClusterResult.cc + src/model/CreateDbRequest.cc + src/model/CreateDbResult.cc + src/model/CreateDeployConfigRequest.cc + src/model/CreateDeployConfigResult.cc + src/model/CreateEnvironmentRequest.cc + src/model/CreateEnvironmentResult.cc + src/model/CreateNodeLabelRequest.cc + src/model/CreateNodeLabelResult.cc + src/model/CreatePersistentVolumeRequest.cc + src/model/CreatePersistentVolumeResult.cc + src/model/CreatePersistentVolumeClaimRequest.cc + src/model/CreatePersistentVolumeClaimResult.cc + src/model/CreateServiceRequest.cc + src/model/CreateServiceResult.cc + src/model/CreateSlbAPRequest.cc + src/model/CreateSlbAPResult.cc + src/model/DeleteAppDetailRequest.cc + src/model/DeleteAppDetailResult.cc + src/model/DeleteAppEnvironmentRequest.cc + src/model/DeleteAppEnvironmentResult.cc + src/model/DeleteAppResourceAllocRequest.cc + src/model/DeleteAppResourceAllocResult.cc + src/model/DeleteClusterRequest.cc + src/model/DeleteClusterResult.cc + src/model/DeleteDatabaseRequest.cc + src/model/DeleteDatabaseResult.cc + src/model/DeleteDeployConfigRequest.cc + src/model/DeleteDeployConfigResult.cc + src/model/DeleteNodeLabelRequest.cc + src/model/DeleteNodeLabelResult.cc + src/model/DeletePersistentVolumeRequest.cc + src/model/DeletePersistentVolumeResult.cc + src/model/DeletePersistentVolumeClaimRequest.cc + src/model/DeletePersistentVolumeClaimResult.cc + src/model/DeleteRdsAccountRequest.cc + src/model/DeleteRdsAccountResult.cc + src/model/DeleteServiceRequest.cc + src/model/DeleteServiceResult.cc + src/model/DeleteSlbAPRequest.cc + src/model/DeleteSlbAPResult.cc + src/model/DeployAppRequest.cc + src/model/DeployAppResult.cc + src/model/DescribeAppDetailRequest.cc + src/model/DescribeAppDetailResult.cc + src/model/DescribeAppEnvironmentDetailRequest.cc + src/model/DescribeAppEnvironmentDetailResult.cc + src/model/DescribeAppResourceAllocRequest.cc + src/model/DescribeAppResourceAllocResult.cc + src/model/DescribeDatabasesRequest.cc + src/model/DescribeDatabasesResult.cc + src/model/DescribeDeployOrderDetailRequest.cc + src/model/DescribeDeployOrderDetailResult.cc + src/model/DescribePodEventsRequest.cc + src/model/DescribePodEventsResult.cc + src/model/DescribePodLogRequest.cc + src/model/DescribePodLogResult.cc + src/model/DescribeRdsAccountsRequest.cc + src/model/DescribeRdsAccountsResult.cc + src/model/DescribeServiceDetailRequest.cc + src/model/DescribeServiceDetailResult.cc + src/model/DescribeSlbAPDetailRequest.cc + src/model/DescribeSlbAPDetailResult.cc + src/model/GetInstTransInfoRequest.cc + src/model/GetInstTransInfoResult.cc + src/model/GetRdsBackUpRequest.cc + src/model/GetRdsBackUpResult.cc + src/model/GrantDbToAccountRequest.cc + src/model/GrantDbToAccountResult.cc + src/model/ListAppRequest.cc + src/model/ListAppResult.cc + src/model/ListAppCmsGroupsRequest.cc + src/model/ListAppCmsGroupsResult.cc + src/model/ListAppEnvironmentRequest.cc + src/model/ListAppEnvironmentResult.cc + src/model/ListAppInstanceRequest.cc + src/model/ListAppInstanceResult.cc + src/model/ListAppResourceAllocsRequest.cc + src/model/ListAppResourceAllocsResult.cc + src/model/ListAvailableClusterNodeRequest.cc + src/model/ListAvailableClusterNodeResult.cc + src/model/ListClusterRequest.cc + src/model/ListClusterResult.cc + src/model/ListClusterNodeRequest.cc + src/model/ListClusterNodeResult.cc + src/model/ListDeployConfigRequest.cc + src/model/ListDeployConfigResult.cc + src/model/ListDeployOrdersRequest.cc + src/model/ListDeployOrdersResult.cc + src/model/ListNodeLabelBindingsRequest.cc + src/model/ListNodeLabelBindingsResult.cc + src/model/ListNodeLabelsRequest.cc + src/model/ListNodeLabelsResult.cc + src/model/ListPersistentVolumeRequest.cc + src/model/ListPersistentVolumeResult.cc + src/model/ListPersistentVolumeClaimRequest.cc + src/model/ListPersistentVolumeClaimResult.cc + src/model/ListPodsRequest.cc + src/model/ListPodsResult.cc + src/model/ListServicesRequest.cc + src/model/ListServicesResult.cc + src/model/ListSlbAPsRequest.cc + src/model/ListSlbAPsResult.cc + src/model/ListUsersRequest.cc + src/model/ListUsersResult.cc + src/model/ModifyServiceRequest.cc + src/model/ModifyServiceResult.cc + src/model/ModifySlbAPRequest.cc + src/model/ModifySlbAPResult.cc + src/model/QueryClusterDetailRequest.cc + src/model/QueryClusterDetailResult.cc + src/model/RemoveClusterNodeRequest.cc + src/model/RemoveClusterNodeResult.cc + src/model/ResourceStatusNotifyRequest.cc + src/model/ResourceStatusNotifyResult.cc + src/model/ResumeDeployRequest.cc + src/model/ResumeDeployResult.cc + src/model/ScaleAppRequest.cc + src/model/ScaleAppResult.cc + src/model/SetDeployPauseTypeRequest.cc + src/model/SetDeployPauseTypeResult.cc + src/model/UnbindNodeLabelRequest.cc + src/model/UnbindNodeLabelResult.cc + src/model/UpdateAppRequest.cc + src/model/UpdateAppResult.cc + src/model/UpdateDeployConfigRequest.cc + src/model/UpdateDeployConfigResult.cc + src/model/UpdateEnvironmentRequest.cc + src/model/UpdateEnvironmentResult.cc ) + +add_library(retailcloud ${LIB_TYPE} + ${retailcloud_public_header} + ${retailcloud_public_header_model} + ${retailcloud_src}) + +set_target_properties(retailcloud + 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}retailcloud + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(retailcloud + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_RETAILCLOUD_LIBRARY) +endif() + +target_include_directories(retailcloud + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(retailcloud + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(retailcloud + jsoncpp) + target_include_directories(retailcloud + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(retailcloud + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(retailcloud + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(retailcloud + PRIVATE /usr/include/jsoncpp) + target_link_libraries(retailcloud + jsoncpp) +endif() + +install(FILES ${retailcloud_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/retailcloud) +install(FILES ${retailcloud_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/retailcloud/model) +install(TARGETS retailcloud + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/RetailcloudClient.h b/retailcloud/include/alibabacloud/retailcloud/RetailcloudClient.h new file mode 100644 index 000000000..3e940f42e --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/RetailcloudClient.h @@ -0,0 +1,614 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_RETAILCLOUDCLIENT_H_ +#define ALIBABACLOUD_RETAILCLOUD_RETAILCLOUDCLIENT_H_ + +#include +#include +#include +#include +#include "RetailcloudExport.h" +#include "model/AddClusterNodeRequest.h" +#include "model/AddClusterNodeResult.h" +#include "model/BatchAddServersRequest.h" +#include "model/BatchAddServersResult.h" +#include "model/BindNodeLabelRequest.h" +#include "model/BindNodeLabelResult.h" +#include "model/CloseDeployOrderRequest.h" +#include "model/CloseDeployOrderResult.h" +#include "model/CreateAppRequest.h" +#include "model/CreateAppResult.h" +#include "model/CreateAppResourceAllocRequest.h" +#include "model/CreateAppResourceAllocResult.h" +#include "model/CreateClusterRequest.h" +#include "model/CreateClusterResult.h" +#include "model/CreateDbRequest.h" +#include "model/CreateDbResult.h" +#include "model/CreateDeployConfigRequest.h" +#include "model/CreateDeployConfigResult.h" +#include "model/CreateEnvironmentRequest.h" +#include "model/CreateEnvironmentResult.h" +#include "model/CreateNodeLabelRequest.h" +#include "model/CreateNodeLabelResult.h" +#include "model/CreatePersistentVolumeRequest.h" +#include "model/CreatePersistentVolumeResult.h" +#include "model/CreatePersistentVolumeClaimRequest.h" +#include "model/CreatePersistentVolumeClaimResult.h" +#include "model/CreateServiceRequest.h" +#include "model/CreateServiceResult.h" +#include "model/CreateSlbAPRequest.h" +#include "model/CreateSlbAPResult.h" +#include "model/DeleteAppDetailRequest.h" +#include "model/DeleteAppDetailResult.h" +#include "model/DeleteAppEnvironmentRequest.h" +#include "model/DeleteAppEnvironmentResult.h" +#include "model/DeleteAppResourceAllocRequest.h" +#include "model/DeleteAppResourceAllocResult.h" +#include "model/DeleteClusterRequest.h" +#include "model/DeleteClusterResult.h" +#include "model/DeleteDatabaseRequest.h" +#include "model/DeleteDatabaseResult.h" +#include "model/DeleteDeployConfigRequest.h" +#include "model/DeleteDeployConfigResult.h" +#include "model/DeleteNodeLabelRequest.h" +#include "model/DeleteNodeLabelResult.h" +#include "model/DeletePersistentVolumeRequest.h" +#include "model/DeletePersistentVolumeResult.h" +#include "model/DeletePersistentVolumeClaimRequest.h" +#include "model/DeletePersistentVolumeClaimResult.h" +#include "model/DeleteRdsAccountRequest.h" +#include "model/DeleteRdsAccountResult.h" +#include "model/DeleteServiceRequest.h" +#include "model/DeleteServiceResult.h" +#include "model/DeleteSlbAPRequest.h" +#include "model/DeleteSlbAPResult.h" +#include "model/DeployAppRequest.h" +#include "model/DeployAppResult.h" +#include "model/DescribeAppDetailRequest.h" +#include "model/DescribeAppDetailResult.h" +#include "model/DescribeAppEnvironmentDetailRequest.h" +#include "model/DescribeAppEnvironmentDetailResult.h" +#include "model/DescribeAppResourceAllocRequest.h" +#include "model/DescribeAppResourceAllocResult.h" +#include "model/DescribeDatabasesRequest.h" +#include "model/DescribeDatabasesResult.h" +#include "model/DescribeDeployOrderDetailRequest.h" +#include "model/DescribeDeployOrderDetailResult.h" +#include "model/DescribePodEventsRequest.h" +#include "model/DescribePodEventsResult.h" +#include "model/DescribePodLogRequest.h" +#include "model/DescribePodLogResult.h" +#include "model/DescribeRdsAccountsRequest.h" +#include "model/DescribeRdsAccountsResult.h" +#include "model/DescribeServiceDetailRequest.h" +#include "model/DescribeServiceDetailResult.h" +#include "model/DescribeSlbAPDetailRequest.h" +#include "model/DescribeSlbAPDetailResult.h" +#include "model/GetInstTransInfoRequest.h" +#include "model/GetInstTransInfoResult.h" +#include "model/GetRdsBackUpRequest.h" +#include "model/GetRdsBackUpResult.h" +#include "model/GrantDbToAccountRequest.h" +#include "model/GrantDbToAccountResult.h" +#include "model/ListAppRequest.h" +#include "model/ListAppResult.h" +#include "model/ListAppCmsGroupsRequest.h" +#include "model/ListAppCmsGroupsResult.h" +#include "model/ListAppEnvironmentRequest.h" +#include "model/ListAppEnvironmentResult.h" +#include "model/ListAppInstanceRequest.h" +#include "model/ListAppInstanceResult.h" +#include "model/ListAppResourceAllocsRequest.h" +#include "model/ListAppResourceAllocsResult.h" +#include "model/ListAvailableClusterNodeRequest.h" +#include "model/ListAvailableClusterNodeResult.h" +#include "model/ListClusterRequest.h" +#include "model/ListClusterResult.h" +#include "model/ListClusterNodeRequest.h" +#include "model/ListClusterNodeResult.h" +#include "model/ListDeployConfigRequest.h" +#include "model/ListDeployConfigResult.h" +#include "model/ListDeployOrdersRequest.h" +#include "model/ListDeployOrdersResult.h" +#include "model/ListNodeLabelBindingsRequest.h" +#include "model/ListNodeLabelBindingsResult.h" +#include "model/ListNodeLabelsRequest.h" +#include "model/ListNodeLabelsResult.h" +#include "model/ListPersistentVolumeRequest.h" +#include "model/ListPersistentVolumeResult.h" +#include "model/ListPersistentVolumeClaimRequest.h" +#include "model/ListPersistentVolumeClaimResult.h" +#include "model/ListPodsRequest.h" +#include "model/ListPodsResult.h" +#include "model/ListServicesRequest.h" +#include "model/ListServicesResult.h" +#include "model/ListSlbAPsRequest.h" +#include "model/ListSlbAPsResult.h" +#include "model/ListUsersRequest.h" +#include "model/ListUsersResult.h" +#include "model/ModifyServiceRequest.h" +#include "model/ModifyServiceResult.h" +#include "model/ModifySlbAPRequest.h" +#include "model/ModifySlbAPResult.h" +#include "model/QueryClusterDetailRequest.h" +#include "model/QueryClusterDetailResult.h" +#include "model/RemoveClusterNodeRequest.h" +#include "model/RemoveClusterNodeResult.h" +#include "model/ResourceStatusNotifyRequest.h" +#include "model/ResourceStatusNotifyResult.h" +#include "model/ResumeDeployRequest.h" +#include "model/ResumeDeployResult.h" +#include "model/ScaleAppRequest.h" +#include "model/ScaleAppResult.h" +#include "model/SetDeployPauseTypeRequest.h" +#include "model/SetDeployPauseTypeResult.h" +#include "model/UnbindNodeLabelRequest.h" +#include "model/UnbindNodeLabelResult.h" +#include "model/UpdateAppRequest.h" +#include "model/UpdateAppResult.h" +#include "model/UpdateDeployConfigRequest.h" +#include "model/UpdateDeployConfigResult.h" +#include "model/UpdateEnvironmentRequest.h" +#include "model/UpdateEnvironmentResult.h" + + +namespace AlibabaCloud +{ + namespace Retailcloud + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT RetailcloudClient : public RpcServiceClient + { + public: + typedef Outcome AddClusterNodeOutcome; + typedef std::future AddClusterNodeOutcomeCallable; + typedef std::function&)> AddClusterNodeAsyncHandler; + typedef Outcome BatchAddServersOutcome; + typedef std::future BatchAddServersOutcomeCallable; + typedef std::function&)> BatchAddServersAsyncHandler; + typedef Outcome BindNodeLabelOutcome; + typedef std::future BindNodeLabelOutcomeCallable; + typedef std::function&)> BindNodeLabelAsyncHandler; + typedef Outcome CloseDeployOrderOutcome; + typedef std::future CloseDeployOrderOutcomeCallable; + typedef std::function&)> CloseDeployOrderAsyncHandler; + typedef Outcome CreateAppOutcome; + typedef std::future CreateAppOutcomeCallable; + typedef std::function&)> CreateAppAsyncHandler; + typedef Outcome CreateAppResourceAllocOutcome; + typedef std::future CreateAppResourceAllocOutcomeCallable; + typedef std::function&)> CreateAppResourceAllocAsyncHandler; + typedef Outcome CreateClusterOutcome; + typedef std::future CreateClusterOutcomeCallable; + typedef std::function&)> CreateClusterAsyncHandler; + typedef Outcome CreateDbOutcome; + typedef std::future CreateDbOutcomeCallable; + typedef std::function&)> CreateDbAsyncHandler; + typedef Outcome CreateDeployConfigOutcome; + typedef std::future CreateDeployConfigOutcomeCallable; + typedef std::function&)> CreateDeployConfigAsyncHandler; + typedef Outcome CreateEnvironmentOutcome; + typedef std::future CreateEnvironmentOutcomeCallable; + typedef std::function&)> CreateEnvironmentAsyncHandler; + typedef Outcome CreateNodeLabelOutcome; + typedef std::future CreateNodeLabelOutcomeCallable; + typedef std::function&)> CreateNodeLabelAsyncHandler; + typedef Outcome CreatePersistentVolumeOutcome; + typedef std::future CreatePersistentVolumeOutcomeCallable; + typedef std::function&)> CreatePersistentVolumeAsyncHandler; + typedef Outcome CreatePersistentVolumeClaimOutcome; + typedef std::future CreatePersistentVolumeClaimOutcomeCallable; + typedef std::function&)> CreatePersistentVolumeClaimAsyncHandler; + typedef Outcome CreateServiceOutcome; + typedef std::future CreateServiceOutcomeCallable; + typedef std::function&)> CreateServiceAsyncHandler; + typedef Outcome CreateSlbAPOutcome; + typedef std::future CreateSlbAPOutcomeCallable; + typedef std::function&)> CreateSlbAPAsyncHandler; + typedef Outcome DeleteAppDetailOutcome; + typedef std::future DeleteAppDetailOutcomeCallable; + typedef std::function&)> DeleteAppDetailAsyncHandler; + typedef Outcome DeleteAppEnvironmentOutcome; + typedef std::future DeleteAppEnvironmentOutcomeCallable; + typedef std::function&)> DeleteAppEnvironmentAsyncHandler; + typedef Outcome DeleteAppResourceAllocOutcome; + typedef std::future DeleteAppResourceAllocOutcomeCallable; + typedef std::function&)> DeleteAppResourceAllocAsyncHandler; + typedef Outcome DeleteClusterOutcome; + typedef std::future DeleteClusterOutcomeCallable; + typedef std::function&)> DeleteClusterAsyncHandler; + typedef Outcome DeleteDatabaseOutcome; + typedef std::future DeleteDatabaseOutcomeCallable; + typedef std::function&)> DeleteDatabaseAsyncHandler; + typedef Outcome DeleteDeployConfigOutcome; + typedef std::future DeleteDeployConfigOutcomeCallable; + typedef std::function&)> DeleteDeployConfigAsyncHandler; + typedef Outcome DeleteNodeLabelOutcome; + typedef std::future DeleteNodeLabelOutcomeCallable; + typedef std::function&)> DeleteNodeLabelAsyncHandler; + typedef Outcome DeletePersistentVolumeOutcome; + typedef std::future DeletePersistentVolumeOutcomeCallable; + typedef std::function&)> DeletePersistentVolumeAsyncHandler; + typedef Outcome DeletePersistentVolumeClaimOutcome; + typedef std::future DeletePersistentVolumeClaimOutcomeCallable; + typedef std::function&)> DeletePersistentVolumeClaimAsyncHandler; + typedef Outcome DeleteRdsAccountOutcome; + typedef std::future DeleteRdsAccountOutcomeCallable; + typedef std::function&)> DeleteRdsAccountAsyncHandler; + typedef Outcome DeleteServiceOutcome; + typedef std::future DeleteServiceOutcomeCallable; + typedef std::function&)> DeleteServiceAsyncHandler; + typedef Outcome DeleteSlbAPOutcome; + typedef std::future DeleteSlbAPOutcomeCallable; + typedef std::function&)> DeleteSlbAPAsyncHandler; + typedef Outcome DeployAppOutcome; + typedef std::future DeployAppOutcomeCallable; + typedef std::function&)> DeployAppAsyncHandler; + typedef Outcome DescribeAppDetailOutcome; + typedef std::future DescribeAppDetailOutcomeCallable; + typedef std::function&)> DescribeAppDetailAsyncHandler; + typedef Outcome DescribeAppEnvironmentDetailOutcome; + typedef std::future DescribeAppEnvironmentDetailOutcomeCallable; + typedef std::function&)> DescribeAppEnvironmentDetailAsyncHandler; + typedef Outcome DescribeAppResourceAllocOutcome; + typedef std::future DescribeAppResourceAllocOutcomeCallable; + typedef std::function&)> DescribeAppResourceAllocAsyncHandler; + typedef Outcome DescribeDatabasesOutcome; + typedef std::future DescribeDatabasesOutcomeCallable; + typedef std::function&)> DescribeDatabasesAsyncHandler; + typedef Outcome DescribeDeployOrderDetailOutcome; + typedef std::future DescribeDeployOrderDetailOutcomeCallable; + typedef std::function&)> DescribeDeployOrderDetailAsyncHandler; + typedef Outcome DescribePodEventsOutcome; + typedef std::future DescribePodEventsOutcomeCallable; + typedef std::function&)> DescribePodEventsAsyncHandler; + typedef Outcome DescribePodLogOutcome; + typedef std::future DescribePodLogOutcomeCallable; + typedef std::function&)> DescribePodLogAsyncHandler; + typedef Outcome DescribeRdsAccountsOutcome; + typedef std::future DescribeRdsAccountsOutcomeCallable; + typedef std::function&)> DescribeRdsAccountsAsyncHandler; + typedef Outcome DescribeServiceDetailOutcome; + typedef std::future DescribeServiceDetailOutcomeCallable; + typedef std::function&)> DescribeServiceDetailAsyncHandler; + typedef Outcome DescribeSlbAPDetailOutcome; + typedef std::future DescribeSlbAPDetailOutcomeCallable; + typedef std::function&)> DescribeSlbAPDetailAsyncHandler; + typedef Outcome GetInstTransInfoOutcome; + typedef std::future GetInstTransInfoOutcomeCallable; + typedef std::function&)> GetInstTransInfoAsyncHandler; + typedef Outcome GetRdsBackUpOutcome; + typedef std::future GetRdsBackUpOutcomeCallable; + typedef std::function&)> GetRdsBackUpAsyncHandler; + typedef Outcome GrantDbToAccountOutcome; + typedef std::future GrantDbToAccountOutcomeCallable; + typedef std::function&)> GrantDbToAccountAsyncHandler; + typedef Outcome ListAppOutcome; + typedef std::future ListAppOutcomeCallable; + typedef std::function&)> ListAppAsyncHandler; + typedef Outcome ListAppCmsGroupsOutcome; + typedef std::future ListAppCmsGroupsOutcomeCallable; + typedef std::function&)> ListAppCmsGroupsAsyncHandler; + typedef Outcome ListAppEnvironmentOutcome; + typedef std::future ListAppEnvironmentOutcomeCallable; + typedef std::function&)> ListAppEnvironmentAsyncHandler; + typedef Outcome ListAppInstanceOutcome; + typedef std::future ListAppInstanceOutcomeCallable; + typedef std::function&)> ListAppInstanceAsyncHandler; + typedef Outcome ListAppResourceAllocsOutcome; + typedef std::future ListAppResourceAllocsOutcomeCallable; + typedef std::function&)> ListAppResourceAllocsAsyncHandler; + typedef Outcome ListAvailableClusterNodeOutcome; + typedef std::future ListAvailableClusterNodeOutcomeCallable; + typedef std::function&)> ListAvailableClusterNodeAsyncHandler; + typedef Outcome ListClusterOutcome; + typedef std::future ListClusterOutcomeCallable; + typedef std::function&)> ListClusterAsyncHandler; + typedef Outcome ListClusterNodeOutcome; + typedef std::future ListClusterNodeOutcomeCallable; + typedef std::function&)> ListClusterNodeAsyncHandler; + typedef Outcome ListDeployConfigOutcome; + typedef std::future ListDeployConfigOutcomeCallable; + typedef std::function&)> ListDeployConfigAsyncHandler; + typedef Outcome ListDeployOrdersOutcome; + typedef std::future ListDeployOrdersOutcomeCallable; + typedef std::function&)> ListDeployOrdersAsyncHandler; + typedef Outcome ListNodeLabelBindingsOutcome; + typedef std::future ListNodeLabelBindingsOutcomeCallable; + typedef std::function&)> ListNodeLabelBindingsAsyncHandler; + typedef Outcome ListNodeLabelsOutcome; + typedef std::future ListNodeLabelsOutcomeCallable; + typedef std::function&)> ListNodeLabelsAsyncHandler; + typedef Outcome ListPersistentVolumeOutcome; + typedef std::future ListPersistentVolumeOutcomeCallable; + typedef std::function&)> ListPersistentVolumeAsyncHandler; + typedef Outcome ListPersistentVolumeClaimOutcome; + typedef std::future ListPersistentVolumeClaimOutcomeCallable; + typedef std::function&)> ListPersistentVolumeClaimAsyncHandler; + typedef Outcome ListPodsOutcome; + typedef std::future ListPodsOutcomeCallable; + typedef std::function&)> ListPodsAsyncHandler; + typedef Outcome ListServicesOutcome; + typedef std::future ListServicesOutcomeCallable; + typedef std::function&)> ListServicesAsyncHandler; + typedef Outcome ListSlbAPsOutcome; + typedef std::future ListSlbAPsOutcomeCallable; + typedef std::function&)> ListSlbAPsAsyncHandler; + typedef Outcome ListUsersOutcome; + typedef std::future ListUsersOutcomeCallable; + typedef std::function&)> ListUsersAsyncHandler; + typedef Outcome ModifyServiceOutcome; + typedef std::future ModifyServiceOutcomeCallable; + typedef std::function&)> ModifyServiceAsyncHandler; + typedef Outcome ModifySlbAPOutcome; + typedef std::future ModifySlbAPOutcomeCallable; + typedef std::function&)> ModifySlbAPAsyncHandler; + typedef Outcome QueryClusterDetailOutcome; + typedef std::future QueryClusterDetailOutcomeCallable; + typedef std::function&)> QueryClusterDetailAsyncHandler; + typedef Outcome RemoveClusterNodeOutcome; + typedef std::future RemoveClusterNodeOutcomeCallable; + typedef std::function&)> RemoveClusterNodeAsyncHandler; + typedef Outcome ResourceStatusNotifyOutcome; + typedef std::future ResourceStatusNotifyOutcomeCallable; + typedef std::function&)> ResourceStatusNotifyAsyncHandler; + typedef Outcome ResumeDeployOutcome; + typedef std::future ResumeDeployOutcomeCallable; + typedef std::function&)> ResumeDeployAsyncHandler; + typedef Outcome ScaleAppOutcome; + typedef std::future ScaleAppOutcomeCallable; + typedef std::function&)> ScaleAppAsyncHandler; + typedef Outcome SetDeployPauseTypeOutcome; + typedef std::future SetDeployPauseTypeOutcomeCallable; + typedef std::function&)> SetDeployPauseTypeAsyncHandler; + typedef Outcome UnbindNodeLabelOutcome; + typedef std::future UnbindNodeLabelOutcomeCallable; + typedef std::function&)> UnbindNodeLabelAsyncHandler; + typedef Outcome UpdateAppOutcome; + typedef std::future UpdateAppOutcomeCallable; + typedef std::function&)> UpdateAppAsyncHandler; + typedef Outcome UpdateDeployConfigOutcome; + typedef std::future UpdateDeployConfigOutcomeCallable; + typedef std::function&)> UpdateDeployConfigAsyncHandler; + typedef Outcome UpdateEnvironmentOutcome; + typedef std::future UpdateEnvironmentOutcomeCallable; + typedef std::function&)> UpdateEnvironmentAsyncHandler; + + RetailcloudClient(const Credentials &credentials, const ClientConfiguration &configuration); + RetailcloudClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + RetailcloudClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~RetailcloudClient(); + AddClusterNodeOutcome addClusterNode(const Model::AddClusterNodeRequest &request)const; + void addClusterNodeAsync(const Model::AddClusterNodeRequest& request, const AddClusterNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddClusterNodeOutcomeCallable addClusterNodeCallable(const Model::AddClusterNodeRequest& request) const; + BatchAddServersOutcome batchAddServers(const Model::BatchAddServersRequest &request)const; + void batchAddServersAsync(const Model::BatchAddServersRequest& request, const BatchAddServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchAddServersOutcomeCallable batchAddServersCallable(const Model::BatchAddServersRequest& request) const; + BindNodeLabelOutcome bindNodeLabel(const Model::BindNodeLabelRequest &request)const; + void bindNodeLabelAsync(const Model::BindNodeLabelRequest& request, const BindNodeLabelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindNodeLabelOutcomeCallable bindNodeLabelCallable(const Model::BindNodeLabelRequest& request) const; + CloseDeployOrderOutcome closeDeployOrder(const Model::CloseDeployOrderRequest &request)const; + void closeDeployOrderAsync(const Model::CloseDeployOrderRequest& request, const CloseDeployOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CloseDeployOrderOutcomeCallable closeDeployOrderCallable(const Model::CloseDeployOrderRequest& request) const; + CreateAppOutcome createApp(const Model::CreateAppRequest &request)const; + void createAppAsync(const Model::CreateAppRequest& request, const CreateAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAppOutcomeCallable createAppCallable(const Model::CreateAppRequest& request) const; + CreateAppResourceAllocOutcome createAppResourceAlloc(const Model::CreateAppResourceAllocRequest &request)const; + void createAppResourceAllocAsync(const Model::CreateAppResourceAllocRequest& request, const CreateAppResourceAllocAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAppResourceAllocOutcomeCallable createAppResourceAllocCallable(const Model::CreateAppResourceAllocRequest& request) const; + CreateClusterOutcome createCluster(const Model::CreateClusterRequest &request)const; + void createClusterAsync(const Model::CreateClusterRequest& request, const CreateClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateClusterOutcomeCallable createClusterCallable(const Model::CreateClusterRequest& request) const; + CreateDbOutcome createDb(const Model::CreateDbRequest &request)const; + void createDbAsync(const Model::CreateDbRequest& request, const CreateDbAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDbOutcomeCallable createDbCallable(const Model::CreateDbRequest& request) const; + CreateDeployConfigOutcome createDeployConfig(const Model::CreateDeployConfigRequest &request)const; + void createDeployConfigAsync(const Model::CreateDeployConfigRequest& request, const CreateDeployConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDeployConfigOutcomeCallable createDeployConfigCallable(const Model::CreateDeployConfigRequest& request) const; + CreateEnvironmentOutcome createEnvironment(const Model::CreateEnvironmentRequest &request)const; + void createEnvironmentAsync(const Model::CreateEnvironmentRequest& request, const CreateEnvironmentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateEnvironmentOutcomeCallable createEnvironmentCallable(const Model::CreateEnvironmentRequest& request) const; + CreateNodeLabelOutcome createNodeLabel(const Model::CreateNodeLabelRequest &request)const; + void createNodeLabelAsync(const Model::CreateNodeLabelRequest& request, const CreateNodeLabelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNodeLabelOutcomeCallable createNodeLabelCallable(const Model::CreateNodeLabelRequest& request) const; + CreatePersistentVolumeOutcome createPersistentVolume(const Model::CreatePersistentVolumeRequest &request)const; + void createPersistentVolumeAsync(const Model::CreatePersistentVolumeRequest& request, const CreatePersistentVolumeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePersistentVolumeOutcomeCallable createPersistentVolumeCallable(const Model::CreatePersistentVolumeRequest& request) const; + CreatePersistentVolumeClaimOutcome createPersistentVolumeClaim(const Model::CreatePersistentVolumeClaimRequest &request)const; + void createPersistentVolumeClaimAsync(const Model::CreatePersistentVolumeClaimRequest& request, const CreatePersistentVolumeClaimAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePersistentVolumeClaimOutcomeCallable createPersistentVolumeClaimCallable(const Model::CreatePersistentVolumeClaimRequest& request) const; + CreateServiceOutcome createService(const Model::CreateServiceRequest &request)const; + void createServiceAsync(const Model::CreateServiceRequest& request, const CreateServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateServiceOutcomeCallable createServiceCallable(const Model::CreateServiceRequest& request) const; + CreateSlbAPOutcome createSlbAP(const Model::CreateSlbAPRequest &request)const; + void createSlbAPAsync(const Model::CreateSlbAPRequest& request, const CreateSlbAPAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSlbAPOutcomeCallable createSlbAPCallable(const Model::CreateSlbAPRequest& request) const; + DeleteAppDetailOutcome deleteAppDetail(const Model::DeleteAppDetailRequest &request)const; + void deleteAppDetailAsync(const Model::DeleteAppDetailRequest& request, const DeleteAppDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAppDetailOutcomeCallable deleteAppDetailCallable(const Model::DeleteAppDetailRequest& request) const; + DeleteAppEnvironmentOutcome deleteAppEnvironment(const Model::DeleteAppEnvironmentRequest &request)const; + void deleteAppEnvironmentAsync(const Model::DeleteAppEnvironmentRequest& request, const DeleteAppEnvironmentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAppEnvironmentOutcomeCallable deleteAppEnvironmentCallable(const Model::DeleteAppEnvironmentRequest& request) const; + DeleteAppResourceAllocOutcome deleteAppResourceAlloc(const Model::DeleteAppResourceAllocRequest &request)const; + void deleteAppResourceAllocAsync(const Model::DeleteAppResourceAllocRequest& request, const DeleteAppResourceAllocAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAppResourceAllocOutcomeCallable deleteAppResourceAllocCallable(const Model::DeleteAppResourceAllocRequest& request) const; + DeleteClusterOutcome deleteCluster(const Model::DeleteClusterRequest &request)const; + void deleteClusterAsync(const Model::DeleteClusterRequest& request, const DeleteClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteClusterOutcomeCallable deleteClusterCallable(const Model::DeleteClusterRequest& request) const; + DeleteDatabaseOutcome deleteDatabase(const Model::DeleteDatabaseRequest &request)const; + void deleteDatabaseAsync(const Model::DeleteDatabaseRequest& request, const DeleteDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDatabaseOutcomeCallable deleteDatabaseCallable(const Model::DeleteDatabaseRequest& request) const; + DeleteDeployConfigOutcome deleteDeployConfig(const Model::DeleteDeployConfigRequest &request)const; + void deleteDeployConfigAsync(const Model::DeleteDeployConfigRequest& request, const DeleteDeployConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDeployConfigOutcomeCallable deleteDeployConfigCallable(const Model::DeleteDeployConfigRequest& request) const; + DeleteNodeLabelOutcome deleteNodeLabel(const Model::DeleteNodeLabelRequest &request)const; + void deleteNodeLabelAsync(const Model::DeleteNodeLabelRequest& request, const DeleteNodeLabelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNodeLabelOutcomeCallable deleteNodeLabelCallable(const Model::DeleteNodeLabelRequest& request) const; + DeletePersistentVolumeOutcome deletePersistentVolume(const Model::DeletePersistentVolumeRequest &request)const; + void deletePersistentVolumeAsync(const Model::DeletePersistentVolumeRequest& request, const DeletePersistentVolumeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePersistentVolumeOutcomeCallable deletePersistentVolumeCallable(const Model::DeletePersistentVolumeRequest& request) const; + DeletePersistentVolumeClaimOutcome deletePersistentVolumeClaim(const Model::DeletePersistentVolumeClaimRequest &request)const; + void deletePersistentVolumeClaimAsync(const Model::DeletePersistentVolumeClaimRequest& request, const DeletePersistentVolumeClaimAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePersistentVolumeClaimOutcomeCallable deletePersistentVolumeClaimCallable(const Model::DeletePersistentVolumeClaimRequest& request) const; + DeleteRdsAccountOutcome deleteRdsAccount(const Model::DeleteRdsAccountRequest &request)const; + void deleteRdsAccountAsync(const Model::DeleteRdsAccountRequest& request, const DeleteRdsAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRdsAccountOutcomeCallable deleteRdsAccountCallable(const Model::DeleteRdsAccountRequest& request) const; + DeleteServiceOutcome deleteService(const Model::DeleteServiceRequest &request)const; + void deleteServiceAsync(const Model::DeleteServiceRequest& request, const DeleteServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteServiceOutcomeCallable deleteServiceCallable(const Model::DeleteServiceRequest& request) const; + DeleteSlbAPOutcome deleteSlbAP(const Model::DeleteSlbAPRequest &request)const; + void deleteSlbAPAsync(const Model::DeleteSlbAPRequest& request, const DeleteSlbAPAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSlbAPOutcomeCallable deleteSlbAPCallable(const Model::DeleteSlbAPRequest& request) const; + DeployAppOutcome deployApp(const Model::DeployAppRequest &request)const; + void deployAppAsync(const Model::DeployAppRequest& request, const DeployAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeployAppOutcomeCallable deployAppCallable(const Model::DeployAppRequest& request) const; + DescribeAppDetailOutcome describeAppDetail(const Model::DescribeAppDetailRequest &request)const; + void describeAppDetailAsync(const Model::DescribeAppDetailRequest& request, const DescribeAppDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAppDetailOutcomeCallable describeAppDetailCallable(const Model::DescribeAppDetailRequest& request) const; + DescribeAppEnvironmentDetailOutcome describeAppEnvironmentDetail(const Model::DescribeAppEnvironmentDetailRequest &request)const; + void describeAppEnvironmentDetailAsync(const Model::DescribeAppEnvironmentDetailRequest& request, const DescribeAppEnvironmentDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAppEnvironmentDetailOutcomeCallable describeAppEnvironmentDetailCallable(const Model::DescribeAppEnvironmentDetailRequest& request) const; + DescribeAppResourceAllocOutcome describeAppResourceAlloc(const Model::DescribeAppResourceAllocRequest &request)const; + void describeAppResourceAllocAsync(const Model::DescribeAppResourceAllocRequest& request, const DescribeAppResourceAllocAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAppResourceAllocOutcomeCallable describeAppResourceAllocCallable(const Model::DescribeAppResourceAllocRequest& request) const; + DescribeDatabasesOutcome describeDatabases(const Model::DescribeDatabasesRequest &request)const; + void describeDatabasesAsync(const Model::DescribeDatabasesRequest& request, const DescribeDatabasesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDatabasesOutcomeCallable describeDatabasesCallable(const Model::DescribeDatabasesRequest& request) const; + DescribeDeployOrderDetailOutcome describeDeployOrderDetail(const Model::DescribeDeployOrderDetailRequest &request)const; + void describeDeployOrderDetailAsync(const Model::DescribeDeployOrderDetailRequest& request, const DescribeDeployOrderDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDeployOrderDetailOutcomeCallable describeDeployOrderDetailCallable(const Model::DescribeDeployOrderDetailRequest& request) const; + DescribePodEventsOutcome describePodEvents(const Model::DescribePodEventsRequest &request)const; + void describePodEventsAsync(const Model::DescribePodEventsRequest& request, const DescribePodEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePodEventsOutcomeCallable describePodEventsCallable(const Model::DescribePodEventsRequest& request) const; + DescribePodLogOutcome describePodLog(const Model::DescribePodLogRequest &request)const; + void describePodLogAsync(const Model::DescribePodLogRequest& request, const DescribePodLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePodLogOutcomeCallable describePodLogCallable(const Model::DescribePodLogRequest& request) const; + DescribeRdsAccountsOutcome describeRdsAccounts(const Model::DescribeRdsAccountsRequest &request)const; + void describeRdsAccountsAsync(const Model::DescribeRdsAccountsRequest& request, const DescribeRdsAccountsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRdsAccountsOutcomeCallable describeRdsAccountsCallable(const Model::DescribeRdsAccountsRequest& request) const; + DescribeServiceDetailOutcome describeServiceDetail(const Model::DescribeServiceDetailRequest &request)const; + void describeServiceDetailAsync(const Model::DescribeServiceDetailRequest& request, const DescribeServiceDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeServiceDetailOutcomeCallable describeServiceDetailCallable(const Model::DescribeServiceDetailRequest& request) const; + DescribeSlbAPDetailOutcome describeSlbAPDetail(const Model::DescribeSlbAPDetailRequest &request)const; + void describeSlbAPDetailAsync(const Model::DescribeSlbAPDetailRequest& request, const DescribeSlbAPDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSlbAPDetailOutcomeCallable describeSlbAPDetailCallable(const Model::DescribeSlbAPDetailRequest& request) const; + GetInstTransInfoOutcome getInstTransInfo(const Model::GetInstTransInfoRequest &request)const; + void getInstTransInfoAsync(const Model::GetInstTransInfoRequest& request, const GetInstTransInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetInstTransInfoOutcomeCallable getInstTransInfoCallable(const Model::GetInstTransInfoRequest& request) const; + GetRdsBackUpOutcome getRdsBackUp(const Model::GetRdsBackUpRequest &request)const; + void getRdsBackUpAsync(const Model::GetRdsBackUpRequest& request, const GetRdsBackUpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetRdsBackUpOutcomeCallable getRdsBackUpCallable(const Model::GetRdsBackUpRequest& request) const; + GrantDbToAccountOutcome grantDbToAccount(const Model::GrantDbToAccountRequest &request)const; + void grantDbToAccountAsync(const Model::GrantDbToAccountRequest& request, const GrantDbToAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GrantDbToAccountOutcomeCallable grantDbToAccountCallable(const Model::GrantDbToAccountRequest& request) const; + ListAppOutcome listApp(const Model::ListAppRequest &request)const; + void listAppAsync(const Model::ListAppRequest& request, const ListAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAppOutcomeCallable listAppCallable(const Model::ListAppRequest& request) const; + ListAppCmsGroupsOutcome listAppCmsGroups(const Model::ListAppCmsGroupsRequest &request)const; + void listAppCmsGroupsAsync(const Model::ListAppCmsGroupsRequest& request, const ListAppCmsGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAppCmsGroupsOutcomeCallable listAppCmsGroupsCallable(const Model::ListAppCmsGroupsRequest& request) const; + ListAppEnvironmentOutcome listAppEnvironment(const Model::ListAppEnvironmentRequest &request)const; + void listAppEnvironmentAsync(const Model::ListAppEnvironmentRequest& request, const ListAppEnvironmentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAppEnvironmentOutcomeCallable listAppEnvironmentCallable(const Model::ListAppEnvironmentRequest& request) const; + ListAppInstanceOutcome listAppInstance(const Model::ListAppInstanceRequest &request)const; + void listAppInstanceAsync(const Model::ListAppInstanceRequest& request, const ListAppInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAppInstanceOutcomeCallable listAppInstanceCallable(const Model::ListAppInstanceRequest& request) const; + ListAppResourceAllocsOutcome listAppResourceAllocs(const Model::ListAppResourceAllocsRequest &request)const; + void listAppResourceAllocsAsync(const Model::ListAppResourceAllocsRequest& request, const ListAppResourceAllocsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAppResourceAllocsOutcomeCallable listAppResourceAllocsCallable(const Model::ListAppResourceAllocsRequest& request) const; + ListAvailableClusterNodeOutcome listAvailableClusterNode(const Model::ListAvailableClusterNodeRequest &request)const; + void listAvailableClusterNodeAsync(const Model::ListAvailableClusterNodeRequest& request, const ListAvailableClusterNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAvailableClusterNodeOutcomeCallable listAvailableClusterNodeCallable(const Model::ListAvailableClusterNodeRequest& request) const; + ListClusterOutcome listCluster(const Model::ListClusterRequest &request)const; + void listClusterAsync(const Model::ListClusterRequest& request, const ListClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClusterOutcomeCallable listClusterCallable(const Model::ListClusterRequest& request) const; + ListClusterNodeOutcome listClusterNode(const Model::ListClusterNodeRequest &request)const; + void listClusterNodeAsync(const Model::ListClusterNodeRequest& request, const ListClusterNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClusterNodeOutcomeCallable listClusterNodeCallable(const Model::ListClusterNodeRequest& request) const; + ListDeployConfigOutcome listDeployConfig(const Model::ListDeployConfigRequest &request)const; + void listDeployConfigAsync(const Model::ListDeployConfigRequest& request, const ListDeployConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDeployConfigOutcomeCallable listDeployConfigCallable(const Model::ListDeployConfigRequest& request) const; + ListDeployOrdersOutcome listDeployOrders(const Model::ListDeployOrdersRequest &request)const; + void listDeployOrdersAsync(const Model::ListDeployOrdersRequest& request, const ListDeployOrdersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDeployOrdersOutcomeCallable listDeployOrdersCallable(const Model::ListDeployOrdersRequest& request) const; + ListNodeLabelBindingsOutcome listNodeLabelBindings(const Model::ListNodeLabelBindingsRequest &request)const; + void listNodeLabelBindingsAsync(const Model::ListNodeLabelBindingsRequest& request, const ListNodeLabelBindingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListNodeLabelBindingsOutcomeCallable listNodeLabelBindingsCallable(const Model::ListNodeLabelBindingsRequest& request) const; + ListNodeLabelsOutcome listNodeLabels(const Model::ListNodeLabelsRequest &request)const; + void listNodeLabelsAsync(const Model::ListNodeLabelsRequest& request, const ListNodeLabelsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListNodeLabelsOutcomeCallable listNodeLabelsCallable(const Model::ListNodeLabelsRequest& request) const; + ListPersistentVolumeOutcome listPersistentVolume(const Model::ListPersistentVolumeRequest &request)const; + void listPersistentVolumeAsync(const Model::ListPersistentVolumeRequest& request, const ListPersistentVolumeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPersistentVolumeOutcomeCallable listPersistentVolumeCallable(const Model::ListPersistentVolumeRequest& request) const; + ListPersistentVolumeClaimOutcome listPersistentVolumeClaim(const Model::ListPersistentVolumeClaimRequest &request)const; + void listPersistentVolumeClaimAsync(const Model::ListPersistentVolumeClaimRequest& request, const ListPersistentVolumeClaimAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPersistentVolumeClaimOutcomeCallable listPersistentVolumeClaimCallable(const Model::ListPersistentVolumeClaimRequest& request) const; + ListPodsOutcome listPods(const Model::ListPodsRequest &request)const; + void listPodsAsync(const Model::ListPodsRequest& request, const ListPodsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPodsOutcomeCallable listPodsCallable(const Model::ListPodsRequest& request) const; + ListServicesOutcome listServices(const Model::ListServicesRequest &request)const; + void listServicesAsync(const Model::ListServicesRequest& request, const ListServicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListServicesOutcomeCallable listServicesCallable(const Model::ListServicesRequest& request) const; + ListSlbAPsOutcome listSlbAPs(const Model::ListSlbAPsRequest &request)const; + void listSlbAPsAsync(const Model::ListSlbAPsRequest& request, const ListSlbAPsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSlbAPsOutcomeCallable listSlbAPsCallable(const Model::ListSlbAPsRequest& request) const; + ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const; + void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const; + ModifyServiceOutcome modifyService(const Model::ModifyServiceRequest &request)const; + void modifyServiceAsync(const Model::ModifyServiceRequest& request, const ModifyServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyServiceOutcomeCallable modifyServiceCallable(const Model::ModifyServiceRequest& request) const; + ModifySlbAPOutcome modifySlbAP(const Model::ModifySlbAPRequest &request)const; + void modifySlbAPAsync(const Model::ModifySlbAPRequest& request, const ModifySlbAPAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySlbAPOutcomeCallable modifySlbAPCallable(const Model::ModifySlbAPRequest& request) const; + QueryClusterDetailOutcome queryClusterDetail(const Model::QueryClusterDetailRequest &request)const; + void queryClusterDetailAsync(const Model::QueryClusterDetailRequest& request, const QueryClusterDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryClusterDetailOutcomeCallable queryClusterDetailCallable(const Model::QueryClusterDetailRequest& request) const; + RemoveClusterNodeOutcome removeClusterNode(const Model::RemoveClusterNodeRequest &request)const; + void removeClusterNodeAsync(const Model::RemoveClusterNodeRequest& request, const RemoveClusterNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveClusterNodeOutcomeCallable removeClusterNodeCallable(const Model::RemoveClusterNodeRequest& request) const; + ResourceStatusNotifyOutcome resourceStatusNotify(const Model::ResourceStatusNotifyRequest &request)const; + void resourceStatusNotifyAsync(const Model::ResourceStatusNotifyRequest& request, const ResourceStatusNotifyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResourceStatusNotifyOutcomeCallable resourceStatusNotifyCallable(const Model::ResourceStatusNotifyRequest& request) const; + ResumeDeployOutcome resumeDeploy(const Model::ResumeDeployRequest &request)const; + void resumeDeployAsync(const Model::ResumeDeployRequest& request, const ResumeDeployAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResumeDeployOutcomeCallable resumeDeployCallable(const Model::ResumeDeployRequest& request) const; + ScaleAppOutcome scaleApp(const Model::ScaleAppRequest &request)const; + void scaleAppAsync(const Model::ScaleAppRequest& request, const ScaleAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ScaleAppOutcomeCallable scaleAppCallable(const Model::ScaleAppRequest& request) const; + SetDeployPauseTypeOutcome setDeployPauseType(const Model::SetDeployPauseTypeRequest &request)const; + void setDeployPauseTypeAsync(const Model::SetDeployPauseTypeRequest& request, const SetDeployPauseTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetDeployPauseTypeOutcomeCallable setDeployPauseTypeCallable(const Model::SetDeployPauseTypeRequest& request) const; + UnbindNodeLabelOutcome unbindNodeLabel(const Model::UnbindNodeLabelRequest &request)const; + void unbindNodeLabelAsync(const Model::UnbindNodeLabelRequest& request, const UnbindNodeLabelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnbindNodeLabelOutcomeCallable unbindNodeLabelCallable(const Model::UnbindNodeLabelRequest& request) const; + UpdateAppOutcome updateApp(const Model::UpdateAppRequest &request)const; + void updateAppAsync(const Model::UpdateAppRequest& request, const UpdateAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAppOutcomeCallable updateAppCallable(const Model::UpdateAppRequest& request) const; + UpdateDeployConfigOutcome updateDeployConfig(const Model::UpdateDeployConfigRequest &request)const; + void updateDeployConfigAsync(const Model::UpdateDeployConfigRequest& request, const UpdateDeployConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDeployConfigOutcomeCallable updateDeployConfigCallable(const Model::UpdateDeployConfigRequest& request) const; + UpdateEnvironmentOutcome updateEnvironment(const Model::UpdateEnvironmentRequest &request)const; + void updateEnvironmentAsync(const Model::UpdateEnvironmentRequest& request, const UpdateEnvironmentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateEnvironmentOutcomeCallable updateEnvironmentCallable(const Model::UpdateEnvironmentRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_RETAILCLOUD_RETAILCLOUDCLIENT_H_ diff --git a/retailcloud/include/alibabacloud/retailcloud/RetailcloudExport.h b/retailcloud/include/alibabacloud/retailcloud/RetailcloudExport.h new file mode 100644 index 000000000..8317dd43d --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/RetailcloudExport.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_RETAILCLOUD_RETAILCLOUDEXPORT_H_ +#define ALIBABACLOUD_RETAILCLOUD_RETAILCLOUDEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_RETAILCLOUD_LIBRARY) +# define ALIBABACLOUD_RETAILCLOUD_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_RETAILCLOUD_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_RETAILCLOUD_EXPORT +#endif + +#endif // !ALIBABACLOUD_RETAILCLOUD_RETAILCLOUDEXPORT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/AddClusterNodeRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/AddClusterNodeRequest.h new file mode 100644 index 000000000..c265690b1 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/AddClusterNodeRequest.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_RETAILCLOUD_MODEL_ADDCLUSTERNODEREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_ADDCLUSTERNODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT AddClusterNodeRequest : public RpcServiceRequest + { + + public: + AddClusterNodeRequest(); + ~AddClusterNodeRequest(); + + std::vector getEcsInstanceIdList()const; + void setEcsInstanceIdList(const std::vector& ecsInstanceIdList); + std::string getClusterInstanceId()const; + void setClusterInstanceId(const std::string& clusterInstanceId); + + private: + std::vector ecsInstanceIdList_; + std::string clusterInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_ADDCLUSTERNODEREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/AddClusterNodeResult.h b/retailcloud/include/alibabacloud/retailcloud/model/AddClusterNodeResult.h new file mode 100644 index 000000000..e297d4787 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/AddClusterNodeResult.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_RETAILCLOUD_MODEL_ADDCLUSTERNODERESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_ADDCLUSTERNODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT AddClusterNodeResult : public ServiceResult + { + public: + struct Result + { + int nonsense; + }; + + + AddClusterNodeResult(); + explicit AddClusterNodeResult(const std::string &payload); + ~AddClusterNodeResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_ADDCLUSTERNODERESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/BatchAddServersRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/BatchAddServersRequest.h new file mode 100644 index 000000000..60f11af56 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/BatchAddServersRequest.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_RETAILCLOUD_MODEL_BATCHADDSERVERSREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_BATCHADDSERVERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT BatchAddServersRequest : public RpcServiceRequest + { + + public: + BatchAddServersRequest(); + ~BatchAddServersRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getSign()const; + void setSign(const std::string& sign); + + private: + std::string instanceId_; + std::string regionId_; + std::string vpcId_; + std::string sign_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_BATCHADDSERVERSREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/BatchAddServersResult.h b/retailcloud/include/alibabacloud/retailcloud/model/BatchAddServersResult.h new file mode 100644 index 000000000..9b848b38e --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/BatchAddServersResult.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_RETAILCLOUD_MODEL_BATCHADDSERVERSRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_BATCHADDSERVERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT BatchAddServersResult : public ServiceResult + { + public: + struct Result + { + bool success; + }; + + + BatchAddServersResult(); + explicit BatchAddServersResult(const std::string &payload); + ~BatchAddServersResult(); + std::string getErrMsg()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_BATCHADDSERVERSRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/BindNodeLabelRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/BindNodeLabelRequest.h new file mode 100644 index 000000000..e0a9479e6 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/BindNodeLabelRequest.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_RETAILCLOUD_MODEL_BINDNODELABELREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_BINDNODELABELREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT BindNodeLabelRequest : public RpcServiceRequest + { + + public: + BindNodeLabelRequest(); + ~BindNodeLabelRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getLabelKey()const; + void setLabelKey(const std::string& labelKey); + std::string getLabelValue()const; + void setLabelValue(const std::string& labelValue); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + + private: + std::string instanceId_; + std::string labelKey_; + std::string labelValue_; + std::string clusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_BINDNODELABELREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/BindNodeLabelResult.h b/retailcloud/include/alibabacloud/retailcloud/model/BindNodeLabelResult.h new file mode 100644 index 000000000..8ba692507 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/BindNodeLabelResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_BINDNODELABELRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_BINDNODELABELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT BindNodeLabelResult : public ServiceResult + { + public: + + + BindNodeLabelResult(); + explicit BindNodeLabelResult(const std::string &payload); + ~BindNodeLabelResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_BINDNODELABELRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CloseDeployOrderRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/CloseDeployOrderRequest.h new file mode 100644 index 000000000..ed4e89e02 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CloseDeployOrderRequest.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_RETAILCLOUD_MODEL_CLOSEDEPLOYORDERREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CLOSEDEPLOYORDERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CloseDeployOrderRequest : public RpcServiceRequest + { + + public: + CloseDeployOrderRequest(); + ~CloseDeployOrderRequest(); + + long getDeployOrderId()const; + void setDeployOrderId(long deployOrderId); + + private: + long deployOrderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CLOSEDEPLOYORDERREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CloseDeployOrderResult.h b/retailcloud/include/alibabacloud/retailcloud/model/CloseDeployOrderResult.h new file mode 100644 index 000000000..c6fb61476 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CloseDeployOrderResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_CLOSEDEPLOYORDERRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CLOSEDEPLOYORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CloseDeployOrderResult : public ServiceResult + { + public: + + + CloseDeployOrderResult(); + explicit CloseDeployOrderResult(const std::string &payload); + ~CloseDeployOrderResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CLOSEDEPLOYORDERRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateAppRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateAppRequest.h new file mode 100644 index 000000000..9f6075a83 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateAppRequest.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEAPPREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEAPPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateAppRequest : public RpcServiceRequest + { + public: + struct UserRoles + { + std::string roleName; + std::string userType; + std::string userId; + }; + + public: + CreateAppRequest(); + ~CreateAppRequest(); + + std::string getBizTitle()const; + void setBizTitle(const std::string& bizTitle); + std::string getOperatingSystem()const; + void setOperatingSystem(const std::string& operatingSystem); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getLanguage()const; + void setLanguage(const std::string& language); + std::string getTitle()const; + void setTitle(const std::string& title); + std::vector getMiddleWareIdList()const; + void setMiddleWareIdList(const std::vector& middleWareIdList); + int getStateType()const; + void setStateType(int stateType); + std::string getServiceType()const; + void setServiceType(const std::string& serviceType); + std::vector getUserRoles()const; + void setUserRoles(const std::vector& userRoles); + std::string getBizCode()const; + void setBizCode(const std::string& bizCode); + std::string get_Namespace()const; + void set_Namespace(const std::string& _namespace); + + private: + std::string bizTitle_; + std::string operatingSystem_; + std::string description_; + std::string language_; + std::string title_; + std::vector middleWareIdList_; + int stateType_; + std::string serviceType_; + std::vector userRoles_; + std::string bizCode_; + std::string _namespace_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEAPPREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateAppResourceAllocRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateAppResourceAllocRequest.h new file mode 100644 index 000000000..8d8a5aab0 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateAppResourceAllocRequest.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_RETAILCLOUD_MODEL_CREATEAPPRESOURCEALLOCREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEAPPRESOURCEALLOCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateAppResourceAllocRequest : public RpcServiceRequest + { + + public: + CreateAppResourceAllocRequest(); + ~CreateAppResourceAllocRequest(); + + long getAppId()const; + void setAppId(long appId); + long getAppEnvId()const; + void setAppEnvId(long appEnvId); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + + private: + long appId_; + long appEnvId_; + std::string clusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEAPPRESOURCEALLOCREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateAppResourceAllocResult.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateAppResourceAllocResult.h new file mode 100644 index 000000000..8233e17a4 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateAppResourceAllocResult.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_RETAILCLOUD_MODEL_CREATEAPPRESOURCEALLOCRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEAPPRESOURCEALLOCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateAppResourceAllocResult : public ServiceResult + { + public: + struct Result + { + long appEnvId; + long appId; + std::string clusterId; + std::string resourceDef; + long id; + }; + + + CreateAppResourceAllocResult(); + explicit CreateAppResourceAllocResult(const std::string &payload); + ~CreateAppResourceAllocResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEAPPRESOURCEALLOCRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateAppResult.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateAppResult.h new file mode 100644 index 000000000..58120c230 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateAppResult.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_RETAILCLOUD_MODEL_CREATEAPPRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateAppResult : public ServiceResult + { + public: + struct Result + { + long appId; + }; + + + CreateAppResult(); + explicit CreateAppResult(const std::string &payload); + ~CreateAppResult(); + std::string getErrMsg()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEAPPRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateClusterRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateClusterRequest.h new file mode 100644 index 000000000..873480f0d --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateClusterRequest.h @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_CREATECLUSTERREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATECLUSTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateClusterRequest : public RpcServiceRequest + { + + public: + CreateClusterRequest(); + ~CreateClusterRequest(); + + std::string getBusinessCode()const; + void setBusinessCode(const std::string& businessCode); + bool getCreateWithLogIntegration()const; + void setCreateWithLogIntegration(bool createWithLogIntegration); + std::vector getVswitchids()const; + void setVswitchids(const std::vector& vswitchids); + int getCloudMonitorFlags()const; + void setCloudMonitorFlags(int cloudMonitorFlags); + std::string getClusterEnvType()const; + void setClusterEnvType(const std::string& clusterEnvType); + bool getCreateWithArmsIntegration()const; + void setCreateWithArmsIntegration(bool createWithArmsIntegration); + std::string getKeyPair()const; + void setKeyPair(const std::string& keyPair); + std::string getClusterTitle()const; + void setClusterTitle(const std::string& clusterTitle); + std::string getPodCIDR()const; + void setPodCIDR(const std::string& podCIDR); + long getClusterId()const; + void setClusterId(long clusterId); + std::string getClusterType()const; + void setClusterType(const std::string& clusterType); + std::string getPassword()const; + void setPassword(const std::string& password); + int getSnatEntry()const; + void setSnatEntry(int snatEntry); + std::string getNetPlug()const; + void setNetPlug(const std::string& netPlug); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getRegionName()const; + void setRegionName(const std::string& regionName); + bool getPrivateZone()const; + void setPrivateZone(bool privateZone); + std::string getServiceCIDR()const; + void setServiceCIDR(const std::string& serviceCIDR); + int getPublicSlb()const; + void setPublicSlb(int publicSlb); + + private: + std::string businessCode_; + bool createWithLogIntegration_; + std::vector vswitchids_; + int cloudMonitorFlags_; + std::string clusterEnvType_; + bool createWithArmsIntegration_; + std::string keyPair_; + std::string clusterTitle_; + std::string podCIDR_; + long clusterId_; + std::string clusterType_; + std::string password_; + int snatEntry_; + std::string netPlug_; + std::string regionId_; + std::string vpcId_; + std::string regionName_; + bool privateZone_; + std::string serviceCIDR_; + int publicSlb_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATECLUSTERREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateClusterResult.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateClusterResult.h new file mode 100644 index 000000000..b385cdafc --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateClusterResult.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_RETAILCLOUD_MODEL_CREATECLUSTERRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATECLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateClusterResult : public ServiceResult + { + public: + struct Result + { + std::string clusterInstanceId; + }; + + + CreateClusterResult(); + explicit CreateClusterResult(const std::string &payload); + ~CreateClusterResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATECLUSTERRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateDbRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateDbRequest.h new file mode 100644 index 000000000..5fe7d3832 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateDbRequest.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_RETAILCLOUD_MODEL_CREATEDBREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEDBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateDbRequest : public RpcServiceRequest + { + + public: + CreateDbRequest(); + ~CreateDbRequest(); + + std::string getDbName()const; + void setDbName(const std::string& dbName); + std::string getDbInstanceId()const; + void setDbInstanceId(const std::string& dbInstanceId); + std::string getDbDescription()const; + void setDbDescription(const std::string& dbDescription); + std::string getCharacterSetName()const; + void setCharacterSetName(const std::string& characterSetName); + + private: + std::string dbName_; + std::string dbInstanceId_; + std::string dbDescription_; + std::string characterSetName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEDBREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateDbResult.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateDbResult.h new file mode 100644 index 000000000..a3eda164a --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateDbResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEDBRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEDBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateDbResult : public ServiceResult + { + public: + + + CreateDbResult(); + explicit CreateDbResult(const std::string &payload); + ~CreateDbResult(); + std::string getErrMsg()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEDBRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateDeployConfigRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateDeployConfigRequest.h new file mode 100644 index 000000000..a3d1989e3 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateDeployConfigRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEDEPLOYCONFIGREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEDEPLOYCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateDeployConfigRequest : public RpcServiceRequest + { + + public: + CreateDeployConfigRequest(); + ~CreateDeployConfigRequest(); + + std::string getCodePath()const; + void setCodePath(const std::string& codePath); + std::vector getConfigMapList()const; + void setConfigMapList(const std::vector& configMapList); + long getAppId()const; + void setAppId(long appId); + std::string getConfigMap()const; + void setConfigMap(const std::string& configMap); + std::string getStatefulSet()const; + void setStatefulSet(const std::string& statefulSet); + std::string getEnvType()const; + void setEnvType(const std::string& envType); + std::string getName()const; + void setName(const std::string& name); + std::vector getSecretList()const; + void setSecretList(const std::vector& secretList); + std::string getDeployment()const; + void setDeployment(const std::string& deployment); + + private: + std::string codePath_; + std::vector configMapList_; + long appId_; + std::string configMap_; + std::string statefulSet_; + std::string envType_; + std::string name_; + std::vector secretList_; + std::string deployment_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEDEPLOYCONFIGREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateDeployConfigResult.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateDeployConfigResult.h new file mode 100644 index 000000000..c9ed34280 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateDeployConfigResult.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_RETAILCLOUD_MODEL_CREATEDEPLOYCONFIGRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEDEPLOYCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateDeployConfigResult : public ServiceResult + { + public: + struct Result + { + long appId; + long schemaId; + std::string name; + }; + + + CreateDeployConfigResult(); + explicit CreateDeployConfigResult(const std::string &payload); + ~CreateDeployConfigResult(); + std::string getErrMessage()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMessage_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEDEPLOYCONFIGRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateEnvironmentRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateEnvironmentRequest.h new file mode 100644 index 000000000..12c1a7270 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateEnvironmentRequest.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_RETAILCLOUD_MODEL_CREATEENVIRONMENTREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEENVIRONMENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateEnvironmentRequest : public RpcServiceRequest + { + + public: + CreateEnvironmentRequest(); + ~CreateEnvironmentRequest(); + + std::string getEnvName()const; + void setEnvName(const std::string& envName); + int getReplicas()const; + void setReplicas(int replicas); + long getAppId()const; + void setAppId(long appId); + int getEnvType()const; + void setEnvType(int envType); + long getAppSchemaId()const; + void setAppSchemaId(long appSchemaId); + std::string getRegion()const; + void setRegion(const std::string& region); + + private: + std::string envName_; + int replicas_; + long appId_; + int envType_; + long appSchemaId_; + std::string region_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEENVIRONMENTREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateEnvironmentResult.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateEnvironmentResult.h new file mode 100644 index 000000000..b5e7cea81 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateEnvironmentResult.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_RETAILCLOUD_MODEL_CREATEENVIRONMENTRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEENVIRONMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateEnvironmentResult : public ServiceResult + { + public: + struct Result + { + long appEnvId; + }; + + + CreateEnvironmentResult(); + explicit CreateEnvironmentResult(const std::string &payload); + ~CreateEnvironmentResult(); + std::string getErrMsg()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEENVIRONMENTRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateNodeLabelRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateNodeLabelRequest.h new file mode 100644 index 000000000..ea79b9f83 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateNodeLabelRequest.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_RETAILCLOUD_MODEL_CREATENODELABELREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATENODELABELREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateNodeLabelRequest : public RpcServiceRequest + { + + public: + CreateNodeLabelRequest(); + ~CreateNodeLabelRequest(); + + std::string getLabelKey()const; + void setLabelKey(const std::string& labelKey); + std::string getLabelValue()const; + void setLabelValue(const std::string& labelValue); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + + private: + std::string labelKey_; + std::string labelValue_; + std::string clusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATENODELABELREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateNodeLabelResult.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateNodeLabelResult.h new file mode 100644 index 000000000..9c3f629a1 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateNodeLabelResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_CREATENODELABELRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATENODELABELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateNodeLabelResult : public ServiceResult + { + public: + struct Result + { + std::string labelValue; + std::string clusterId; + std::string labelKey; + long id; + }; + + + CreateNodeLabelResult(); + explicit CreateNodeLabelResult(const std::string &payload); + ~CreateNodeLabelResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATENODELABELRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreatePersistentVolumeClaimRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/CreatePersistentVolumeClaimRequest.h new file mode 100644 index 000000000..8db80faae --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreatePersistentVolumeClaimRequest.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_RETAILCLOUD_MODEL_CREATEPERSISTENTVOLUMECLAIMREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEPERSISTENTVOLUMECLAIMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreatePersistentVolumeClaimRequest : public RpcServiceRequest + { + + public: + CreatePersistentVolumeClaimRequest(); + ~CreatePersistentVolumeClaimRequest(); + + std::string getAccessModes()const; + void setAccessModes(const std::string& accessModes); + long getAppId()const; + void setAppId(long appId); + std::string getName()const; + void setName(const std::string& name); + long getEnvId()const; + void setEnvId(long envId); + std::string getStorageClass()const; + void setStorageClass(const std::string& storageClass); + std::string getCapacity()const; + void setCapacity(const std::string& capacity); + + private: + std::string accessModes_; + long appId_; + std::string name_; + long envId_; + std::string storageClass_; + std::string capacity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEPERSISTENTVOLUMECLAIMREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreatePersistentVolumeClaimResult.h b/retailcloud/include/alibabacloud/retailcloud/model/CreatePersistentVolumeClaimResult.h new file mode 100644 index 000000000..9bb128b5e --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreatePersistentVolumeClaimResult.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_RETAILCLOUD_MODEL_CREATEPERSISTENTVOLUMECLAIMRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEPERSISTENTVOLUMECLAIMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreatePersistentVolumeClaimResult : public ServiceResult + { + public: + struct Result + { + long persistentVolumeClaimId; + }; + + + CreatePersistentVolumeClaimResult(); + explicit CreatePersistentVolumeClaimResult(const std::string &payload); + ~CreatePersistentVolumeClaimResult(); + std::string getErrMsg()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEPERSISTENTVOLUMECLAIMRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreatePersistentVolumeRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/CreatePersistentVolumeRequest.h new file mode 100644 index 000000000..d2ba0aaf7 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreatePersistentVolumeRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEPERSISTENTVOLUMEREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEPERSISTENTVOLUMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreatePersistentVolumeRequest : public RpcServiceRequest + { + + public: + CreatePersistentVolumeRequest(); + ~CreatePersistentVolumeRequest(); + + std::string getReclaimPolicy()const; + void setReclaimPolicy(const std::string& reclaimPolicy); + std::string getNFSVersion()const; + void setNFSVersion(const std::string& nFSVersion); + std::string getAccessModes()const; + void setAccessModes(const std::string& accessModes); + std::string getName()const; + void setName(const std::string& name); + std::string getMountTargetDomain()const; + void setMountTargetDomain(const std::string& mountTargetDomain); + std::string getMountDir()const; + void setMountDir(const std::string& mountDir); + std::string getClusterInstanceId()const; + void setClusterInstanceId(const std::string& clusterInstanceId); + std::string getCapacity()const; + void setCapacity(const std::string& capacity); + std::string getStorageClass()const; + void setStorageClass(const std::string& storageClass); + + private: + std::string reclaimPolicy_; + std::string nFSVersion_; + std::string accessModes_; + std::string name_; + std::string mountTargetDomain_; + std::string mountDir_; + std::string clusterInstanceId_; + std::string capacity_; + std::string storageClass_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEPERSISTENTVOLUMEREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreatePersistentVolumeResult.h b/retailcloud/include/alibabacloud/retailcloud/model/CreatePersistentVolumeResult.h new file mode 100644 index 000000000..95eabb1db --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreatePersistentVolumeResult.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_RETAILCLOUD_MODEL_CREATEPERSISTENTVOLUMERESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEPERSISTENTVOLUMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreatePersistentVolumeResult : public ServiceResult + { + public: + struct Result + { + long persistentVolumeId; + }; + + + CreatePersistentVolumeResult(); + explicit CreatePersistentVolumeResult(const std::string &payload); + ~CreatePersistentVolumeResult(); + std::string getErrMsg()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATEPERSISTENTVOLUMERESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateServiceRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateServiceRequest.h new file mode 100644 index 000000000..2a7cf7c98 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateServiceRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_CREATESERVICEREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATESERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateServiceRequest : public RpcServiceRequest + { + public: + struct PortMappings + { + std::string protocol; + int port; + std::string name; + int nodePort; + std::string targetPort; + }; + + public: + CreateServiceRequest(); + ~CreateServiceRequest(); + + bool getHeadless()const; + void setHeadless(bool headless); + std::string getServiceType()const; + void setServiceType(const std::string& serviceType); + std::string getK8sServiceId()const; + void setK8sServiceId(const std::string& k8sServiceId); + std::string getName()const; + void setName(const std::string& name); + std::vector getPortMappings()const; + void setPortMappings(const std::vector& portMappings); + long getEnvId()const; + void setEnvId(long envId); + + private: + bool headless_; + std::string serviceType_; + std::string k8sServiceId_; + std::string name_; + std::vector portMappings_; + long envId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATESERVICEREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateServiceResult.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateServiceResult.h new file mode 100644 index 000000000..1243035b8 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateServiceResult.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_RETAILCLOUD_MODEL_CREATESERVICERESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATESERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateServiceResult : public ServiceResult + { + public: + struct Result + { + long serviceId; + }; + + + CreateServiceResult(); + explicit CreateServiceResult(const std::string &payload); + ~CreateServiceResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATESERVICERESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateSlbAPRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateSlbAPRequest.h new file mode 100644 index 000000000..898fa1ccb --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateSlbAPRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_CREATESLBAPREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATESLBAPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateSlbAPRequest : public RpcServiceRequest + { + + public: + CreateSlbAPRequest(); + ~CreateSlbAPRequest(); + + std::string getSslCertId()const; + void setSslCertId(const std::string& sslCertId); + int getListenerPort()const; + void setListenerPort(int listenerPort); + std::string getProtocol()const; + void setProtocol(const std::string& protocol); + int getEstablishedTimeout()const; + void setEstablishedTimeout(int establishedTimeout); + std::string getSlbId()const; + void setSlbId(const std::string& slbId); + int getRealServerPort()const; + void setRealServerPort(int realServerPort); + int getStickySession()const; + void setStickySession(int stickySession); + int getCookieTimeout()const; + void setCookieTimeout(int cookieTimeout); + std::string getName()const; + void setName(const std::string& name); + long getEnvId()const; + void setEnvId(long envId); + + private: + std::string sslCertId_; + int listenerPort_; + std::string protocol_; + int establishedTimeout_; + std::string slbId_; + int realServerPort_; + int stickySession_; + int cookieTimeout_; + std::string name_; + long envId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATESLBAPREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/CreateSlbAPResult.h b/retailcloud/include/alibabacloud/retailcloud/model/CreateSlbAPResult.h new file mode 100644 index 000000000..6561687e5 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/CreateSlbAPResult.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_RETAILCLOUD_MODEL_CREATESLBAPRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_CREATESLBAPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT CreateSlbAPResult : public ServiceResult + { + public: + struct Result + { + long slbAPId; + }; + + + CreateSlbAPResult(); + explicit CreateSlbAPResult(const std::string &payload); + ~CreateSlbAPResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_CREATESLBAPRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppDetailRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppDetailRequest.h new file mode 100644 index 000000000..7e1aa56b3 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppDetailRequest.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_RETAILCLOUD_MODEL_DELETEAPPDETAILREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEAPPDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeleteAppDetailRequest : public RpcServiceRequest + { + + public: + DeleteAppDetailRequest(); + ~DeleteAppDetailRequest(); + + long getAppId()const; + void setAppId(long appId); + bool getForce()const; + void setForce(bool force); + + private: + long appId_; + bool force_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEAPPDETAILREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppDetailResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppDetailResult.h new file mode 100644 index 000000000..8e735e9ea --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppDetailResult.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_RETAILCLOUD_MODEL_DELETEAPPDETAILRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEAPPDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeleteAppDetailResult : public ServiceResult + { + public: + struct Result + { + bool success; + }; + + + DeleteAppDetailResult(); + explicit DeleteAppDetailResult(const std::string &payload); + ~DeleteAppDetailResult(); + std::string getErrMsg()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEAPPDETAILRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppEnvironmentRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppEnvironmentRequest.h new file mode 100644 index 000000000..d8a805dfd --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppEnvironmentRequest.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_RETAILCLOUD_MODEL_DELETEAPPENVIRONMENTREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEAPPENVIRONMENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeleteAppEnvironmentRequest : public RpcServiceRequest + { + + public: + DeleteAppEnvironmentRequest(); + ~DeleteAppEnvironmentRequest(); + + long getAppId()const; + void setAppId(long appId); + bool getForce()const; + void setForce(bool force); + long getEnvId()const; + void setEnvId(long envId); + + private: + long appId_; + bool force_; + long envId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEAPPENVIRONMENTREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppEnvironmentResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppEnvironmentResult.h new file mode 100644 index 000000000..ef131eb95 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppEnvironmentResult.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_RETAILCLOUD_MODEL_DELETEAPPENVIRONMENTRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEAPPENVIRONMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeleteAppEnvironmentResult : public ServiceResult + { + public: + struct Result + { + bool success; + }; + + + DeleteAppEnvironmentResult(); + explicit DeleteAppEnvironmentResult(const std::string &payload); + ~DeleteAppEnvironmentResult(); + std::string getErrMsg()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEAPPENVIRONMENTRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppResourceAllocRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppResourceAllocRequest.h new file mode 100644 index 000000000..8fb30581c --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppResourceAllocRequest.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_RETAILCLOUD_MODEL_DELETEAPPRESOURCEALLOCREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEAPPRESOURCEALLOCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeleteAppResourceAllocRequest : public RpcServiceRequest + { + + public: + DeleteAppResourceAllocRequest(); + ~DeleteAppResourceAllocRequest(); + + long getAppEnvId()const; + void setAppEnvId(long appEnvId); + + private: + long appEnvId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEAPPRESOURCEALLOCREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppResourceAllocResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppResourceAllocResult.h new file mode 100644 index 000000000..0dd69c88c --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeleteAppResourceAllocResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEAPPRESOURCEALLOCRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEAPPRESOURCEALLOCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeleteAppResourceAllocResult : public ServiceResult + { + public: + + + DeleteAppResourceAllocResult(); + explicit DeleteAppResourceAllocResult(const std::string &payload); + ~DeleteAppResourceAllocResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEAPPRESOURCEALLOCRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeleteClusterRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DeleteClusterRequest.h new file mode 100644 index 000000000..df4740d2e --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeleteClusterRequest.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_RETAILCLOUD_MODEL_DELETECLUSTERREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETECLUSTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeleteClusterRequest : public RpcServiceRequest + { + + public: + DeleteClusterRequest(); + ~DeleteClusterRequest(); + + std::string getClusterInstanceId()const; + void setClusterInstanceId(const std::string& clusterInstanceId); + + private: + std::string clusterInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETECLUSTERREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeleteClusterResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DeleteClusterResult.h new file mode 100644 index 000000000..1f21289a3 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeleteClusterResult.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_RETAILCLOUD_MODEL_DELETECLUSTERRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETECLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeleteClusterResult : public ServiceResult + { + public: + struct Result + { + int nonsense; + }; + + + DeleteClusterResult(); + explicit DeleteClusterResult(const std::string &payload); + ~DeleteClusterResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETECLUSTERRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeleteDatabaseRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DeleteDatabaseRequest.h new file mode 100644 index 000000000..ecef9f325 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeleteDatabaseRequest.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_RETAILCLOUD_MODEL_DELETEDATABASEREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEDATABASEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeleteDatabaseRequest : public RpcServiceRequest + { + + public: + DeleteDatabaseRequest(); + ~DeleteDatabaseRequest(); + + std::string getDBName()const; + void setDBName(const std::string& dBName); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + + private: + std::string dBName_; + std::string dBInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEDATABASEREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeleteDatabaseResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DeleteDatabaseResult.h new file mode 100644 index 000000000..ea0530f81 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeleteDatabaseResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEDATABASERESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeleteDatabaseResult : public ServiceResult + { + public: + + + DeleteDatabaseResult(); + explicit DeleteDatabaseResult(const std::string &payload); + ~DeleteDatabaseResult(); + std::string getErrMsg()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEDATABASERESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeleteDeployConfigRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DeleteDeployConfigRequest.h new file mode 100644 index 000000000..0f5f8fd7e --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeleteDeployConfigRequest.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_RETAILCLOUD_MODEL_DELETEDEPLOYCONFIGREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEDEPLOYCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeleteDeployConfigRequest : public RpcServiceRequest + { + + public: + DeleteDeployConfigRequest(); + ~DeleteDeployConfigRequest(); + + long getSchemaId()const; + void setSchemaId(long schemaId); + + private: + long schemaId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEDEPLOYCONFIGREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeleteDeployConfigResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DeleteDeployConfigResult.h new file mode 100644 index 000000000..719543a49 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeleteDeployConfigResult.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_RETAILCLOUD_MODEL_DELETEDEPLOYCONFIGRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEDEPLOYCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeleteDeployConfigResult : public ServiceResult + { + public: + struct Result + { + bool success; + }; + + + DeleteDeployConfigResult(); + explicit DeleteDeployConfigResult(const std::string &payload); + ~DeleteDeployConfigResult(); + std::string getErrMsg()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEDEPLOYCONFIGRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeleteNodeLabelRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DeleteNodeLabelRequest.h new file mode 100644 index 000000000..012375c65 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeleteNodeLabelRequest.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_RETAILCLOUD_MODEL_DELETENODELABELREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETENODELABELREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeleteNodeLabelRequest : public RpcServiceRequest + { + + public: + DeleteNodeLabelRequest(); + ~DeleteNodeLabelRequest(); + + std::string getLabelKey()const; + void setLabelKey(const std::string& labelKey); + std::string getLabelValue()const; + void setLabelValue(const std::string& labelValue); + bool getForce()const; + void setForce(bool force); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + + private: + std::string labelKey_; + std::string labelValue_; + bool force_; + std::string clusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETENODELABELREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeleteNodeLabelResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DeleteNodeLabelResult.h new file mode 100644 index 000000000..a58a36a9c --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeleteNodeLabelResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_DELETENODELABELRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETENODELABELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeleteNodeLabelResult : public ServiceResult + { + public: + + + DeleteNodeLabelResult(); + explicit DeleteNodeLabelResult(const std::string &payload); + ~DeleteNodeLabelResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETENODELABELRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeletePersistentVolumeClaimRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DeletePersistentVolumeClaimRequest.h new file mode 100644 index 000000000..0b9dbee8b --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeletePersistentVolumeClaimRequest.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_RETAILCLOUD_MODEL_DELETEPERSISTENTVOLUMECLAIMREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEPERSISTENTVOLUMECLAIMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeletePersistentVolumeClaimRequest : public RpcServiceRequest + { + + public: + DeletePersistentVolumeClaimRequest(); + ~DeletePersistentVolumeClaimRequest(); + + std::string getPersistentVolumeClaimName()const; + void setPersistentVolumeClaimName(const std::string& persistentVolumeClaimName); + long getAppId()const; + void setAppId(long appId); + long getEnvId()const; + void setEnvId(long envId); + + private: + std::string persistentVolumeClaimName_; + long appId_; + long envId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEPERSISTENTVOLUMECLAIMREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeletePersistentVolumeClaimResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DeletePersistentVolumeClaimResult.h new file mode 100644 index 000000000..822104361 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeletePersistentVolumeClaimResult.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_RETAILCLOUD_MODEL_DELETEPERSISTENTVOLUMECLAIMRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEPERSISTENTVOLUMECLAIMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeletePersistentVolumeClaimResult : public ServiceResult + { + public: + struct Result + { + bool success; + }; + + + DeletePersistentVolumeClaimResult(); + explicit DeletePersistentVolumeClaimResult(const std::string &payload); + ~DeletePersistentVolumeClaimResult(); + std::string getErrMsg()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEPERSISTENTVOLUMECLAIMRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeletePersistentVolumeRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DeletePersistentVolumeRequest.h new file mode 100644 index 000000000..0009f3fec --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeletePersistentVolumeRequest.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_RETAILCLOUD_MODEL_DELETEPERSISTENTVOLUMEREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEPERSISTENTVOLUMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeletePersistentVolumeRequest : public RpcServiceRequest + { + + public: + DeletePersistentVolumeRequest(); + ~DeletePersistentVolumeRequest(); + + std::string getPersistentVolumeName()const; + void setPersistentVolumeName(const std::string& persistentVolumeName); + std::string getClusterInstanceId()const; + void setClusterInstanceId(const std::string& clusterInstanceId); + + private: + std::string persistentVolumeName_; + std::string clusterInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEPERSISTENTVOLUMEREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeletePersistentVolumeResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DeletePersistentVolumeResult.h new file mode 100644 index 000000000..3d974d822 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeletePersistentVolumeResult.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_RETAILCLOUD_MODEL_DELETEPERSISTENTVOLUMERESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEPERSISTENTVOLUMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeletePersistentVolumeResult : public ServiceResult + { + public: + struct Result + { + bool success; + }; + + + DeletePersistentVolumeResult(); + explicit DeletePersistentVolumeResult(const std::string &payload); + ~DeletePersistentVolumeResult(); + std::string getErrMsg()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETEPERSISTENTVOLUMERESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeleteRdsAccountRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DeleteRdsAccountRequest.h new file mode 100644 index 000000000..4a5fee064 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeleteRdsAccountRequest.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_RETAILCLOUD_MODEL_DELETERDSACCOUNTREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETERDSACCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeleteRdsAccountRequest : public RpcServiceRequest + { + + public: + DeleteRdsAccountRequest(); + ~DeleteRdsAccountRequest(); + + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getDbInstanceId()const; + void setDbInstanceId(const std::string& dbInstanceId); + + private: + std::string accountName_; + std::string dbInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETERDSACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeleteRdsAccountResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DeleteRdsAccountResult.h new file mode 100644 index 000000000..a063dc5d7 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeleteRdsAccountResult.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_RETAILCLOUD_MODEL_DELETERDSACCOUNTRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETERDSACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeleteRdsAccountResult : public ServiceResult + { + public: + struct Result + { + std::string requestId; + }; + + + DeleteRdsAccountResult(); + explicit DeleteRdsAccountResult(const std::string &payload); + ~DeleteRdsAccountResult(); + std::string getErrMsg()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETERDSACCOUNTRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeleteServiceRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DeleteServiceRequest.h new file mode 100644 index 000000000..a0f355f26 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeleteServiceRequest.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_RETAILCLOUD_MODEL_DELETESERVICEREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETESERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeleteServiceRequest : public RpcServiceRequest + { + + public: + DeleteServiceRequest(); + ~DeleteServiceRequest(); + + long getServiceId()const; + void setServiceId(long serviceId); + + private: + long serviceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETESERVICEREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeleteServiceResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DeleteServiceResult.h new file mode 100644 index 000000000..96ba4df3b --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeleteServiceResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_DELETESERVICERESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETESERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeleteServiceResult : public ServiceResult + { + public: + + + DeleteServiceResult(); + explicit DeleteServiceResult(const std::string &payload); + ~DeleteServiceResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETESERVICERESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeleteSlbAPRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DeleteSlbAPRequest.h new file mode 100644 index 000000000..347dd181c --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeleteSlbAPRequest.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_RETAILCLOUD_MODEL_DELETESLBAPREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETESLBAPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeleteSlbAPRequest : public RpcServiceRequest + { + + public: + DeleteSlbAPRequest(); + ~DeleteSlbAPRequest(); + + long getSlbAPId()const; + void setSlbAPId(long slbAPId); + + private: + long slbAPId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETESLBAPREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeleteSlbAPResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DeleteSlbAPResult.h new file mode 100644 index 000000000..da2e09fa0 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeleteSlbAPResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_DELETESLBAPRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DELETESLBAPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeleteSlbAPResult : public ServiceResult + { + public: + + + DeleteSlbAPResult(); + explicit DeleteSlbAPResult(const std::string &payload); + ~DeleteSlbAPResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DELETESLBAPRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeployAppRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DeployAppRequest.h new file mode 100644 index 000000000..78b08a77e --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeployAppRequest.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_RETAILCLOUD_MODEL_DEPLOYAPPREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DEPLOYAPPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeployAppRequest : public RpcServiceRequest + { + + public: + DeployAppRequest(); + ~DeployAppRequest(); + + long getDeployPacketId()const; + void setDeployPacketId(long deployPacketId); + std::string getDeployPacketUrl()const; + void setDeployPacketUrl(const std::string& deployPacketUrl); + int getTotalPartitions()const; + void setTotalPartitions(int totalPartitions); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + long getEnvId()const; + void setEnvId(long envId); + std::string getPauseType()const; + void setPauseType(const std::string& pauseType); + bool getArmsFlag()const; + void setArmsFlag(bool armsFlag); + + private: + long deployPacketId_; + std::string deployPacketUrl_; + int totalPartitions_; + std::string name_; + std::string description_; + long envId_; + std::string pauseType_; + bool armsFlag_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DEPLOYAPPREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DeployAppResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DeployAppResult.h new file mode 100644 index 000000000..34d296656 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DeployAppResult.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_RETAILCLOUD_MODEL_DEPLOYAPPRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DEPLOYAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DeployAppResult : public ServiceResult + { + public: + struct Result + { + bool admitted; + std::string businessCode; + long deployOrderId; + }; + + + DeployAppResult(); + explicit DeployAppResult(const std::string &payload); + ~DeployAppResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DEPLOYAPPRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppDetailRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppDetailRequest.h new file mode 100644 index 000000000..d2e42b867 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppDetailRequest.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_RETAILCLOUD_MODEL_DESCRIBEAPPDETAILREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEAPPDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribeAppDetailRequest : public RpcServiceRequest + { + + public: + DescribeAppDetailRequest(); + ~DescribeAppDetailRequest(); + + long getAppId()const; + void setAppId(long appId); + + private: + long appId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEAPPDETAILREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppDetailResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppDetailResult.h new file mode 100644 index 000000000..b0ed190c6 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppDetailResult.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEAPPDETAILRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEAPPDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribeAppDetailResult : public ServiceResult + { + public: + struct Result + { + struct UserRole + { + std::string roleName; + std::string userId; + std::string realName; + std::string userType; + }; + struct MiddleWareInfo + { + long appId; + int code; + std::string name; + }; + std::string operatingSystem; + std::string deployType; + std::vector middleWareInfoList; + std::string appStateType; + std::string description; + long appId; + std::string language; + std::string serviceType; + std::vector userRoles; + std::string bizTitle; + std::string title; + std::string bizName; + }; + + + DescribeAppDetailResult(); + explicit DescribeAppDetailResult(const std::string &payload); + ~DescribeAppDetailResult(); + std::string getErrMessage()const; + long getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMessage_; + long code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEAPPDETAILRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppEnvironmentDetailRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppEnvironmentDetailRequest.h new file mode 100644 index 000000000..0ed29f04f --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppEnvironmentDetailRequest.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_RETAILCLOUD_MODEL_DESCRIBEAPPENVIRONMENTDETAILREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEAPPENVIRONMENTDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribeAppEnvironmentDetailRequest : public RpcServiceRequest + { + + public: + DescribeAppEnvironmentDetailRequest(); + ~DescribeAppEnvironmentDetailRequest(); + + long getAppId()const; + void setAppId(long appId); + long getEnvId()const; + void setEnvId(long envId); + + private: + long appId_; + long envId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEAPPENVIRONMENTDETAILREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppEnvironmentDetailResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppEnvironmentDetailResult.h new file mode 100644 index 000000000..24ad981ad --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppEnvironmentDetailResult.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_RETAILCLOUD_MODEL_DESCRIBEAPPENVIRONMENTDETAILRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEAPPENVIRONMENTDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribeAppEnvironmentDetailResult : public ServiceResult + { + public: + struct Result + { + long appId; + long appSchemaId; + std::string envTypeName; + long envId; + std::string region; + int replicas; + std::string envName; + int envType; + }; + + + DescribeAppEnvironmentDetailResult(); + explicit DescribeAppEnvironmentDetailResult(const std::string &payload); + ~DescribeAppEnvironmentDetailResult(); + std::string getErrMsg()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEAPPENVIRONMENTDETAILRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppResourceAllocRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppResourceAllocRequest.h new file mode 100644 index 000000000..7ac63912a --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppResourceAllocRequest.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_RETAILCLOUD_MODEL_DESCRIBEAPPRESOURCEALLOCREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEAPPRESOURCEALLOCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribeAppResourceAllocRequest : public RpcServiceRequest + { + + public: + DescribeAppResourceAllocRequest(); + ~DescribeAppResourceAllocRequest(); + + long getAppEnvId()const; + void setAppEnvId(long appEnvId); + + private: + long appEnvId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEAPPRESOURCEALLOCREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppResourceAllocResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppResourceAllocResult.h new file mode 100644 index 000000000..0e42ec9d6 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribeAppResourceAllocResult.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_RETAILCLOUD_MODEL_DESCRIBEAPPRESOURCEALLOCRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEAPPRESOURCEALLOCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribeAppResourceAllocResult : public ServiceResult + { + public: + struct Result + { + long appEnvId; + long appId; + std::string clusterId; + std::string resourceDef; + long id; + }; + + + DescribeAppResourceAllocResult(); + explicit DescribeAppResourceAllocResult(const std::string &payload); + ~DescribeAppResourceAllocResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEAPPRESOURCEALLOCRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribeDatabasesRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribeDatabasesRequest.h new file mode 100644 index 000000000..35c2e9b7c --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribeDatabasesRequest.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_RETAILCLOUD_MODEL_DESCRIBEDATABASESREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEDATABASESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribeDatabasesRequest : public RpcServiceRequest + { + + public: + DescribeDatabasesRequest(); + ~DescribeDatabasesRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEDATABASESREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribeDatabasesResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribeDatabasesResult.h new file mode 100644 index 000000000..fd804bf80 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribeDatabasesResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEDATABASESRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEDATABASESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribeDatabasesResult : public ServiceResult + { + public: + struct Result + { + struct DatabasesItem + { + struct AccountsItem + { + std::string account; + std::string accountPrivilege; + std::string accountPrivilegeDetail; + }; + std::string characterSetName; + std::string dBInstanceId; + std::string dBDescription; + std::string dBName; + std::string dBStatus; + std::vector accounts; + std::string engine; + }; + std::vector databases; + }; + + + DescribeDatabasesResult(); + explicit DescribeDatabasesResult(const std::string &payload); + ~DescribeDatabasesResult(); + std::string getErrMsg()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEDATABASESRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribeDeployOrderDetailRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribeDeployOrderDetailRequest.h new file mode 100644 index 000000000..68cbd5257 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribeDeployOrderDetailRequest.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_RETAILCLOUD_MODEL_DESCRIBEDEPLOYORDERDETAILREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEDEPLOYORDERDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribeDeployOrderDetailRequest : public RpcServiceRequest + { + + public: + DescribeDeployOrderDetailRequest(); + ~DescribeDeployOrderDetailRequest(); + + long getDeployOrderId()const; + void setDeployOrderId(long deployOrderId); + + private: + long deployOrderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEDEPLOYORDERDETAILREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribeDeployOrderDetailResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribeDeployOrderDetailResult.h new file mode 100644 index 000000000..d5e5f9cb2 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribeDeployOrderDetailResult.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEDEPLOYORDERDETAILRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEDEPLOYORDERDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribeDeployOrderDetailResult : public ServiceResult + { + public: + struct Result + { + std::string deployType; + std::string description; + int totalPartitions; + std::string endTime; + std::string deployPauseType; + long envId; + int elapsedTime; + std::string deployTypeName; + std::string envType; + std::string failureRate; + long deployOrderId; + std::string name; + int result; + int totalAppInstanceCt; + std::string resultName; + int currentPartitionNum; + std::string deployPauseTypeName; + std::string userNick; + int status; + std::string startTime; + std::string statusName; + std::string partitionType; + std::string partitionTypeName; + std::string appInstanceType; + std::string userId; + long schemaId; + int finishAppInstanceCt; + }; + + + DescribeDeployOrderDetailResult(); + explicit DescribeDeployOrderDetailResult(const std::string &payload); + ~DescribeDeployOrderDetailResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEDEPLOYORDERDETAILRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribePodEventsRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribePodEventsRequest.h new file mode 100644 index 000000000..3f8c0c1b6 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribePodEventsRequest.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_RETAILCLOUD_MODEL_DESCRIBEPODEVENTSREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEPODEVENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribePodEventsRequest : public RpcServiceRequest + { + + public: + DescribePodEventsRequest(); + ~DescribePodEventsRequest(); + + long getDeployOrderId()const; + void setDeployOrderId(long deployOrderId); + std::string getAppInstId()const; + void setAppInstId(const std::string& appInstId); + + private: + long deployOrderId_; + std::string appInstId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEPODEVENTSREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribePodEventsResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribePodEventsResult.h new file mode 100644 index 000000000..0633506b8 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribePodEventsResult.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_RETAILCLOUD_MODEL_DESCRIBEPODEVENTSRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEPODEVENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribePodEventsResult : public ServiceResult + { + public: + struct Result + { + struct PodEvent + { + std::string action; + std::string type; + std::string lastTimestamp; + std::string message; + std::string eventTime; + int count; + std::string firstTimestamp; + std::string reason; + }; + std::string deployOrderName; + std::vector podEvents; + }; + + + DescribePodEventsResult(); + explicit DescribePodEventsResult(const std::string &payload); + ~DescribePodEventsResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEPODEVENTSRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribePodLogRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribePodLogRequest.h new file mode 100644 index 000000000..94d6c53fa --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribePodLogRequest.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_RETAILCLOUD_MODEL_DESCRIBEPODLOGREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEPODLOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribePodLogRequest : public RpcServiceRequest + { + + public: + DescribePodLogRequest(); + ~DescribePodLogRequest(); + + long getDeployOrderId()const; + void setDeployOrderId(long deployOrderId); + std::string getAppInstId()const; + void setAppInstId(const std::string& appInstId); + + private: + long deployOrderId_; + std::string appInstId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEPODLOGREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribePodLogResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribePodLogResult.h new file mode 100644 index 000000000..48abf64ce --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribePodLogResult.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_RETAILCLOUD_MODEL_DESCRIBEPODLOGRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEPODLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribePodLogResult : public ServiceResult + { + public: + struct Result + { + struct DeployLogStepRC + { + std::string status; + std::string stepCode; + std::string stepLog; + std::string stepName; + }; + std::string deployOrderName; + std::string envTypeName; + std::vector deployStepList; + }; + + + DescribePodLogResult(); + explicit DescribePodLogResult(const std::string &payload); + ~DescribePodLogResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBEPODLOGRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribeRdsAccountsRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribeRdsAccountsRequest.h new file mode 100644 index 000000000..18a76308f --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribeRdsAccountsRequest.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_RETAILCLOUD_MODEL_DESCRIBERDSACCOUNTSREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBERDSACCOUNTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribeRdsAccountsRequest : public RpcServiceRequest + { + + public: + DescribeRdsAccountsRequest(); + ~DescribeRdsAccountsRequest(); + + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getDbInstanceId()const; + void setDbInstanceId(const std::string& dbInstanceId); + + private: + std::string accountName_; + std::string dbInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBERDSACCOUNTSREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribeRdsAccountsResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribeRdsAccountsResult.h new file mode 100644 index 000000000..6c2f0d09d --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribeRdsAccountsResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBERDSACCOUNTSRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBERDSACCOUNTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribeRdsAccountsResult : public ServiceResult + { + public: + struct Result + { + struct AccountsItem + { + struct DatabasePrivilegesItem + { + std::string accountPrivilege; + std::string dBName; + std::string accountPrivilegeDetail; + }; + std::string accountDescription; + std::string accountStatus; + std::string privExceeded; + std::string dBInstanceId; + std::string accountType; + std::vector databasePrivileges; + std::string accountName; + }; + std::vector accounts; + }; + + + DescribeRdsAccountsResult(); + explicit DescribeRdsAccountsResult(const std::string &payload); + ~DescribeRdsAccountsResult(); + std::string getErrMsg()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBERDSACCOUNTSRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribeServiceDetailRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribeServiceDetailRequest.h new file mode 100644 index 000000000..5f10a0f87 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribeServiceDetailRequest.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_RETAILCLOUD_MODEL_DESCRIBESERVICEDETAILREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBESERVICEDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribeServiceDetailRequest : public RpcServiceRequest + { + + public: + DescribeServiceDetailRequest(); + ~DescribeServiceDetailRequest(); + + long getServiceId()const; + void setServiceId(long serviceId); + + private: + long serviceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBESERVICEDETAILREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribeServiceDetailResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribeServiceDetailResult.h new file mode 100644 index 000000000..e8651dcdc --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribeServiceDetailResult.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_RETAILCLOUD_MODEL_DESCRIBESERVICEDETAILRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBESERVICEDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribeServiceDetailResult : public ServiceResult + { + public: + struct Result + { + struct ServicePortMapping + { + std::string targetPort; + int port; + int nodePort; + std::string protocol; + std::string name; + }; + std::string clusterIP; + std::vector portMappings; + long appId; + std::string k8sServiceId; + std::string serviceType; + long envId; + bool headless; + std::string name; + long serviceId; + }; + + + DescribeServiceDetailResult(); + explicit DescribeServiceDetailResult(const std::string &payload); + ~DescribeServiceDetailResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBESERVICEDETAILRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribeSlbAPDetailRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribeSlbAPDetailRequest.h new file mode 100644 index 000000000..1fb4e9027 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribeSlbAPDetailRequest.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_RETAILCLOUD_MODEL_DESCRIBESLBAPDETAILREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBESLBAPDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribeSlbAPDetailRequest : public RpcServiceRequest + { + + public: + DescribeSlbAPDetailRequest(); + ~DescribeSlbAPDetailRequest(); + + long getSlbAPId()const; + void setSlbAPId(long slbAPId); + + private: + long slbAPId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBESLBAPDETAILREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/DescribeSlbAPDetailResult.h b/retailcloud/include/alibabacloud/retailcloud/model/DescribeSlbAPDetailResult.h new file mode 100644 index 000000000..acccd2562 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/DescribeSlbAPDetailResult.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_RETAILCLOUD_MODEL_DESCRIBESLBAPDETAILRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBESLBAPDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT DescribeSlbAPDetailResult : public ServiceResult + { + public: + struct Result + { + int cookieTimeout; + std::string slbId; + int listenerPort; + int realServerPort; + long slbAPId; + long envId; + std::string networkMode; + std::string name; + int stickySession; + long appId; + std::string slbIp; + std::string sslCertId; + std::string protocol; + int establishedTimeout; + }; + + + DescribeSlbAPDetailResult(); + explicit DescribeSlbAPDetailResult(const std::string &payload); + ~DescribeSlbAPDetailResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_DESCRIBESLBAPDETAILRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/GetInstTransInfoRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/GetInstTransInfoRequest.h new file mode 100644 index 000000000..51b130a5a --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/GetInstTransInfoRequest.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_RETAILCLOUD_MODEL_GETINSTTRANSINFOREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_GETINSTTRANSINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT GetInstTransInfoRequest : public RpcServiceRequest + { + + public: + GetInstTransInfoRequest(); + ~GetInstTransInfoRequest(); + + std::string getAliyunUid()const; + void setAliyunUid(const std::string& aliyunUid); + std::string getAliyunEquipId()const; + void setAliyunEquipId(const std::string& aliyunEquipId); + std::string getAliyunCommodityCode()const; + void setAliyunCommodityCode(const std::string& aliyunCommodityCode); + + private: + std::string aliyunUid_; + std::string aliyunEquipId_; + std::string aliyunCommodityCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_GETINSTTRANSINFOREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/GetInstTransInfoResult.h b/retailcloud/include/alibabacloud/retailcloud/model/GetInstTransInfoResult.h new file mode 100644 index 000000000..8302d2571 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/GetInstTransInfoResult.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_RETAILCLOUD_MODEL_GETINSTTRANSINFORESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_GETINSTTRANSINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT GetInstTransInfoResult : public ServiceResult + { + public: + + + GetInstTransInfoResult(); + explicit GetInstTransInfoResult(const std::string &payload); + ~GetInstTransInfoResult(); + long getEndTime()const; + std::string getInstanceId()const; + std::string getChargeType()const; + long getStartTime()const; + bool getIsAutoRenew()const; + int getRenewCycle()const; + + protected: + void parse(const std::string &payload); + private: + long endTime_; + std::string instanceId_; + std::string chargeType_; + long startTime_; + bool isAutoRenew_; + int renewCycle_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_GETINSTTRANSINFORESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/GetRdsBackUpRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/GetRdsBackUpRequest.h new file mode 100644 index 000000000..dcf83e509 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/GetRdsBackUpRequest.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_RETAILCLOUD_MODEL_GETRDSBACKUPREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_GETRDSBACKUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT GetRdsBackUpRequest : public RpcServiceRequest + { + + public: + GetRdsBackUpRequest(); + ~GetRdsBackUpRequest(); + + std::string getBackupId()const; + void setBackupId(const std::string& backupId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDbInstanceId()const; + void setDbInstanceId(const std::string& dbInstanceId); + std::string getBackupType()const; + void setBackupType(const std::string& backupType); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string backupId_; + int pageSize_; + std::string dbInstanceId_; + std::string backupType_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_GETRDSBACKUPREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/GetRdsBackUpResult.h b/retailcloud/include/alibabacloud/retailcloud/model/GetRdsBackUpResult.h new file mode 100644 index 000000000..d73b2e938 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/GetRdsBackUpResult.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_GETRDSBACKUPRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_GETRDSBACKUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT GetRdsBackUpResult : public ServiceResult + { + public: + struct Result + { + struct Backup + { + std::string backupMethod; + std::string backupExtractionStatus; + std::string backupMode; + long backupSize; + std::string backupId; + std::string hostInstanceID; + std::string backupDBNames; + std::string storeStatus; + std::string dBInstanceId; + std::string backupEndTime; + std::string backupStartTime; + std::string backupType; + std::string metaStatus; + std::string backupScale; + std::string backupStatus; + std::string backupLocation; + long totalBackupSize; + }; + std::string totalRecordCount; + std::string pageRecordCount; + std::string pageNumber; + std::vector items; + long totalBackupSize; + }; + + + GetRdsBackUpResult(); + explicit GetRdsBackUpResult(const std::string &payload); + ~GetRdsBackUpResult(); + std::string getErrMsg()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_GETRDSBACKUPRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/GrantDbToAccountRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/GrantDbToAccountRequest.h new file mode 100644 index 000000000..12ca157a3 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/GrantDbToAccountRequest.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_RETAILCLOUD_MODEL_GRANTDBTOACCOUNTREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_GRANTDBTOACCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT GrantDbToAccountRequest : public RpcServiceRequest + { + + public: + GrantDbToAccountRequest(); + ~GrantDbToAccountRequest(); + + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getDbName()const; + void setDbName(const std::string& dbName); + std::string getDbInstanceId()const; + void setDbInstanceId(const std::string& dbInstanceId); + std::string getAccountPrivilege()const; + void setAccountPrivilege(const std::string& accountPrivilege); + + private: + std::string accountName_; + std::string dbName_; + std::string dbInstanceId_; + std::string accountPrivilege_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_GRANTDBTOACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/GrantDbToAccountResult.h b/retailcloud/include/alibabacloud/retailcloud/model/GrantDbToAccountResult.h new file mode 100644 index 000000000..7b0b042fd --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/GrantDbToAccountResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_GRANTDBTOACCOUNTRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_GRANTDBTOACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT GrantDbToAccountResult : public ServiceResult + { + public: + + + GrantDbToAccountResult(); + explicit GrantDbToAccountResult(const std::string &payload); + ~GrantDbToAccountResult(); + std::string getErrMsg()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_GRANTDBTOACCOUNTRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListAppCmsGroupsRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ListAppCmsGroupsRequest.h new file mode 100644 index 000000000..836186820 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListAppCmsGroupsRequest.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_RETAILCLOUD_MODEL_LISTAPPCMSGROUPSREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPCMSGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListAppCmsGroupsRequest : public RpcServiceRequest + { + + public: + ListAppCmsGroupsRequest(); + ~ListAppCmsGroupsRequest(); + + long getAppId()const; + void setAppId(long appId); + int getPageSize()const; + void setPageSize(int pageSize); + long getEnvId()const; + void setEnvId(long envId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long appId_; + int pageSize_; + long envId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPCMSGROUPSREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListAppCmsGroupsResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ListAppCmsGroupsResult.h new file mode 100644 index 000000000..78d7b829a --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListAppCmsGroupsResult.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_RETAILCLOUD_MODEL_LISTAPPCMSGROUPSRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPCMSGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListAppCmsGroupsResult : public ServiceResult + { + public: + + + ListAppCmsGroupsResult(); + explicit ListAppCmsGroupsResult(const std::string &payload); + ~ListAppCmsGroupsResult(); + long getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrorMsg()const; + std::vector getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + int pageSize_; + int pageNumber_; + std::string errorMsg_; + std::vector data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPCMSGROUPSRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListAppEnvironmentRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ListAppEnvironmentRequest.h new file mode 100644 index 000000000..ba6316540 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListAppEnvironmentRequest.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_RETAILCLOUD_MODEL_LISTAPPENVIRONMENTREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPENVIRONMENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListAppEnvironmentRequest : public RpcServiceRequest + { + + public: + ListAppEnvironmentRequest(); + ~ListAppEnvironmentRequest(); + + std::string getEnvName()const; + void setEnvName(const std::string& envName); + long getAppId()const; + void setAppId(long appId); + int getEnvType()const; + void setEnvType(int envType); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string envName_; + long appId_; + int envType_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPENVIRONMENTREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListAppEnvironmentResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ListAppEnvironmentResult.h new file mode 100644 index 000000000..4be060f17 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListAppEnvironmentResult.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_RETAILCLOUD_MODEL_LISTAPPENVIRONMENTRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPENVIRONMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListAppEnvironmentResult : public ServiceResult + { + public: + struct AppEnvironmentResponse + { + long appId; + long appSchemaId; + std::string envTypeName; + long envId; + std::string region; + std::string envName; + int envType; + }; + + + ListAppEnvironmentResult(); + explicit ListAppEnvironmentResult(const std::string &payload); + ~ListAppEnvironmentResult(); + long getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrorMsg()const; + std::vector getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + int pageSize_; + int pageNumber_; + std::string errorMsg_; + std::vector data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPENVIRONMENTRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListAppInstanceRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ListAppInstanceRequest.h new file mode 100644 index 000000000..df0676fd7 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListAppInstanceRequest.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_RETAILCLOUD_MODEL_LISTAPPINSTANCEREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListAppInstanceRequest : public RpcServiceRequest + { + + public: + ListAppInstanceRequest(); + ~ListAppInstanceRequest(); + + long getAppId()const; + void setAppId(long appId); + int getPageSize()const; + void setPageSize(int pageSize); + long getEnvId()const; + void setEnvId(long envId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long appId_; + int pageSize_; + long envId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListAppInstanceResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ListAppInstanceResult.h new file mode 100644 index 000000000..4606ab728 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListAppInstanceResult.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_RETAILCLOUD_MODEL_LISTAPPINSTANCERESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListAppInstanceResult : public ServiceResult + { + public: + struct AppInstanceDetail + { + int restartCount; + std::string hostIp; + std::string appInstanceId; + std::string limits; + std::string health; + std::string createTime; + std::string podIp; + std::string spec; + std::string requests; + }; + + + ListAppInstanceResult(); + explicit ListAppInstanceResult(const std::string &payload); + ~ListAppInstanceResult(); + long getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrMsg()const; + std::vector getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + int pageSize_; + int pageNumber_; + std::string errMsg_; + std::vector data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPINSTANCERESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListAppRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ListAppRequest.h new file mode 100644 index 000000000..3afbf55f1 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListAppRequest.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_RETAILCLOUD_MODEL_LISTAPPREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListAppRequest : public RpcServiceRequest + { + + public: + ListAppRequest(); + ~ListAppRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListAppResourceAllocsRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ListAppResourceAllocsRequest.h new file mode 100644 index 000000000..20ab76484 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListAppResourceAllocsRequest.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_RETAILCLOUD_MODEL_LISTAPPRESOURCEALLOCSREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPRESOURCEALLOCSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListAppResourceAllocsRequest : public RpcServiceRequest + { + + public: + ListAppResourceAllocsRequest(); + ~ListAppResourceAllocsRequest(); + + long getAppId()const; + void setAppId(long appId); + int getPageSize()const; + void setPageSize(int pageSize); + long getAppEnvId()const; + void setAppEnvId(long appEnvId); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long appId_; + int pageSize_; + long appEnvId_; + std::string clusterId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPRESOURCEALLOCSREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListAppResourceAllocsResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ListAppResourceAllocsResult.h new file mode 100644 index 000000000..2ddd9bae9 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListAppResourceAllocsResult.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_RETAILCLOUD_MODEL_LISTAPPRESOURCEALLOCSRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPRESOURCEALLOCSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListAppResourceAllocsResult : public ServiceResult + { + public: + struct ListAppResourceAllocResponse + { + long appEnvId; + long appId; + std::string clusterId; + std::string resourceDef; + long id; + }; + + + ListAppResourceAllocsResult(); + explicit ListAppResourceAllocsResult(const std::string &payload); + ~ListAppResourceAllocsResult(); + long getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrorMsg()const; + std::vector getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + int pageSize_; + int pageNumber_; + std::string errorMsg_; + std::vector data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPRESOURCEALLOCSRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListAppResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ListAppResult.h new file mode 100644 index 000000000..5da09ee4e --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListAppResult.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_RETAILCLOUD_MODEL_LISTAPPRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListAppResult : public ServiceResult + { + public: + struct AppDetail + { + struct MiddleWareInfo + { + long appId; + int code; + std::string name; + }; + std::string operatingSystem; + std::string deployType; + std::string appStateType; + std::string description; + long appId; + std::string language; + std::string serviceType; + std::vector middleWareList; + std::string title; + std::string bizTitle; + std::string bizName; + }; + + + ListAppResult(); + explicit ListAppResult(const std::string &payload); + ~ListAppResult(); + int getTotalCount()const; + std::string getErrorMsg()const; + std::vector getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string errorMsg_; + std::vector data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAPPRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListAvailableClusterNodeRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ListAvailableClusterNodeRequest.h new file mode 100644 index 000000000..77f9fa684 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListAvailableClusterNodeRequest.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_RETAILCLOUD_MODEL_LISTAVAILABLECLUSTERNODEREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAVAILABLECLUSTERNODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListAvailableClusterNodeRequest : public RpcServiceRequest + { + + public: + ListAvailableClusterNodeRequest(); + ~ListAvailableClusterNodeRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNum()const; + void setPageNum(int pageNum); + std::string getClusterInstanceId()const; + void setClusterInstanceId(const std::string& clusterInstanceId); + + private: + int pageSize_; + int pageNum_; + std::string clusterInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAVAILABLECLUSTERNODEREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListAvailableClusterNodeResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ListAvailableClusterNodeResult.h new file mode 100644 index 000000000..46abbe36d --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListAvailableClusterNodeResult.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_RETAILCLOUD_MODEL_LISTAVAILABLECLUSTERNODERESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAVAILABLECLUSTERNODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListAvailableClusterNodeResult : public ServiceResult + { + public: + struct ClusterNodeInfo + { + std::string ecsLocalStorageCapacity; + std::string ecsPrivateIp; + std::string instanceId; + std::string businessCode; + std::string oSName; + std::string ecsMemory; + std::string ecsOsType; + std::string instanceNetworkType; + std::string instanceName; + std::string ecsEip; + std::string internetMaxBandwidthOut; + std::string internetMaxBandwidthIn; + std::string vpcId; + std::string ecsCpu; + std::string ecsPublicIp; + std::string ecsExpiredTime; + std::string regionId; + std::string instanceType; + std::string ecsZone; + std::string ecsConfiguration; + }; + + + ListAvailableClusterNodeResult(); + explicit ListAvailableClusterNodeResult(const std::string &payload); + ~ListAvailableClusterNodeResult(); + long getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrorMsg()const; + std::vector getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + int pageSize_; + int pageNumber_; + std::string errorMsg_; + std::vector data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTAVAILABLECLUSTERNODERESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListClusterNodeRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ListClusterNodeRequest.h new file mode 100644 index 000000000..b07510aba --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListClusterNodeRequest.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_RETAILCLOUD_MODEL_LISTCLUSTERNODEREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTCLUSTERNODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListClusterNodeRequest : public RpcServiceRequest + { + + public: + ListClusterNodeRequest(); + ~ListClusterNodeRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNum()const; + void setPageNum(int pageNum); + std::string getClusterInstanceId()const; + void setClusterInstanceId(const std::string& clusterInstanceId); + + private: + int pageSize_; + int pageNum_; + std::string clusterInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTCLUSTERNODEREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListClusterNodeResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ListClusterNodeResult.h new file mode 100644 index 000000000..d5479d861 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListClusterNodeResult.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_RETAILCLOUD_MODEL_LISTCLUSTERNODERESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTCLUSTERNODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListClusterNodeResult : public ServiceResult + { + public: + struct ClusterNodeInfo + { + std::string ecsLocalStorageCapacity; + std::string ecsPrivateIp; + std::string instanceId; + std::string businessCode; + std::string oSName; + std::string ecsMemory; + std::string ecsOsType; + std::string instanceNetworkType; + std::string instanceName; + std::string ecsEip; + std::string internetMaxBandwidthOut; + std::string internetMaxBandwidthIn; + std::string vpcId; + std::string ecsCpu; + std::string ecsPublicIp; + std::string ecsExpiredTime; + std::string regionId; + std::string instanceType; + std::string ecsZone; + std::string ecsConfiguration; + }; + + + ListClusterNodeResult(); + explicit ListClusterNodeResult(const std::string &payload); + ~ListClusterNodeResult(); + long getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrorMsg()const; + std::vector getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + int pageSize_; + int pageNumber_; + std::string errorMsg_; + std::vector data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTCLUSTERNODERESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListClusterRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ListClusterRequest.h new file mode 100644 index 000000000..656743e09 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListClusterRequest.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_RETAILCLOUD_MODEL_LISTCLUSTERREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTCLUSTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListClusterRequest : public RpcServiceRequest + { + + public: + ListClusterRequest(); + ~ListClusterRequest(); + + std::string getBusinessCode()const; + void setBusinessCode(const std::string& businessCode); + std::string getEnvType()const; + void setEnvType(const std::string& envType); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNum()const; + void setPageNum(int pageNum); + + private: + std::string businessCode_; + std::string envType_; + int pageSize_; + int pageNum_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTCLUSTERREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListClusterResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ListClusterResult.h new file mode 100644 index 000000000..8b06c5949 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListClusterResult.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_LISTCLUSTERRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListClusterResult : public ServiceResult + { + public: + struct ClusterInfo + { + std::string createStatus; + std::string status; + std::string clusterTitle; + std::string workLoadCpu; + std::string keyPair; + std::string netPlug; + std::string podCIDR; + std::string instanceId; + std::vector ecsIds; + std::string businessCode; + std::string envType; + std::string workLoadMem; + std::string vpcId; + std::string regionName; + std::vector vswitchIds; + std::string serviceCIDR; + long id; + std::string regionId; + std::string password; + }; + + + ListClusterResult(); + explicit ListClusterResult(const std::string &payload); + ~ListClusterResult(); + long getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrorMsg()const; + std::vector getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + int pageSize_; + int pageNumber_; + std::string errorMsg_; + std::vector data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTCLUSTERRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListDeployConfigRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ListDeployConfigRequest.h new file mode 100644 index 000000000..ed8cdb502 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListDeployConfigRequest.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_RETAILCLOUD_MODEL_LISTDEPLOYCONFIGREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTDEPLOYCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListDeployConfigRequest : public RpcServiceRequest + { + + public: + ListDeployConfigRequest(); + ~ListDeployConfigRequest(); + + long getAppId()const; + void setAppId(long appId); + std::string getEnvType()const; + void setEnvType(const std::string& envType); + std::string getName()const; + void setName(const std::string& name); + long getId()const; + void setId(long id); + + private: + long appId_; + std::string envType_; + std::string name_; + long id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTDEPLOYCONFIGREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListDeployConfigResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ListDeployConfigResult.h new file mode 100644 index 000000000..44079eb1a --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListDeployConfigResult.h @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_LISTDEPLOYCONFIGRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTDEPLOYCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListDeployConfigResult : public ServiceResult + { + public: + struct DeployConfigInstance + { + struct ContainerCodePath + { + std::string codePath; + }; + struct ContainerYamlConf + { + std::vector configMapList; + std::string configMap; + std::vector secretList; + std::string deployment; + std::string statefulSet; + }; + ContainerYamlConf containerYamlConf; + ContainerCodePath containerCodePath; + long appId; + long id; + std::string envType; + std::string name; + }; + + + ListDeployConfigResult(); + explicit ListDeployConfigResult(const std::string &payload); + ~ListDeployConfigResult(); + long getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrorMsg()const; + std::vector getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + int pageSize_; + int pageNumber_; + std::string errorMsg_; + std::vector data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTDEPLOYCONFIGRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListDeployOrdersRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ListDeployOrdersRequest.h new file mode 100644 index 000000000..e58851cb2 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListDeployOrdersRequest.h @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_LISTDEPLOYORDERSREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTDEPLOYORDERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListDeployOrdersRequest : public RpcServiceRequest + { + + public: + ListDeployOrdersRequest(); + ~ListDeployOrdersRequest(); + + std::string getStartTimeGreaterThanOrEqualTo()const; + void setStartTimeGreaterThanOrEqualTo(const std::string& startTimeGreaterThanOrEqualTo); + std::vector getStatusList()const; + void setStatusList(const std::vector& statusList); + long getEnvId()const; + void setEnvId(long envId); + std::string getEndTimeGreaterThan()const; + void setEndTimeGreaterThan(const std::string& endTimeGreaterThan); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getPauseType()const; + void setPauseType(const std::string& pauseType); + std::vector getResultList()const; + void setResultList(const std::vector& resultList); + std::string getStartTimeGreaterThan()const; + void setStartTimeGreaterThan(const std::string& startTimeGreaterThan); + std::string getStartTimeLessThan()const; + void setStartTimeLessThan(const std::string& startTimeLessThan); + std::string getStartTimeLessThanOrEqualTo()const; + void setStartTimeLessThanOrEqualTo(const std::string& startTimeLessThanOrEqualTo); + long getAppId()const; + void setAppId(long appId); + std::string getEnvType()const; + void setEnvType(const std::string& envType); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTimeGreaterThanOrEqualTo()const; + void setEndTimeGreaterThanOrEqualTo(const std::string& endTimeGreaterThanOrEqualTo); + std::string getEndTimeLessThan()const; + void setEndTimeLessThan(const std::string& endTimeLessThan); + std::string getEndTimeLessThanOrEqualTo()const; + void setEndTimeLessThanOrEqualTo(const std::string& endTimeLessThanOrEqualTo); + std::string getPartitionType()const; + void setPartitionType(const std::string& partitionType); + std::string getDeployCategory()const; + void setDeployCategory(const std::string& deployCategory); + std::string getDeployType()const; + void setDeployType(const std::string& deployType); + int getStatus()const; + void setStatus(int status); + + private: + std::string startTimeGreaterThanOrEqualTo_; + std::vector statusList_; + long envId_; + std::string endTimeGreaterThan_; + int pageNumber_; + std::string pauseType_; + std::vector resultList_; + std::string startTimeGreaterThan_; + std::string startTimeLessThan_; + std::string startTimeLessThanOrEqualTo_; + long appId_; + std::string envType_; + int pageSize_; + std::string endTimeGreaterThanOrEqualTo_; + std::string endTimeLessThan_; + std::string endTimeLessThanOrEqualTo_; + std::string partitionType_; + std::string deployCategory_; + std::string deployType_; + int status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTDEPLOYORDERSREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListDeployOrdersResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ListDeployOrdersResult.h new file mode 100644 index 000000000..87a2ec967 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListDeployOrdersResult.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_RETAILCLOUD_MODEL_LISTDEPLOYORDERSRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTDEPLOYORDERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListDeployOrdersResult : public ServiceResult + { + public: + struct DeployOrderInstance + { + std::string deployType; + std::string description; + int totalPartitions; + std::string endTime; + std::string deployPauseType; + long envId; + int elapsedTime; + std::string deployTypeName; + std::string envType; + std::string failureRate; + long deployOrderId; + std::string name; + int result; + int totalAppInstanceCt; + std::string resultName; + int currentPartitionNum; + std::string deployPauseTypeName; + std::string userNick; + int status; + std::string startTime; + std::string statusName; + std::string partitionType; + std::string partitionTypeName; + std::string appInstanceType; + std::string userId; + long schemaId; + int finishAppInstanceCt; + }; + + + ListDeployOrdersResult(); + explicit ListDeployOrdersResult(const std::string &payload); + ~ListDeployOrdersResult(); + long getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrorMsg()const; + std::vector getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + int pageSize_; + int pageNumber_; + std::string errorMsg_; + std::vector data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTDEPLOYORDERSRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListNodeLabelBindingsRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ListNodeLabelBindingsRequest.h new file mode 100644 index 000000000..740df6760 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListNodeLabelBindingsRequest.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_RETAILCLOUD_MODEL_LISTNODELABELBINDINGSREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTNODELABELBINDINGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListNodeLabelBindingsRequest : public RpcServiceRequest + { + + public: + ListNodeLabelBindingsRequest(); + ~ListNodeLabelBindingsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getLabelKey()const; + void setLabelKey(const std::string& labelKey); + std::string getLabelValue()const; + void setLabelValue(const std::string& labelValue); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string instanceId_; + std::string labelKey_; + std::string labelValue_; + int pageSize_; + std::string clusterId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTNODELABELBINDINGSREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListNodeLabelBindingsResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ListNodeLabelBindingsResult.h new file mode 100644 index 000000000..54fdc5fef --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListNodeLabelBindingsResult.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_RETAILCLOUD_MODEL_LISTNODELABELBINDINGSRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTNODELABELBINDINGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListNodeLabelBindingsResult : public ServiceResult + { + public: + struct ListNodeLabelBindingResponse + { + std::string labelValue; + std::string instanceId; + std::string labelKey; + long id; + std::string instanceType; + }; + + + ListNodeLabelBindingsResult(); + explicit ListNodeLabelBindingsResult(const std::string &payload); + ~ListNodeLabelBindingsResult(); + long getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrorMsg()const; + std::vector getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + int pageSize_; + int pageNumber_; + std::string errorMsg_; + std::vector data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTNODELABELBINDINGSRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListNodeLabelsRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ListNodeLabelsRequest.h new file mode 100644 index 000000000..7875c5e68 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListNodeLabelsRequest.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_RETAILCLOUD_MODEL_LISTNODELABELSREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTNODELABELSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListNodeLabelsRequest : public RpcServiceRequest + { + + public: + ListNodeLabelsRequest(); + ~ListNodeLabelsRequest(); + + std::string getLabelKey()const; + void setLabelKey(const std::string& labelKey); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string labelKey_; + int pageSize_; + std::string clusterId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTNODELABELSREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListNodeLabelsResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ListNodeLabelsResult.h new file mode 100644 index 000000000..26ebe2cbb --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListNodeLabelsResult.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_RETAILCLOUD_MODEL_LISTNODELABELSRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTNODELABELSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListNodeLabelsResult : public ServiceResult + { + public: + struct ListNodeLabelResponse + { + std::string labelValue; + std::string clusterId; + std::string labelKey; + long id; + }; + + + ListNodeLabelsResult(); + explicit ListNodeLabelsResult(const std::string &payload); + ~ListNodeLabelsResult(); + long getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrorMsg()const; + std::vector getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + int pageSize_; + int pageNumber_; + std::string errorMsg_; + std::vector data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTNODELABELSRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListPersistentVolumeClaimRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ListPersistentVolumeClaimRequest.h new file mode 100644 index 000000000..f5d7b7619 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListPersistentVolumeClaimRequest.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_RETAILCLOUD_MODEL_LISTPERSISTENTVOLUMECLAIMREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTPERSISTENTVOLUMECLAIMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListPersistentVolumeClaimRequest : public RpcServiceRequest + { + + public: + ListPersistentVolumeClaimRequest(); + ~ListPersistentVolumeClaimRequest(); + + long getAppId()const; + void setAppId(long appId); + int getPageSize()const; + void setPageSize(int pageSize); + long getEnvId()const; + void setEnvId(long envId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long appId_; + int pageSize_; + long envId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTPERSISTENTVOLUMECLAIMREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListPersistentVolumeClaimResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ListPersistentVolumeClaimResult.h new file mode 100644 index 000000000..9f9187731 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListPersistentVolumeClaimResult.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_RETAILCLOUD_MODEL_LISTPERSISTENTVOLUMECLAIMRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTPERSISTENTVOLUMECLAIMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListPersistentVolumeClaimResult : public ServiceResult + { + public: + struct PersistentVolumeClaimDetail + { + std::string status; + std::string volumeName; + std::string capacity; + std::string storageClass; + std::string createTime; + std::string accessModes; + std::string name; + }; + + + ListPersistentVolumeClaimResult(); + explicit ListPersistentVolumeClaimResult(const std::string &payload); + ~ListPersistentVolumeClaimResult(); + long getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrorMsg()const; + std::vector getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + int pageSize_; + int pageNumber_; + std::string errorMsg_; + std::vector data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTPERSISTENTVOLUMECLAIMRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListPersistentVolumeRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ListPersistentVolumeRequest.h new file mode 100644 index 000000000..4d4911a55 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListPersistentVolumeRequest.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_RETAILCLOUD_MODEL_LISTPERSISTENTVOLUMEREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTPERSISTENTVOLUMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListPersistentVolumeRequest : public RpcServiceRequest + { + + public: + ListPersistentVolumeRequest(); + ~ListPersistentVolumeRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getClusterInstanceId()const; + void setClusterInstanceId(const std::string& clusterInstanceId); + + private: + int pageSize_; + int pageNumber_; + std::string clusterInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTPERSISTENTVOLUMEREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListPersistentVolumeResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ListPersistentVolumeResult.h new file mode 100644 index 000000000..0af05900c --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListPersistentVolumeResult.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_RETAILCLOUD_MODEL_LISTPERSISTENTVOLUMERESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTPERSISTENTVOLUMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListPersistentVolumeResult : public ServiceResult + { + public: + struct PersistentVolumeDetail + { + std::string status; + std::string capacity; + std::string reclaimPolicy; + std::string storageClass; + std::string createTime; + std::string accessModes; + std::string mountDir; + std::string pvcName; + std::string reason; + std::string name; + }; + + + ListPersistentVolumeResult(); + explicit ListPersistentVolumeResult(const std::string &payload); + ~ListPersistentVolumeResult(); + long getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrMsg()const; + std::vector getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + int pageSize_; + int pageNumber_; + std::string errMsg_; + std::vector data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTPERSISTENTVOLUMERESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListPodsRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ListPodsRequest.h new file mode 100644 index 000000000..68401bdc7 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListPodsRequest.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_RETAILCLOUD_MODEL_LISTPODSREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTPODSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListPodsRequest : public RpcServiceRequest + { + + public: + ListPodsRequest(); + ~ListPodsRequest(); + + std::vector getStatusList()const; + void setStatusList(const std::vector& statusList); + long getDeployOrderId()const; + void setDeployOrderId(long deployOrderId); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getResultList()const; + void setResultList(const std::vector& resultList); + + private: + std::vector statusList_; + long deployOrderId_; + int pageSize_; + int pageNumber_; + std::vector resultList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTPODSREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListPodsResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ListPodsResult.h new file mode 100644 index 000000000..b9063fc3b --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListPodsResult.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_LISTPODSRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTPODSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListPodsResult : public ServiceResult + { + public: + struct PodDetail + { + struct DeployStep + { + std::string status; + std::string stepCode; + std::string stepName; + }; + std::string groupName; + std::string hostIp; + int status; + int deployPartitionNum; + std::string startTime; + std::string statusName; + long deployOrderId; + int result; + std::string appInstanceId; + std::string resultName; + std::string podIp; + std::string updateTime; + std::string region; + std::vector deploySteps; + std::string hostName; + }; + + + ListPodsResult(); + explicit ListPodsResult(const std::string &payload); + ~ListPodsResult(); + long getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrorMsg()const; + std::vector getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + int pageSize_; + int pageNumber_; + std::string errorMsg_; + std::vector data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTPODSRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListServicesRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ListServicesRequest.h new file mode 100644 index 000000000..2355051c8 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListServicesRequest.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_RETAILCLOUD_MODEL_LISTSERVICESREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTSERVICESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListServicesRequest : public RpcServiceRequest + { + + public: + ListServicesRequest(); + ~ListServicesRequest(); + + std::string getServiceType()const; + void setServiceType(const std::string& serviceType); + long getAppId()const; + void setAppId(long appId); + std::string getName()const; + void setName(const std::string& name); + int getPageSize()const; + void setPageSize(int pageSize); + long getEnvId()const; + void setEnvId(long envId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string serviceType_; + long appId_; + std::string name_; + int pageSize_; + long envId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTSERVICESREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListServicesResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ListServicesResult.h new file mode 100644 index 000000000..64236d3f9 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListServicesResult.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_LISTSERVICESRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTSERVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListServicesResult : public ServiceResult + { + public: + struct ServiceInstance + { + struct ServicePortMapping + { + std::string targetPort; + int port; + int nodePort; + std::string protocol; + std::string name; + }; + std::string clusterIP; + std::vector portMappings; + long appId; + std::string k8sServiceId; + std::string serviceType; + long envId; + bool headless; + std::string name; + long serviceId; + }; + + + ListServicesResult(); + explicit ListServicesResult(const std::string &payload); + ~ListServicesResult(); + std::string getClusterIP()const; + long getTotalCount()const; + std::string getClusterIP1()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrorMsg()const; + std::vector getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string clusterIP_; + long totalCount_; + std::string clusterIP1_; + int pageSize_; + int pageNumber_; + std::string errorMsg_; + std::vector data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTSERVICESRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListSlbAPsRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ListSlbAPsRequest.h new file mode 100644 index 000000000..fc800fa30 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListSlbAPsRequest.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_RETAILCLOUD_MODEL_LISTSLBAPSREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTSLBAPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListSlbAPsRequest : public RpcServiceRequest + { + + public: + ListSlbAPsRequest(); + ~ListSlbAPsRequest(); + + std::vector getProtocolList()const; + void setProtocolList(const std::vector& protocolList); + std::string getSlbId()const; + void setSlbId(const std::string& slbId); + long getAppId()const; + void setAppId(long appId); + std::string getName()const; + void setName(const std::string& name); + int getPageSize()const; + void setPageSize(int pageSize); + long getEnvId()const; + void setEnvId(long envId); + std::string getNetworkMode()const; + void setNetworkMode(const std::string& networkMode); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::vector protocolList_; + std::string slbId_; + long appId_; + std::string name_; + int pageSize_; + long envId_; + std::string networkMode_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTSLBAPSREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListSlbAPsResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ListSlbAPsResult.h new file mode 100644 index 000000000..ef68bb1d0 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListSlbAPsResult.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_LISTSLBAPSRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTSLBAPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListSlbAPsResult : public ServiceResult + { + public: + struct SlbAPInstance + { + int cookieTimeout; + std::string slbId; + int listenerPort; + int realServerPort; + long slbAPId; + long envId; + std::string networkMode; + std::string name; + int stickySession; + long appId; + std::string slbIp; + std::string sslCertId; + std::string protocol; + int establishedTimeout; + }; + + + ListSlbAPsResult(); + explicit ListSlbAPsResult(const std::string &payload); + ~ListSlbAPsResult(); + long getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrorMsg()const; + std::vector getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + int pageSize_; + int pageNumber_; + std::string errorMsg_; + std::vector data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTSLBAPSRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListUsersRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ListUsersRequest.h new file mode 100644 index 000000000..87c2adc0e --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListUsersRequest.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_RETAILCLOUD_MODEL_LISTUSERSREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTUSERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListUsersRequest : public RpcServiceRequest + { + + public: + ListUsersRequest(); + ~ListUsersRequest(); + + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTUSERSREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ListUsersResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ListUsersResult.h new file mode 100644 index 000000000..bc9cbc254 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ListUsersResult.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_RETAILCLOUD_MODEL_LISTUSERSRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_LISTUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ListUsersResult : public ServiceResult + { + public: + struct ListUserResponse + { + std::string userId; + std::string realName; + std::string userType; + }; + + + ListUsersResult(); + explicit ListUsersResult(const std::string &payload); + ~ListUsersResult(); + long getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getErrorMsg()const; + std::vector getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + int pageSize_; + int pageNumber_; + std::string errorMsg_; + std::vector data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_LISTUSERSRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ModifyServiceRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ModifyServiceRequest.h new file mode 100644 index 000000000..bafdafdb3 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ModifyServiceRequest.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_RETAILCLOUD_MODEL_MODIFYSERVICEREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_MODIFYSERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ModifyServiceRequest : public RpcServiceRequest + { + public: + struct PortMappings + { + std::string protocol; + int port; + std::string name; + int nodePort; + std::string targetPort; + }; + + public: + ModifyServiceRequest(); + ~ModifyServiceRequest(); + + std::string getName()const; + void setName(const std::string& name); + std::vector getPortMappings()const; + void setPortMappings(const std::vector& portMappings); + long getServiceId()const; + void setServiceId(long serviceId); + + private: + std::string name_; + std::vector portMappings_; + long serviceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_MODIFYSERVICEREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ModifyServiceResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ModifyServiceResult.h new file mode 100644 index 000000000..75ad9fd0d --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ModifyServiceResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_MODIFYSERVICERESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_MODIFYSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ModifyServiceResult : public ServiceResult + { + public: + + + ModifyServiceResult(); + explicit ModifyServiceResult(const std::string &payload); + ~ModifyServiceResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_MODIFYSERVICERESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ModifySlbAPRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ModifySlbAPRequest.h new file mode 100644 index 000000000..6951206a7 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ModifySlbAPRequest.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_RETAILCLOUD_MODEL_MODIFYSLBAPREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_MODIFYSLBAPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ModifySlbAPRequest : public RpcServiceRequest + { + + public: + ModifySlbAPRequest(); + ~ModifySlbAPRequest(); + + std::string getSslCertId()const; + void setSslCertId(const std::string& sslCertId); + int getEstablishedTimeout()const; + void setEstablishedTimeout(int establishedTimeout); + int getRealServerPort()const; + void setRealServerPort(int realServerPort); + int getStickySession()const; + void setStickySession(int stickySession); + int getCookieTimeout()const; + void setCookieTimeout(int cookieTimeout); + std::string getName()const; + void setName(const std::string& name); + long getSlbAPId()const; + void setSlbAPId(long slbAPId); + + private: + std::string sslCertId_; + int establishedTimeout_; + int realServerPort_; + int stickySession_; + int cookieTimeout_; + std::string name_; + long slbAPId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_MODIFYSLBAPREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ModifySlbAPResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ModifySlbAPResult.h new file mode 100644 index 000000000..a3f4d587f --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ModifySlbAPResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_MODIFYSLBAPRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_MODIFYSLBAPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ModifySlbAPResult : public ServiceResult + { + public: + + + ModifySlbAPResult(); + explicit ModifySlbAPResult(const std::string &payload); + ~ModifySlbAPResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_MODIFYSLBAPRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/QueryClusterDetailRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/QueryClusterDetailRequest.h new file mode 100644 index 000000000..05d9dfc51 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/QueryClusterDetailRequest.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_RETAILCLOUD_MODEL_QUERYCLUSTERDETAILREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_QUERYCLUSTERDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT QueryClusterDetailRequest : public RpcServiceRequest + { + + public: + QueryClusterDetailRequest(); + ~QueryClusterDetailRequest(); + + std::string getClusterInstanceId()const; + void setClusterInstanceId(const std::string& clusterInstanceId); + + private: + std::string clusterInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_QUERYCLUSTERDETAILREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/QueryClusterDetailResult.h b/retailcloud/include/alibabacloud/retailcloud/model/QueryClusterDetailResult.h new file mode 100644 index 000000000..2b9fc2a61 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/QueryClusterDetailResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_QUERYCLUSTERDETAILRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_QUERYCLUSTERDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT QueryClusterDetailResult : public ServiceResult + { + public: + struct Result + { + struct BasicInfo + { + std::string clusterInstanceId; + std::string mainUserId; + bool installLogInProcess; + long clusterId; + bool hasInstallLogController; + std::vector ecsIds; + std::string businessCode; + std::vector vswitchs; + bool hasInstallArmsPilot; + std::string envType; + std::string vpcId; + bool installArmsInProcess; + std::string regionName; + std::string clusterName; + std::string regionId; + std::string userNick; + }; + struct InstanceInfo + { + int allocatePodCount; + std::vector allocatedPodInfoList; + int appCount; + std::vector availablePodInfoList; + }; + struct NetInfo + { + std::string prodCIDR; + std::string netPlugType; + std::string serviceCIDR; + }; + struct WorkLoad + { + std::string memLevel; + int allocateAppPodCount; + std::string cpuRequestPercent; + std::string memRequest; + std::string memUsePercent; + std::string cpuUsePercent; + std::string cpuUse; + std::string memTotal; + std::string cpuLevel; + std::string memUse; + std::string memRequestPercent; + int allNodeCount; + int allocateAllPodCount; + std::string cpuCapacityTotal; + std::string memCapacityTotal; + std::string cpuRequest; + std::string cpuTotal; + }; + BasicInfo basicInfo; + InstanceInfo instanceInfo; + WorkLoad workLoad; + NetInfo netInfo; + std::vector nodeWorkLoadList; + }; + + + QueryClusterDetailResult(); + explicit QueryClusterDetailResult(const std::string &payload); + ~QueryClusterDetailResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_QUERYCLUSTERDETAILRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/RemoveClusterNodeRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/RemoveClusterNodeRequest.h new file mode 100644 index 000000000..e4d10f594 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/RemoveClusterNodeRequest.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_RETAILCLOUD_MODEL_REMOVECLUSTERNODEREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_REMOVECLUSTERNODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT RemoveClusterNodeRequest : public RpcServiceRequest + { + + public: + RemoveClusterNodeRequest(); + ~RemoveClusterNodeRequest(); + + std::vector getEcsInstanceIdList()const; + void setEcsInstanceIdList(const std::vector& ecsInstanceIdList); + std::string getClusterInstanceId()const; + void setClusterInstanceId(const std::string& clusterInstanceId); + + private: + std::vector ecsInstanceIdList_; + std::string clusterInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_REMOVECLUSTERNODEREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/RemoveClusterNodeResult.h b/retailcloud/include/alibabacloud/retailcloud/model/RemoveClusterNodeResult.h new file mode 100644 index 000000000..e598cbef6 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/RemoveClusterNodeResult.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_RETAILCLOUD_MODEL_REMOVECLUSTERNODERESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_REMOVECLUSTERNODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT RemoveClusterNodeResult : public ServiceResult + { + public: + struct Result + { + int nonsense; + }; + + + RemoveClusterNodeResult(); + explicit RemoveClusterNodeResult(const std::string &payload); + ~RemoveClusterNodeResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_REMOVECLUSTERNODERESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ResourceStatusNotifyRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ResourceStatusNotifyRequest.h new file mode 100644 index 000000000..e71a4bd6b --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ResourceStatusNotifyRequest.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_RETAILCLOUD_MODEL_RESOURCESTATUSNOTIFYREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_RESOURCESTATUSNOTIFYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ResourceStatusNotifyRequest : public RpcServiceRequest + { + + public: + ResourceStatusNotifyRequest(); + ~ResourceStatusNotifyRequest(); + + std::string getData()const; + void setData(const std::string& data); + + private: + std::string data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_RESOURCESTATUSNOTIFYREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ResourceStatusNotifyResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ResourceStatusNotifyResult.h new file mode 100644 index 000000000..76c50d15f --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ResourceStatusNotifyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_RESOURCESTATUSNOTIFYRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_RESOURCESTATUSNOTIFYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ResourceStatusNotifyResult : public ServiceResult + { + public: + + + ResourceStatusNotifyResult(); + explicit ResourceStatusNotifyResult(const std::string &payload); + ~ResourceStatusNotifyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_RESOURCESTATUSNOTIFYRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ResumeDeployRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ResumeDeployRequest.h new file mode 100644 index 000000000..c591c2cfb --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ResumeDeployRequest.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_RETAILCLOUD_MODEL_RESUMEDEPLOYREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_RESUMEDEPLOYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ResumeDeployRequest : public RpcServiceRequest + { + + public: + ResumeDeployRequest(); + ~ResumeDeployRequest(); + + long getDeployOrderId()const; + void setDeployOrderId(long deployOrderId); + + private: + long deployOrderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_RESUMEDEPLOYREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ResumeDeployResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ResumeDeployResult.h new file mode 100644 index 000000000..05459873b --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ResumeDeployResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_RESUMEDEPLOYRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_RESUMEDEPLOYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ResumeDeployResult : public ServiceResult + { + public: + + + ResumeDeployResult(); + explicit ResumeDeployResult(const std::string &payload); + ~ResumeDeployResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_RESUMEDEPLOYRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ScaleAppRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/ScaleAppRequest.h new file mode 100644 index 000000000..d2d6fe160 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ScaleAppRequest.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_RETAILCLOUD_MODEL_SCALEAPPREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_SCALEAPPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ScaleAppRequest : public RpcServiceRequest + { + + public: + ScaleAppRequest(); + ~ScaleAppRequest(); + + int getReplicas()const; + void setReplicas(int replicas); + long getEnvId()const; + void setEnvId(long envId); + + private: + int replicas_; + long envId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_SCALEAPPREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/ScaleAppResult.h b/retailcloud/include/alibabacloud/retailcloud/model/ScaleAppResult.h new file mode 100644 index 000000000..943726bf5 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/ScaleAppResult.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_RETAILCLOUD_MODEL_SCALEAPPRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_SCALEAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT ScaleAppResult : public ServiceResult + { + public: + struct Result + { + bool admitted; + std::string businessCode; + long deployOrderId; + }; + + + ScaleAppResult(); + explicit ScaleAppResult(const std::string &payload); + ~ScaleAppResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_SCALEAPPRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/SetDeployPauseTypeRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/SetDeployPauseTypeRequest.h new file mode 100644 index 000000000..5ca557c75 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/SetDeployPauseTypeRequest.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_RETAILCLOUD_MODEL_SETDEPLOYPAUSETYPEREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_SETDEPLOYPAUSETYPEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT SetDeployPauseTypeRequest : public RpcServiceRequest + { + + public: + SetDeployPauseTypeRequest(); + ~SetDeployPauseTypeRequest(); + + std::string getDeployPauseType()const; + void setDeployPauseType(const std::string& deployPauseType); + long getDeployOrderId()const; + void setDeployOrderId(long deployOrderId); + + private: + std::string deployPauseType_; + long deployOrderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_SETDEPLOYPAUSETYPEREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/SetDeployPauseTypeResult.h b/retailcloud/include/alibabacloud/retailcloud/model/SetDeployPauseTypeResult.h new file mode 100644 index 000000000..b3f066886 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/SetDeployPauseTypeResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_SETDEPLOYPAUSETYPERESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_SETDEPLOYPAUSETYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT SetDeployPauseTypeResult : public ServiceResult + { + public: + + + SetDeployPauseTypeResult(); + explicit SetDeployPauseTypeResult(const std::string &payload); + ~SetDeployPauseTypeResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_SETDEPLOYPAUSETYPERESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/UnbindNodeLabelRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/UnbindNodeLabelRequest.h new file mode 100644 index 000000000..fa1e4e32c --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/UnbindNodeLabelRequest.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_RETAILCLOUD_MODEL_UNBINDNODELABELREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_UNBINDNODELABELREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT UnbindNodeLabelRequest : public RpcServiceRequest + { + + public: + UnbindNodeLabelRequest(); + ~UnbindNodeLabelRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getLabelKey()const; + void setLabelKey(const std::string& labelKey); + std::string getLabelValue()const; + void setLabelValue(const std::string& labelValue); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + + private: + std::string instanceId_; + std::string labelKey_; + std::string labelValue_; + std::string clusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_UNBINDNODELABELREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/UnbindNodeLabelResult.h b/retailcloud/include/alibabacloud/retailcloud/model/UnbindNodeLabelResult.h new file mode 100644 index 000000000..b91d701b8 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/UnbindNodeLabelResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RETAILCLOUD_MODEL_UNBINDNODELABELRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_UNBINDNODELABELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT UnbindNodeLabelResult : public ServiceResult + { + public: + + + UnbindNodeLabelResult(); + explicit UnbindNodeLabelResult(const std::string &payload); + ~UnbindNodeLabelResult(); + std::string getErrMsg()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_UNBINDNODELABELRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/UpdateAppRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/UpdateAppRequest.h new file mode 100644 index 000000000..fd1bde233 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/UpdateAppRequest.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_RETAILCLOUD_MODEL_UPDATEAPPREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_UPDATEAPPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT UpdateAppRequest : public RpcServiceRequest + { + public: + struct UserRoles + { + std::string roleName; + std::string userType; + std::string userId; + }; + + public: + UpdateAppRequest(); + ~UpdateAppRequest(); + + std::string getBizTitle()const; + void setBizTitle(const std::string& bizTitle); + std::string getServiceType()const; + void setServiceType(const std::string& serviceType); + std::vector getUserRoles()const; + void setUserRoles(const std::vector& userRoles); + long getAppId()const; + void setAppId(long appId); + std::string getOperatingSystem()const; + void setOperatingSystem(const std::string& operatingSystem); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getLanguage()const; + void setLanguage(const std::string& language); + std::vector getMiddleWareIdList()const; + void setMiddleWareIdList(const std::vector& middleWareIdList); + + private: + std::string bizTitle_; + std::string serviceType_; + std::vector userRoles_; + long appId_; + std::string operatingSystem_; + std::string description_; + std::string language_; + std::vector middleWareIdList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_UPDATEAPPREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/UpdateAppResult.h b/retailcloud/include/alibabacloud/retailcloud/model/UpdateAppResult.h new file mode 100644 index 000000000..e9ca688fd --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/UpdateAppResult.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_RETAILCLOUD_MODEL_UPDATEAPPRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_UPDATEAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT UpdateAppResult : public ServiceResult + { + public: + struct Result + { + bool success; + }; + + + UpdateAppResult(); + explicit UpdateAppResult(const std::string &payload); + ~UpdateAppResult(); + std::string getErrMsg()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_UPDATEAPPRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/UpdateDeployConfigRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/UpdateDeployConfigRequest.h new file mode 100644 index 000000000..9a0a1b034 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/UpdateDeployConfigRequest.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_RETAILCLOUD_MODEL_UPDATEDEPLOYCONFIGREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_UPDATEDEPLOYCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT UpdateDeployConfigRequest : public RpcServiceRequest + { + + public: + UpdateDeployConfigRequest(); + ~UpdateDeployConfigRequest(); + + std::string getCodePath()const; + void setCodePath(const std::string& codePath); + std::vector getConfigMapList()const; + void setConfigMapList(const std::vector& configMapList); + std::string getConfigMap()const; + void setConfigMap(const std::string& configMap); + std::string getStatefulSet()const; + void setStatefulSet(const std::string& statefulSet); + long getAppId()const; + void setAppId(long appId); + std::vector getSecretList()const; + void setSecretList(const std::vector& secretList); + long getId()const; + void setId(long id); + std::string getDeployment()const; + void setDeployment(const std::string& deployment); + + private: + std::string codePath_; + std::vector configMapList_; + std::string configMap_; + std::string statefulSet_; + long appId_; + std::vector secretList_; + long id_; + std::string deployment_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_UPDATEDEPLOYCONFIGREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/UpdateDeployConfigResult.h b/retailcloud/include/alibabacloud/retailcloud/model/UpdateDeployConfigResult.h new file mode 100644 index 000000000..6a987343d --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/UpdateDeployConfigResult.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_RETAILCLOUD_MODEL_UPDATEDEPLOYCONFIGRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_UPDATEDEPLOYCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT UpdateDeployConfigResult : public ServiceResult + { + public: + struct Result + { + bool success; + }; + + + UpdateDeployConfigResult(); + explicit UpdateDeployConfigResult(const std::string &payload); + ~UpdateDeployConfigResult(); + std::string getErrMsg()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_UPDATEDEPLOYCONFIGRESULT_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/UpdateEnvironmentRequest.h b/retailcloud/include/alibabacloud/retailcloud/model/UpdateEnvironmentRequest.h new file mode 100644 index 000000000..2df6abbd4 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/UpdateEnvironmentRequest.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_RETAILCLOUD_MODEL_UPDATEENVIRONMENTREQUEST_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_UPDATEENVIRONMENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT UpdateEnvironmentRequest : public RpcServiceRequest + { + + public: + UpdateEnvironmentRequest(); + ~UpdateEnvironmentRequest(); + + int getReplicas()const; + void setReplicas(int replicas); + long getAppId()const; + void setAppId(long appId); + long getAppSchemaId()const; + void setAppSchemaId(long appSchemaId); + long getAppEnvId()const; + void setAppEnvId(long appEnvId); + + private: + int replicas_; + long appId_; + long appSchemaId_; + long appEnvId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_UPDATEENVIRONMENTREQUEST_H_ \ No newline at end of file diff --git a/retailcloud/include/alibabacloud/retailcloud/model/UpdateEnvironmentResult.h b/retailcloud/include/alibabacloud/retailcloud/model/UpdateEnvironmentResult.h new file mode 100644 index 000000000..964c17959 --- /dev/null +++ b/retailcloud/include/alibabacloud/retailcloud/model/UpdateEnvironmentResult.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_RETAILCLOUD_MODEL_UPDATEENVIRONMENTRESULT_H_ +#define ALIBABACLOUD_RETAILCLOUD_MODEL_UPDATEENVIRONMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Retailcloud + { + namespace Model + { + class ALIBABACLOUD_RETAILCLOUD_EXPORT UpdateEnvironmentResult : public ServiceResult + { + public: + struct Result + { + bool success; + }; + + + UpdateEnvironmentResult(); + explicit UpdateEnvironmentResult(const std::string &payload); + ~UpdateEnvironmentResult(); + std::string getErrMsg()const; + int getCode()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errMsg_; + int code_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RETAILCLOUD_MODEL_UPDATEENVIRONMENTRESULT_H_ \ No newline at end of file diff --git a/retailcloud/src/RetailcloudClient.cc b/retailcloud/src/RetailcloudClient.cc new file mode 100644 index 000000000..1ae4dd173 --- /dev/null +++ b/retailcloud/src/RetailcloudClient.cc @@ -0,0 +1,2609 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +namespace +{ + const std::string SERVICE_NAME = "retailcloud"; +} + +RetailcloudClient::RetailcloudClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "retailcloud"); +} + +RetailcloudClient::RetailcloudClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "retailcloud"); +} + +RetailcloudClient::RetailcloudClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "retailcloud"); +} + +RetailcloudClient::~RetailcloudClient() +{} + +RetailcloudClient::AddClusterNodeOutcome RetailcloudClient::addClusterNode(const AddClusterNodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddClusterNodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddClusterNodeOutcome(AddClusterNodeResult(outcome.result())); + else + return AddClusterNodeOutcome(outcome.error()); +} + +void RetailcloudClient::addClusterNodeAsync(const AddClusterNodeRequest& request, const AddClusterNodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addClusterNode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::AddClusterNodeOutcomeCallable RetailcloudClient::addClusterNodeCallable(const AddClusterNodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addClusterNode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::BatchAddServersOutcome RetailcloudClient::batchAddServers(const BatchAddServersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchAddServersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchAddServersOutcome(BatchAddServersResult(outcome.result())); + else + return BatchAddServersOutcome(outcome.error()); +} + +void RetailcloudClient::batchAddServersAsync(const BatchAddServersRequest& request, const BatchAddServersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchAddServers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::BatchAddServersOutcomeCallable RetailcloudClient::batchAddServersCallable(const BatchAddServersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchAddServers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::BindNodeLabelOutcome RetailcloudClient::bindNodeLabel(const BindNodeLabelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindNodeLabelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindNodeLabelOutcome(BindNodeLabelResult(outcome.result())); + else + return BindNodeLabelOutcome(outcome.error()); +} + +void RetailcloudClient::bindNodeLabelAsync(const BindNodeLabelRequest& request, const BindNodeLabelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindNodeLabel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::BindNodeLabelOutcomeCallable RetailcloudClient::bindNodeLabelCallable(const BindNodeLabelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindNodeLabel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::CloseDeployOrderOutcome RetailcloudClient::closeDeployOrder(const CloseDeployOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CloseDeployOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CloseDeployOrderOutcome(CloseDeployOrderResult(outcome.result())); + else + return CloseDeployOrderOutcome(outcome.error()); +} + +void RetailcloudClient::closeDeployOrderAsync(const CloseDeployOrderRequest& request, const CloseDeployOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, closeDeployOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::CloseDeployOrderOutcomeCallable RetailcloudClient::closeDeployOrderCallable(const CloseDeployOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->closeDeployOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::CreateAppOutcome RetailcloudClient::createApp(const CreateAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAppOutcome(CreateAppResult(outcome.result())); + else + return CreateAppOutcome(outcome.error()); +} + +void RetailcloudClient::createAppAsync(const CreateAppRequest& request, const CreateAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::CreateAppOutcomeCallable RetailcloudClient::createAppCallable(const CreateAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::CreateAppResourceAllocOutcome RetailcloudClient::createAppResourceAlloc(const CreateAppResourceAllocRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAppResourceAllocOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAppResourceAllocOutcome(CreateAppResourceAllocResult(outcome.result())); + else + return CreateAppResourceAllocOutcome(outcome.error()); +} + +void RetailcloudClient::createAppResourceAllocAsync(const CreateAppResourceAllocRequest& request, const CreateAppResourceAllocAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAppResourceAlloc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::CreateAppResourceAllocOutcomeCallable RetailcloudClient::createAppResourceAllocCallable(const CreateAppResourceAllocRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAppResourceAlloc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::CreateClusterOutcome RetailcloudClient::createCluster(const CreateClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateClusterOutcome(CreateClusterResult(outcome.result())); + else + return CreateClusterOutcome(outcome.error()); +} + +void RetailcloudClient::createClusterAsync(const CreateClusterRequest& request, const CreateClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::CreateClusterOutcomeCallable RetailcloudClient::createClusterCallable(const CreateClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::CreateDbOutcome RetailcloudClient::createDb(const CreateDbRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDbOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDbOutcome(CreateDbResult(outcome.result())); + else + return CreateDbOutcome(outcome.error()); +} + +void RetailcloudClient::createDbAsync(const CreateDbRequest& request, const CreateDbAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDb(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::CreateDbOutcomeCallable RetailcloudClient::createDbCallable(const CreateDbRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDb(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::CreateDeployConfigOutcome RetailcloudClient::createDeployConfig(const CreateDeployConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDeployConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDeployConfigOutcome(CreateDeployConfigResult(outcome.result())); + else + return CreateDeployConfigOutcome(outcome.error()); +} + +void RetailcloudClient::createDeployConfigAsync(const CreateDeployConfigRequest& request, const CreateDeployConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDeployConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::CreateDeployConfigOutcomeCallable RetailcloudClient::createDeployConfigCallable(const CreateDeployConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDeployConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::CreateEnvironmentOutcome RetailcloudClient::createEnvironment(const CreateEnvironmentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateEnvironmentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateEnvironmentOutcome(CreateEnvironmentResult(outcome.result())); + else + return CreateEnvironmentOutcome(outcome.error()); +} + +void RetailcloudClient::createEnvironmentAsync(const CreateEnvironmentRequest& request, const CreateEnvironmentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createEnvironment(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::CreateEnvironmentOutcomeCallable RetailcloudClient::createEnvironmentCallable(const CreateEnvironmentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createEnvironment(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::CreateNodeLabelOutcome RetailcloudClient::createNodeLabel(const CreateNodeLabelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNodeLabelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNodeLabelOutcome(CreateNodeLabelResult(outcome.result())); + else + return CreateNodeLabelOutcome(outcome.error()); +} + +void RetailcloudClient::createNodeLabelAsync(const CreateNodeLabelRequest& request, const CreateNodeLabelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNodeLabel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::CreateNodeLabelOutcomeCallable RetailcloudClient::createNodeLabelCallable(const CreateNodeLabelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNodeLabel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::CreatePersistentVolumeOutcome RetailcloudClient::createPersistentVolume(const CreatePersistentVolumeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePersistentVolumeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePersistentVolumeOutcome(CreatePersistentVolumeResult(outcome.result())); + else + return CreatePersistentVolumeOutcome(outcome.error()); +} + +void RetailcloudClient::createPersistentVolumeAsync(const CreatePersistentVolumeRequest& request, const CreatePersistentVolumeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPersistentVolume(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::CreatePersistentVolumeOutcomeCallable RetailcloudClient::createPersistentVolumeCallable(const CreatePersistentVolumeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPersistentVolume(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::CreatePersistentVolumeClaimOutcome RetailcloudClient::createPersistentVolumeClaim(const CreatePersistentVolumeClaimRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePersistentVolumeClaimOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePersistentVolumeClaimOutcome(CreatePersistentVolumeClaimResult(outcome.result())); + else + return CreatePersistentVolumeClaimOutcome(outcome.error()); +} + +void RetailcloudClient::createPersistentVolumeClaimAsync(const CreatePersistentVolumeClaimRequest& request, const CreatePersistentVolumeClaimAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPersistentVolumeClaim(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::CreatePersistentVolumeClaimOutcomeCallable RetailcloudClient::createPersistentVolumeClaimCallable(const CreatePersistentVolumeClaimRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPersistentVolumeClaim(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::CreateServiceOutcome RetailcloudClient::createService(const CreateServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateServiceOutcome(CreateServiceResult(outcome.result())); + else + return CreateServiceOutcome(outcome.error()); +} + +void RetailcloudClient::createServiceAsync(const CreateServiceRequest& request, const CreateServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::CreateServiceOutcomeCallable RetailcloudClient::createServiceCallable(const CreateServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::CreateSlbAPOutcome RetailcloudClient::createSlbAP(const CreateSlbAPRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSlbAPOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSlbAPOutcome(CreateSlbAPResult(outcome.result())); + else + return CreateSlbAPOutcome(outcome.error()); +} + +void RetailcloudClient::createSlbAPAsync(const CreateSlbAPRequest& request, const CreateSlbAPAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSlbAP(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::CreateSlbAPOutcomeCallable RetailcloudClient::createSlbAPCallable(const CreateSlbAPRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSlbAP(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DeleteAppDetailOutcome RetailcloudClient::deleteAppDetail(const DeleteAppDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAppDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAppDetailOutcome(DeleteAppDetailResult(outcome.result())); + else + return DeleteAppDetailOutcome(outcome.error()); +} + +void RetailcloudClient::deleteAppDetailAsync(const DeleteAppDetailRequest& request, const DeleteAppDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAppDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DeleteAppDetailOutcomeCallable RetailcloudClient::deleteAppDetailCallable(const DeleteAppDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAppDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DeleteAppEnvironmentOutcome RetailcloudClient::deleteAppEnvironment(const DeleteAppEnvironmentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAppEnvironmentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAppEnvironmentOutcome(DeleteAppEnvironmentResult(outcome.result())); + else + return DeleteAppEnvironmentOutcome(outcome.error()); +} + +void RetailcloudClient::deleteAppEnvironmentAsync(const DeleteAppEnvironmentRequest& request, const DeleteAppEnvironmentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAppEnvironment(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DeleteAppEnvironmentOutcomeCallable RetailcloudClient::deleteAppEnvironmentCallable(const DeleteAppEnvironmentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAppEnvironment(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DeleteAppResourceAllocOutcome RetailcloudClient::deleteAppResourceAlloc(const DeleteAppResourceAllocRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAppResourceAllocOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAppResourceAllocOutcome(DeleteAppResourceAllocResult(outcome.result())); + else + return DeleteAppResourceAllocOutcome(outcome.error()); +} + +void RetailcloudClient::deleteAppResourceAllocAsync(const DeleteAppResourceAllocRequest& request, const DeleteAppResourceAllocAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAppResourceAlloc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DeleteAppResourceAllocOutcomeCallable RetailcloudClient::deleteAppResourceAllocCallable(const DeleteAppResourceAllocRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAppResourceAlloc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DeleteClusterOutcome RetailcloudClient::deleteCluster(const DeleteClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteClusterOutcome(DeleteClusterResult(outcome.result())); + else + return DeleteClusterOutcome(outcome.error()); +} + +void RetailcloudClient::deleteClusterAsync(const DeleteClusterRequest& request, const DeleteClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DeleteClusterOutcomeCallable RetailcloudClient::deleteClusterCallable(const DeleteClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DeleteDatabaseOutcome RetailcloudClient::deleteDatabase(const DeleteDatabaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDatabaseOutcome(DeleteDatabaseResult(outcome.result())); + else + return DeleteDatabaseOutcome(outcome.error()); +} + +void RetailcloudClient::deleteDatabaseAsync(const DeleteDatabaseRequest& request, const DeleteDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DeleteDatabaseOutcomeCallable RetailcloudClient::deleteDatabaseCallable(const DeleteDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DeleteDeployConfigOutcome RetailcloudClient::deleteDeployConfig(const DeleteDeployConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDeployConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDeployConfigOutcome(DeleteDeployConfigResult(outcome.result())); + else + return DeleteDeployConfigOutcome(outcome.error()); +} + +void RetailcloudClient::deleteDeployConfigAsync(const DeleteDeployConfigRequest& request, const DeleteDeployConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDeployConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DeleteDeployConfigOutcomeCallable RetailcloudClient::deleteDeployConfigCallable(const DeleteDeployConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDeployConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DeleteNodeLabelOutcome RetailcloudClient::deleteNodeLabel(const DeleteNodeLabelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNodeLabelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNodeLabelOutcome(DeleteNodeLabelResult(outcome.result())); + else + return DeleteNodeLabelOutcome(outcome.error()); +} + +void RetailcloudClient::deleteNodeLabelAsync(const DeleteNodeLabelRequest& request, const DeleteNodeLabelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNodeLabel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DeleteNodeLabelOutcomeCallable RetailcloudClient::deleteNodeLabelCallable(const DeleteNodeLabelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNodeLabel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DeletePersistentVolumeOutcome RetailcloudClient::deletePersistentVolume(const DeletePersistentVolumeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePersistentVolumeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePersistentVolumeOutcome(DeletePersistentVolumeResult(outcome.result())); + else + return DeletePersistentVolumeOutcome(outcome.error()); +} + +void RetailcloudClient::deletePersistentVolumeAsync(const DeletePersistentVolumeRequest& request, const DeletePersistentVolumeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePersistentVolume(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DeletePersistentVolumeOutcomeCallable RetailcloudClient::deletePersistentVolumeCallable(const DeletePersistentVolumeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePersistentVolume(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DeletePersistentVolumeClaimOutcome RetailcloudClient::deletePersistentVolumeClaim(const DeletePersistentVolumeClaimRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePersistentVolumeClaimOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePersistentVolumeClaimOutcome(DeletePersistentVolumeClaimResult(outcome.result())); + else + return DeletePersistentVolumeClaimOutcome(outcome.error()); +} + +void RetailcloudClient::deletePersistentVolumeClaimAsync(const DeletePersistentVolumeClaimRequest& request, const DeletePersistentVolumeClaimAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePersistentVolumeClaim(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DeletePersistentVolumeClaimOutcomeCallable RetailcloudClient::deletePersistentVolumeClaimCallable(const DeletePersistentVolumeClaimRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePersistentVolumeClaim(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DeleteRdsAccountOutcome RetailcloudClient::deleteRdsAccount(const DeleteRdsAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRdsAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRdsAccountOutcome(DeleteRdsAccountResult(outcome.result())); + else + return DeleteRdsAccountOutcome(outcome.error()); +} + +void RetailcloudClient::deleteRdsAccountAsync(const DeleteRdsAccountRequest& request, const DeleteRdsAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRdsAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DeleteRdsAccountOutcomeCallable RetailcloudClient::deleteRdsAccountCallable(const DeleteRdsAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRdsAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DeleteServiceOutcome RetailcloudClient::deleteService(const DeleteServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteServiceOutcome(DeleteServiceResult(outcome.result())); + else + return DeleteServiceOutcome(outcome.error()); +} + +void RetailcloudClient::deleteServiceAsync(const DeleteServiceRequest& request, const DeleteServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DeleteServiceOutcomeCallable RetailcloudClient::deleteServiceCallable(const DeleteServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DeleteSlbAPOutcome RetailcloudClient::deleteSlbAP(const DeleteSlbAPRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSlbAPOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSlbAPOutcome(DeleteSlbAPResult(outcome.result())); + else + return DeleteSlbAPOutcome(outcome.error()); +} + +void RetailcloudClient::deleteSlbAPAsync(const DeleteSlbAPRequest& request, const DeleteSlbAPAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSlbAP(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DeleteSlbAPOutcomeCallable RetailcloudClient::deleteSlbAPCallable(const DeleteSlbAPRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSlbAP(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DeployAppOutcome RetailcloudClient::deployApp(const DeployAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeployAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeployAppOutcome(DeployAppResult(outcome.result())); + else + return DeployAppOutcome(outcome.error()); +} + +void RetailcloudClient::deployAppAsync(const DeployAppRequest& request, const DeployAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deployApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DeployAppOutcomeCallable RetailcloudClient::deployAppCallable(const DeployAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deployApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DescribeAppDetailOutcome RetailcloudClient::describeAppDetail(const DescribeAppDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAppDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAppDetailOutcome(DescribeAppDetailResult(outcome.result())); + else + return DescribeAppDetailOutcome(outcome.error()); +} + +void RetailcloudClient::describeAppDetailAsync(const DescribeAppDetailRequest& request, const DescribeAppDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAppDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DescribeAppDetailOutcomeCallable RetailcloudClient::describeAppDetailCallable(const DescribeAppDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAppDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DescribeAppEnvironmentDetailOutcome RetailcloudClient::describeAppEnvironmentDetail(const DescribeAppEnvironmentDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAppEnvironmentDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAppEnvironmentDetailOutcome(DescribeAppEnvironmentDetailResult(outcome.result())); + else + return DescribeAppEnvironmentDetailOutcome(outcome.error()); +} + +void RetailcloudClient::describeAppEnvironmentDetailAsync(const DescribeAppEnvironmentDetailRequest& request, const DescribeAppEnvironmentDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAppEnvironmentDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DescribeAppEnvironmentDetailOutcomeCallable RetailcloudClient::describeAppEnvironmentDetailCallable(const DescribeAppEnvironmentDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAppEnvironmentDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DescribeAppResourceAllocOutcome RetailcloudClient::describeAppResourceAlloc(const DescribeAppResourceAllocRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAppResourceAllocOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAppResourceAllocOutcome(DescribeAppResourceAllocResult(outcome.result())); + else + return DescribeAppResourceAllocOutcome(outcome.error()); +} + +void RetailcloudClient::describeAppResourceAllocAsync(const DescribeAppResourceAllocRequest& request, const DescribeAppResourceAllocAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAppResourceAlloc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DescribeAppResourceAllocOutcomeCallable RetailcloudClient::describeAppResourceAllocCallable(const DescribeAppResourceAllocRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAppResourceAlloc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DescribeDatabasesOutcome RetailcloudClient::describeDatabases(const DescribeDatabasesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDatabasesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDatabasesOutcome(DescribeDatabasesResult(outcome.result())); + else + return DescribeDatabasesOutcome(outcome.error()); +} + +void RetailcloudClient::describeDatabasesAsync(const DescribeDatabasesRequest& request, const DescribeDatabasesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDatabases(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DescribeDatabasesOutcomeCallable RetailcloudClient::describeDatabasesCallable(const DescribeDatabasesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDatabases(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DescribeDeployOrderDetailOutcome RetailcloudClient::describeDeployOrderDetail(const DescribeDeployOrderDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDeployOrderDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDeployOrderDetailOutcome(DescribeDeployOrderDetailResult(outcome.result())); + else + return DescribeDeployOrderDetailOutcome(outcome.error()); +} + +void RetailcloudClient::describeDeployOrderDetailAsync(const DescribeDeployOrderDetailRequest& request, const DescribeDeployOrderDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDeployOrderDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DescribeDeployOrderDetailOutcomeCallable RetailcloudClient::describeDeployOrderDetailCallable(const DescribeDeployOrderDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDeployOrderDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DescribePodEventsOutcome RetailcloudClient::describePodEvents(const DescribePodEventsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePodEventsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePodEventsOutcome(DescribePodEventsResult(outcome.result())); + else + return DescribePodEventsOutcome(outcome.error()); +} + +void RetailcloudClient::describePodEventsAsync(const DescribePodEventsRequest& request, const DescribePodEventsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePodEvents(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DescribePodEventsOutcomeCallable RetailcloudClient::describePodEventsCallable(const DescribePodEventsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePodEvents(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DescribePodLogOutcome RetailcloudClient::describePodLog(const DescribePodLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePodLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePodLogOutcome(DescribePodLogResult(outcome.result())); + else + return DescribePodLogOutcome(outcome.error()); +} + +void RetailcloudClient::describePodLogAsync(const DescribePodLogRequest& request, const DescribePodLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePodLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DescribePodLogOutcomeCallable RetailcloudClient::describePodLogCallable(const DescribePodLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePodLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DescribeRdsAccountsOutcome RetailcloudClient::describeRdsAccounts(const DescribeRdsAccountsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRdsAccountsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRdsAccountsOutcome(DescribeRdsAccountsResult(outcome.result())); + else + return DescribeRdsAccountsOutcome(outcome.error()); +} + +void RetailcloudClient::describeRdsAccountsAsync(const DescribeRdsAccountsRequest& request, const DescribeRdsAccountsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRdsAccounts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DescribeRdsAccountsOutcomeCallable RetailcloudClient::describeRdsAccountsCallable(const DescribeRdsAccountsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRdsAccounts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DescribeServiceDetailOutcome RetailcloudClient::describeServiceDetail(const DescribeServiceDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeServiceDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeServiceDetailOutcome(DescribeServiceDetailResult(outcome.result())); + else + return DescribeServiceDetailOutcome(outcome.error()); +} + +void RetailcloudClient::describeServiceDetailAsync(const DescribeServiceDetailRequest& request, const DescribeServiceDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeServiceDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DescribeServiceDetailOutcomeCallable RetailcloudClient::describeServiceDetailCallable(const DescribeServiceDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeServiceDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::DescribeSlbAPDetailOutcome RetailcloudClient::describeSlbAPDetail(const DescribeSlbAPDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSlbAPDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSlbAPDetailOutcome(DescribeSlbAPDetailResult(outcome.result())); + else + return DescribeSlbAPDetailOutcome(outcome.error()); +} + +void RetailcloudClient::describeSlbAPDetailAsync(const DescribeSlbAPDetailRequest& request, const DescribeSlbAPDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSlbAPDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::DescribeSlbAPDetailOutcomeCallable RetailcloudClient::describeSlbAPDetailCallable(const DescribeSlbAPDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSlbAPDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::GetInstTransInfoOutcome RetailcloudClient::getInstTransInfo(const GetInstTransInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetInstTransInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetInstTransInfoOutcome(GetInstTransInfoResult(outcome.result())); + else + return GetInstTransInfoOutcome(outcome.error()); +} + +void RetailcloudClient::getInstTransInfoAsync(const GetInstTransInfoRequest& request, const GetInstTransInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getInstTransInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::GetInstTransInfoOutcomeCallable RetailcloudClient::getInstTransInfoCallable(const GetInstTransInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getInstTransInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::GetRdsBackUpOutcome RetailcloudClient::getRdsBackUp(const GetRdsBackUpRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetRdsBackUpOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetRdsBackUpOutcome(GetRdsBackUpResult(outcome.result())); + else + return GetRdsBackUpOutcome(outcome.error()); +} + +void RetailcloudClient::getRdsBackUpAsync(const GetRdsBackUpRequest& request, const GetRdsBackUpAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getRdsBackUp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::GetRdsBackUpOutcomeCallable RetailcloudClient::getRdsBackUpCallable(const GetRdsBackUpRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getRdsBackUp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::GrantDbToAccountOutcome RetailcloudClient::grantDbToAccount(const GrantDbToAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GrantDbToAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GrantDbToAccountOutcome(GrantDbToAccountResult(outcome.result())); + else + return GrantDbToAccountOutcome(outcome.error()); +} + +void RetailcloudClient::grantDbToAccountAsync(const GrantDbToAccountRequest& request, const GrantDbToAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, grantDbToAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::GrantDbToAccountOutcomeCallable RetailcloudClient::grantDbToAccountCallable(const GrantDbToAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->grantDbToAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ListAppOutcome RetailcloudClient::listApp(const ListAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAppOutcome(ListAppResult(outcome.result())); + else + return ListAppOutcome(outcome.error()); +} + +void RetailcloudClient::listAppAsync(const ListAppRequest& request, const ListAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ListAppOutcomeCallable RetailcloudClient::listAppCallable(const ListAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ListAppCmsGroupsOutcome RetailcloudClient::listAppCmsGroups(const ListAppCmsGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAppCmsGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAppCmsGroupsOutcome(ListAppCmsGroupsResult(outcome.result())); + else + return ListAppCmsGroupsOutcome(outcome.error()); +} + +void RetailcloudClient::listAppCmsGroupsAsync(const ListAppCmsGroupsRequest& request, const ListAppCmsGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAppCmsGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ListAppCmsGroupsOutcomeCallable RetailcloudClient::listAppCmsGroupsCallable(const ListAppCmsGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAppCmsGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ListAppEnvironmentOutcome RetailcloudClient::listAppEnvironment(const ListAppEnvironmentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAppEnvironmentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAppEnvironmentOutcome(ListAppEnvironmentResult(outcome.result())); + else + return ListAppEnvironmentOutcome(outcome.error()); +} + +void RetailcloudClient::listAppEnvironmentAsync(const ListAppEnvironmentRequest& request, const ListAppEnvironmentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAppEnvironment(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ListAppEnvironmentOutcomeCallable RetailcloudClient::listAppEnvironmentCallable(const ListAppEnvironmentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAppEnvironment(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ListAppInstanceOutcome RetailcloudClient::listAppInstance(const ListAppInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAppInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAppInstanceOutcome(ListAppInstanceResult(outcome.result())); + else + return ListAppInstanceOutcome(outcome.error()); +} + +void RetailcloudClient::listAppInstanceAsync(const ListAppInstanceRequest& request, const ListAppInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAppInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ListAppInstanceOutcomeCallable RetailcloudClient::listAppInstanceCallable(const ListAppInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAppInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ListAppResourceAllocsOutcome RetailcloudClient::listAppResourceAllocs(const ListAppResourceAllocsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAppResourceAllocsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAppResourceAllocsOutcome(ListAppResourceAllocsResult(outcome.result())); + else + return ListAppResourceAllocsOutcome(outcome.error()); +} + +void RetailcloudClient::listAppResourceAllocsAsync(const ListAppResourceAllocsRequest& request, const ListAppResourceAllocsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAppResourceAllocs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ListAppResourceAllocsOutcomeCallable RetailcloudClient::listAppResourceAllocsCallable(const ListAppResourceAllocsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAppResourceAllocs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ListAvailableClusterNodeOutcome RetailcloudClient::listAvailableClusterNode(const ListAvailableClusterNodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAvailableClusterNodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAvailableClusterNodeOutcome(ListAvailableClusterNodeResult(outcome.result())); + else + return ListAvailableClusterNodeOutcome(outcome.error()); +} + +void RetailcloudClient::listAvailableClusterNodeAsync(const ListAvailableClusterNodeRequest& request, const ListAvailableClusterNodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAvailableClusterNode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ListAvailableClusterNodeOutcomeCallable RetailcloudClient::listAvailableClusterNodeCallable(const ListAvailableClusterNodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAvailableClusterNode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ListClusterOutcome RetailcloudClient::listCluster(const ListClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClusterOutcome(ListClusterResult(outcome.result())); + else + return ListClusterOutcome(outcome.error()); +} + +void RetailcloudClient::listClusterAsync(const ListClusterRequest& request, const ListClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ListClusterOutcomeCallable RetailcloudClient::listClusterCallable(const ListClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ListClusterNodeOutcome RetailcloudClient::listClusterNode(const ListClusterNodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClusterNodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClusterNodeOutcome(ListClusterNodeResult(outcome.result())); + else + return ListClusterNodeOutcome(outcome.error()); +} + +void RetailcloudClient::listClusterNodeAsync(const ListClusterNodeRequest& request, const ListClusterNodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClusterNode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ListClusterNodeOutcomeCallable RetailcloudClient::listClusterNodeCallable(const ListClusterNodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClusterNode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ListDeployConfigOutcome RetailcloudClient::listDeployConfig(const ListDeployConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDeployConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDeployConfigOutcome(ListDeployConfigResult(outcome.result())); + else + return ListDeployConfigOutcome(outcome.error()); +} + +void RetailcloudClient::listDeployConfigAsync(const ListDeployConfigRequest& request, const ListDeployConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDeployConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ListDeployConfigOutcomeCallable RetailcloudClient::listDeployConfigCallable(const ListDeployConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDeployConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ListDeployOrdersOutcome RetailcloudClient::listDeployOrders(const ListDeployOrdersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDeployOrdersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDeployOrdersOutcome(ListDeployOrdersResult(outcome.result())); + else + return ListDeployOrdersOutcome(outcome.error()); +} + +void RetailcloudClient::listDeployOrdersAsync(const ListDeployOrdersRequest& request, const ListDeployOrdersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDeployOrders(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ListDeployOrdersOutcomeCallable RetailcloudClient::listDeployOrdersCallable(const ListDeployOrdersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDeployOrders(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ListNodeLabelBindingsOutcome RetailcloudClient::listNodeLabelBindings(const ListNodeLabelBindingsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListNodeLabelBindingsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListNodeLabelBindingsOutcome(ListNodeLabelBindingsResult(outcome.result())); + else + return ListNodeLabelBindingsOutcome(outcome.error()); +} + +void RetailcloudClient::listNodeLabelBindingsAsync(const ListNodeLabelBindingsRequest& request, const ListNodeLabelBindingsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listNodeLabelBindings(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ListNodeLabelBindingsOutcomeCallable RetailcloudClient::listNodeLabelBindingsCallable(const ListNodeLabelBindingsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listNodeLabelBindings(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ListNodeLabelsOutcome RetailcloudClient::listNodeLabels(const ListNodeLabelsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListNodeLabelsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListNodeLabelsOutcome(ListNodeLabelsResult(outcome.result())); + else + return ListNodeLabelsOutcome(outcome.error()); +} + +void RetailcloudClient::listNodeLabelsAsync(const ListNodeLabelsRequest& request, const ListNodeLabelsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listNodeLabels(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ListNodeLabelsOutcomeCallable RetailcloudClient::listNodeLabelsCallable(const ListNodeLabelsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listNodeLabels(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ListPersistentVolumeOutcome RetailcloudClient::listPersistentVolume(const ListPersistentVolumeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPersistentVolumeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPersistentVolumeOutcome(ListPersistentVolumeResult(outcome.result())); + else + return ListPersistentVolumeOutcome(outcome.error()); +} + +void RetailcloudClient::listPersistentVolumeAsync(const ListPersistentVolumeRequest& request, const ListPersistentVolumeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPersistentVolume(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ListPersistentVolumeOutcomeCallable RetailcloudClient::listPersistentVolumeCallable(const ListPersistentVolumeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPersistentVolume(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ListPersistentVolumeClaimOutcome RetailcloudClient::listPersistentVolumeClaim(const ListPersistentVolumeClaimRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPersistentVolumeClaimOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPersistentVolumeClaimOutcome(ListPersistentVolumeClaimResult(outcome.result())); + else + return ListPersistentVolumeClaimOutcome(outcome.error()); +} + +void RetailcloudClient::listPersistentVolumeClaimAsync(const ListPersistentVolumeClaimRequest& request, const ListPersistentVolumeClaimAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPersistentVolumeClaim(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ListPersistentVolumeClaimOutcomeCallable RetailcloudClient::listPersistentVolumeClaimCallable(const ListPersistentVolumeClaimRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPersistentVolumeClaim(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ListPodsOutcome RetailcloudClient::listPods(const ListPodsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPodsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPodsOutcome(ListPodsResult(outcome.result())); + else + return ListPodsOutcome(outcome.error()); +} + +void RetailcloudClient::listPodsAsync(const ListPodsRequest& request, const ListPodsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPods(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ListPodsOutcomeCallable RetailcloudClient::listPodsCallable(const ListPodsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPods(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ListServicesOutcome RetailcloudClient::listServices(const ListServicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListServicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListServicesOutcome(ListServicesResult(outcome.result())); + else + return ListServicesOutcome(outcome.error()); +} + +void RetailcloudClient::listServicesAsync(const ListServicesRequest& request, const ListServicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listServices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ListServicesOutcomeCallable RetailcloudClient::listServicesCallable(const ListServicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listServices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ListSlbAPsOutcome RetailcloudClient::listSlbAPs(const ListSlbAPsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSlbAPsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSlbAPsOutcome(ListSlbAPsResult(outcome.result())); + else + return ListSlbAPsOutcome(outcome.error()); +} + +void RetailcloudClient::listSlbAPsAsync(const ListSlbAPsRequest& request, const ListSlbAPsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSlbAPs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ListSlbAPsOutcomeCallable RetailcloudClient::listSlbAPsCallable(const ListSlbAPsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSlbAPs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ListUsersOutcome RetailcloudClient::listUsers(const ListUsersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUsersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUsersOutcome(ListUsersResult(outcome.result())); + else + return ListUsersOutcome(outcome.error()); +} + +void RetailcloudClient::listUsersAsync(const ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUsers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ListUsersOutcomeCallable RetailcloudClient::listUsersCallable(const ListUsersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ModifyServiceOutcome RetailcloudClient::modifyService(const ModifyServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyServiceOutcome(ModifyServiceResult(outcome.result())); + else + return ModifyServiceOutcome(outcome.error()); +} + +void RetailcloudClient::modifyServiceAsync(const ModifyServiceRequest& request, const ModifyServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ModifyServiceOutcomeCallable RetailcloudClient::modifyServiceCallable(const ModifyServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ModifySlbAPOutcome RetailcloudClient::modifySlbAP(const ModifySlbAPRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySlbAPOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySlbAPOutcome(ModifySlbAPResult(outcome.result())); + else + return ModifySlbAPOutcome(outcome.error()); +} + +void RetailcloudClient::modifySlbAPAsync(const ModifySlbAPRequest& request, const ModifySlbAPAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySlbAP(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ModifySlbAPOutcomeCallable RetailcloudClient::modifySlbAPCallable(const ModifySlbAPRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySlbAP(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::QueryClusterDetailOutcome RetailcloudClient::queryClusterDetail(const QueryClusterDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryClusterDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryClusterDetailOutcome(QueryClusterDetailResult(outcome.result())); + else + return QueryClusterDetailOutcome(outcome.error()); +} + +void RetailcloudClient::queryClusterDetailAsync(const QueryClusterDetailRequest& request, const QueryClusterDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryClusterDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::QueryClusterDetailOutcomeCallable RetailcloudClient::queryClusterDetailCallable(const QueryClusterDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryClusterDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::RemoveClusterNodeOutcome RetailcloudClient::removeClusterNode(const RemoveClusterNodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveClusterNodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveClusterNodeOutcome(RemoveClusterNodeResult(outcome.result())); + else + return RemoveClusterNodeOutcome(outcome.error()); +} + +void RetailcloudClient::removeClusterNodeAsync(const RemoveClusterNodeRequest& request, const RemoveClusterNodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeClusterNode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::RemoveClusterNodeOutcomeCallable RetailcloudClient::removeClusterNodeCallable(const RemoveClusterNodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeClusterNode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ResourceStatusNotifyOutcome RetailcloudClient::resourceStatusNotify(const ResourceStatusNotifyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResourceStatusNotifyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResourceStatusNotifyOutcome(ResourceStatusNotifyResult(outcome.result())); + else + return ResourceStatusNotifyOutcome(outcome.error()); +} + +void RetailcloudClient::resourceStatusNotifyAsync(const ResourceStatusNotifyRequest& request, const ResourceStatusNotifyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resourceStatusNotify(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ResourceStatusNotifyOutcomeCallable RetailcloudClient::resourceStatusNotifyCallable(const ResourceStatusNotifyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resourceStatusNotify(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ResumeDeployOutcome RetailcloudClient::resumeDeploy(const ResumeDeployRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResumeDeployOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResumeDeployOutcome(ResumeDeployResult(outcome.result())); + else + return ResumeDeployOutcome(outcome.error()); +} + +void RetailcloudClient::resumeDeployAsync(const ResumeDeployRequest& request, const ResumeDeployAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resumeDeploy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ResumeDeployOutcomeCallable RetailcloudClient::resumeDeployCallable(const ResumeDeployRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resumeDeploy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::ScaleAppOutcome RetailcloudClient::scaleApp(const ScaleAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ScaleAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ScaleAppOutcome(ScaleAppResult(outcome.result())); + else + return ScaleAppOutcome(outcome.error()); +} + +void RetailcloudClient::scaleAppAsync(const ScaleAppRequest& request, const ScaleAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, scaleApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::ScaleAppOutcomeCallable RetailcloudClient::scaleAppCallable(const ScaleAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->scaleApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::SetDeployPauseTypeOutcome RetailcloudClient::setDeployPauseType(const SetDeployPauseTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetDeployPauseTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetDeployPauseTypeOutcome(SetDeployPauseTypeResult(outcome.result())); + else + return SetDeployPauseTypeOutcome(outcome.error()); +} + +void RetailcloudClient::setDeployPauseTypeAsync(const SetDeployPauseTypeRequest& request, const SetDeployPauseTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setDeployPauseType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::SetDeployPauseTypeOutcomeCallable RetailcloudClient::setDeployPauseTypeCallable(const SetDeployPauseTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setDeployPauseType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::UnbindNodeLabelOutcome RetailcloudClient::unbindNodeLabel(const UnbindNodeLabelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnbindNodeLabelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnbindNodeLabelOutcome(UnbindNodeLabelResult(outcome.result())); + else + return UnbindNodeLabelOutcome(outcome.error()); +} + +void RetailcloudClient::unbindNodeLabelAsync(const UnbindNodeLabelRequest& request, const UnbindNodeLabelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unbindNodeLabel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::UnbindNodeLabelOutcomeCallable RetailcloudClient::unbindNodeLabelCallable(const UnbindNodeLabelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unbindNodeLabel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::UpdateAppOutcome RetailcloudClient::updateApp(const UpdateAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAppOutcome(UpdateAppResult(outcome.result())); + else + return UpdateAppOutcome(outcome.error()); +} + +void RetailcloudClient::updateAppAsync(const UpdateAppRequest& request, const UpdateAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::UpdateAppOutcomeCallable RetailcloudClient::updateAppCallable(const UpdateAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::UpdateDeployConfigOutcome RetailcloudClient::updateDeployConfig(const UpdateDeployConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDeployConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDeployConfigOutcome(UpdateDeployConfigResult(outcome.result())); + else + return UpdateDeployConfigOutcome(outcome.error()); +} + +void RetailcloudClient::updateDeployConfigAsync(const UpdateDeployConfigRequest& request, const UpdateDeployConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDeployConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::UpdateDeployConfigOutcomeCallable RetailcloudClient::updateDeployConfigCallable(const UpdateDeployConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDeployConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RetailcloudClient::UpdateEnvironmentOutcome RetailcloudClient::updateEnvironment(const UpdateEnvironmentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateEnvironmentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateEnvironmentOutcome(UpdateEnvironmentResult(outcome.result())); + else + return UpdateEnvironmentOutcome(outcome.error()); +} + +void RetailcloudClient::updateEnvironmentAsync(const UpdateEnvironmentRequest& request, const UpdateEnvironmentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateEnvironment(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RetailcloudClient::UpdateEnvironmentOutcomeCallable RetailcloudClient::updateEnvironmentCallable(const UpdateEnvironmentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateEnvironment(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/retailcloud/src/model/AddClusterNodeRequest.cc b/retailcloud/src/model/AddClusterNodeRequest.cc new file mode 100644 index 000000000..5e71dcc2c --- /dev/null +++ b/retailcloud/src/model/AddClusterNodeRequest.cc @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::AddClusterNodeRequest; + +AddClusterNodeRequest::AddClusterNodeRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "AddClusterNode") +{ + setMethod(HttpRequest::Method::Post); +} + +AddClusterNodeRequest::~AddClusterNodeRequest() +{} + +std::vector AddClusterNodeRequest::getEcsInstanceIdList()const +{ + return ecsInstanceIdList_; +} + +void AddClusterNodeRequest::setEcsInstanceIdList(const std::vector& ecsInstanceIdList) +{ + ecsInstanceIdList_ = ecsInstanceIdList; + for(int dep1 = 0; dep1!= ecsInstanceIdList.size(); dep1++) { + setParameter("EcsInstanceIdList."+ std::to_string(dep1), ecsInstanceIdList.at(dep1)); + } +} + +std::string AddClusterNodeRequest::getClusterInstanceId()const +{ + return clusterInstanceId_; +} + +void AddClusterNodeRequest::setClusterInstanceId(const std::string& clusterInstanceId) +{ + clusterInstanceId_ = clusterInstanceId; + setParameter("ClusterInstanceId", clusterInstanceId); +} + diff --git a/retailcloud/src/model/AddClusterNodeResult.cc b/retailcloud/src/model/AddClusterNodeResult.cc new file mode 100644 index 000000000..d265470e1 --- /dev/null +++ b/retailcloud/src/model/AddClusterNodeResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +AddClusterNodeResult::AddClusterNodeResult() : + ServiceResult() +{} + +AddClusterNodeResult::AddClusterNodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddClusterNodeResult::~AddClusterNodeResult() +{} + +void AddClusterNodeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Nonsense"].isNull()) + result_.nonsense = std::stoi(resultNode["Nonsense"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string AddClusterNodeResult::getErrMsg()const +{ + return errMsg_; +} + +int AddClusterNodeResult::getCode()const +{ + return code_; +} + +bool AddClusterNodeResult::getSuccess()const +{ + return success_; +} + +AddClusterNodeResult::Result AddClusterNodeResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/BatchAddServersRequest.cc b/retailcloud/src/model/BatchAddServersRequest.cc new file mode 100644 index 000000000..5112c5de5 --- /dev/null +++ b/retailcloud/src/model/BatchAddServersRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::BatchAddServersRequest; + +BatchAddServersRequest::BatchAddServersRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "BatchAddServers") +{ + setMethod(HttpRequest::Method::Post); +} + +BatchAddServersRequest::~BatchAddServersRequest() +{} + +std::string BatchAddServersRequest::getInstanceId()const +{ + return instanceId_; +} + +void BatchAddServersRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string BatchAddServersRequest::getRegionId()const +{ + return regionId_; +} + +void BatchAddServersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string BatchAddServersRequest::getVpcId()const +{ + return vpcId_; +} + +void BatchAddServersRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string BatchAddServersRequest::getSign()const +{ + return sign_; +} + +void BatchAddServersRequest::setSign(const std::string& sign) +{ + sign_ = sign; + setParameter("Sign", sign); +} + diff --git a/retailcloud/src/model/BatchAddServersResult.cc b/retailcloud/src/model/BatchAddServersResult.cc new file mode 100644 index 000000000..4ee679fa1 --- /dev/null +++ b/retailcloud/src/model/BatchAddServersResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +BatchAddServersResult::BatchAddServersResult() : + ServiceResult() +{} + +BatchAddServersResult::BatchAddServersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BatchAddServersResult::~BatchAddServersResult() +{} + +void BatchAddServersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Success"].isNull()) + result_.success = resultNode["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string BatchAddServersResult::getErrMsg()const +{ + return errMsg_; +} + +int BatchAddServersResult::getCode()const +{ + return code_; +} + +BatchAddServersResult::Result BatchAddServersResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/BindNodeLabelRequest.cc b/retailcloud/src/model/BindNodeLabelRequest.cc new file mode 100644 index 000000000..4955e5fe1 --- /dev/null +++ b/retailcloud/src/model/BindNodeLabelRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::BindNodeLabelRequest; + +BindNodeLabelRequest::BindNodeLabelRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "BindNodeLabel") +{ + setMethod(HttpRequest::Method::Post); +} + +BindNodeLabelRequest::~BindNodeLabelRequest() +{} + +std::string BindNodeLabelRequest::getInstanceId()const +{ + return instanceId_; +} + +void BindNodeLabelRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string BindNodeLabelRequest::getLabelKey()const +{ + return labelKey_; +} + +void BindNodeLabelRequest::setLabelKey(const std::string& labelKey) +{ + labelKey_ = labelKey; + setParameter("LabelKey", labelKey); +} + +std::string BindNodeLabelRequest::getLabelValue()const +{ + return labelValue_; +} + +void BindNodeLabelRequest::setLabelValue(const std::string& labelValue) +{ + labelValue_ = labelValue; + setParameter("LabelValue", labelValue); +} + +std::string BindNodeLabelRequest::getClusterId()const +{ + return clusterId_; +} + +void BindNodeLabelRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + diff --git a/retailcloud/src/model/BindNodeLabelResult.cc b/retailcloud/src/model/BindNodeLabelResult.cc new file mode 100644 index 000000000..5abaa9aa7 --- /dev/null +++ b/retailcloud/src/model/BindNodeLabelResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +BindNodeLabelResult::BindNodeLabelResult() : + ServiceResult() +{} + +BindNodeLabelResult::BindNodeLabelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BindNodeLabelResult::~BindNodeLabelResult() +{} + +void BindNodeLabelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string BindNodeLabelResult::getErrMsg()const +{ + return errMsg_; +} + +int BindNodeLabelResult::getCode()const +{ + return code_; +} + +bool BindNodeLabelResult::getSuccess()const +{ + return success_; +} + diff --git a/retailcloud/src/model/CloseDeployOrderRequest.cc b/retailcloud/src/model/CloseDeployOrderRequest.cc new file mode 100644 index 000000000..0daf1212d --- /dev/null +++ b/retailcloud/src/model/CloseDeployOrderRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::CloseDeployOrderRequest; + +CloseDeployOrderRequest::CloseDeployOrderRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "CloseDeployOrder") +{ + setMethod(HttpRequest::Method::Post); +} + +CloseDeployOrderRequest::~CloseDeployOrderRequest() +{} + +long CloseDeployOrderRequest::getDeployOrderId()const +{ + return deployOrderId_; +} + +void CloseDeployOrderRequest::setDeployOrderId(long deployOrderId) +{ + deployOrderId_ = deployOrderId; + setParameter("DeployOrderId", std::to_string(deployOrderId)); +} + diff --git a/retailcloud/src/model/CloseDeployOrderResult.cc b/retailcloud/src/model/CloseDeployOrderResult.cc new file mode 100644 index 000000000..e2efe1ffb --- /dev/null +++ b/retailcloud/src/model/CloseDeployOrderResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +CloseDeployOrderResult::CloseDeployOrderResult() : + ServiceResult() +{} + +CloseDeployOrderResult::CloseDeployOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CloseDeployOrderResult::~CloseDeployOrderResult() +{} + +void CloseDeployOrderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CloseDeployOrderResult::getErrMsg()const +{ + return errMsg_; +} + +int CloseDeployOrderResult::getCode()const +{ + return code_; +} + +bool CloseDeployOrderResult::getSuccess()const +{ + return success_; +} + diff --git a/retailcloud/src/model/CreateAppRequest.cc b/retailcloud/src/model/CreateAppRequest.cc new file mode 100644 index 000000000..79e83cce3 --- /dev/null +++ b/retailcloud/src/model/CreateAppRequest.cc @@ -0,0 +1,158 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::CreateAppRequest; + +CreateAppRequest::CreateAppRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "CreateApp") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateAppRequest::~CreateAppRequest() +{} + +std::string CreateAppRequest::getBizTitle()const +{ + return bizTitle_; +} + +void CreateAppRequest::setBizTitle(const std::string& bizTitle) +{ + bizTitle_ = bizTitle; + setBodyParameter("BizTitle", bizTitle); +} + +std::string CreateAppRequest::getOperatingSystem()const +{ + return operatingSystem_; +} + +void CreateAppRequest::setOperatingSystem(const std::string& operatingSystem) +{ + operatingSystem_ = operatingSystem; + setBodyParameter("OperatingSystem", operatingSystem); +} + +std::string CreateAppRequest::getDescription()const +{ + return description_; +} + +void CreateAppRequest::setDescription(const std::string& description) +{ + description_ = description; + setBodyParameter("Description", description); +} + +std::string CreateAppRequest::getLanguage()const +{ + return language_; +} + +void CreateAppRequest::setLanguage(const std::string& language) +{ + language_ = language; + setBodyParameter("Language", language); +} + +std::string CreateAppRequest::getTitle()const +{ + return title_; +} + +void CreateAppRequest::setTitle(const std::string& title) +{ + title_ = title; + setBodyParameter("Title", title); +} + +std::vector CreateAppRequest::getMiddleWareIdList()const +{ + return middleWareIdList_; +} + +void CreateAppRequest::setMiddleWareIdList(const std::vector& middleWareIdList) +{ + middleWareIdList_ = middleWareIdList; + for(int dep1 = 0; dep1!= middleWareIdList.size(); dep1++) { + setBodyParameter("MiddleWareIdList."+ std::to_string(dep1), std::to_string(middleWareIdList.at(dep1))); + } +} + +int CreateAppRequest::getStateType()const +{ + return stateType_; +} + +void CreateAppRequest::setStateType(int stateType) +{ + stateType_ = stateType; + setBodyParameter("StateType", std::to_string(stateType)); +} + +std::string CreateAppRequest::getServiceType()const +{ + return serviceType_; +} + +void CreateAppRequest::setServiceType(const std::string& serviceType) +{ + serviceType_ = serviceType; + setBodyParameter("ServiceType", serviceType); +} + +std::vector CreateAppRequest::getUserRoles()const +{ + return userRoles_; +} + +void CreateAppRequest::setUserRoles(const std::vector& userRoles) +{ + userRoles_ = userRoles; + for(int dep1 = 0; dep1!= userRoles.size(); dep1++) { + auto userRolesObj = userRoles.at(dep1); + std::string userRolesObjStr = "UserRoles." + std::to_string(dep1 + 1); + setParameter(userRolesObjStr + ".RoleName", userRolesObj.roleName); + setParameter(userRolesObjStr + ".UserType", userRolesObj.userType); + setParameter(userRolesObjStr + ".UserId", userRolesObj.userId); + } +} + +std::string CreateAppRequest::getBizCode()const +{ + return bizCode_; +} + +void CreateAppRequest::setBizCode(const std::string& bizCode) +{ + bizCode_ = bizCode; + setBodyParameter("BizCode", bizCode); +} + +std::string CreateAppRequest::get_Namespace()const +{ + return _namespace_; +} + +void CreateAppRequest::set_Namespace(const std::string& _namespace) +{ + _namespace_ = _namespace; + setBodyParameter("_Namespace", _namespace); +} + diff --git a/retailcloud/src/model/CreateAppResourceAllocRequest.cc b/retailcloud/src/model/CreateAppResourceAllocRequest.cc new file mode 100644 index 000000000..bab0dc656 --- /dev/null +++ b/retailcloud/src/model/CreateAppResourceAllocRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::CreateAppResourceAllocRequest; + +CreateAppResourceAllocRequest::CreateAppResourceAllocRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "CreateAppResourceAlloc") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateAppResourceAllocRequest::~CreateAppResourceAllocRequest() +{} + +long CreateAppResourceAllocRequest::getAppId()const +{ + return appId_; +} + +void CreateAppResourceAllocRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +long CreateAppResourceAllocRequest::getAppEnvId()const +{ + return appEnvId_; +} + +void CreateAppResourceAllocRequest::setAppEnvId(long appEnvId) +{ + appEnvId_ = appEnvId; + setParameter("AppEnvId", std::to_string(appEnvId)); +} + +std::string CreateAppResourceAllocRequest::getClusterId()const +{ + return clusterId_; +} + +void CreateAppResourceAllocRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + diff --git a/retailcloud/src/model/CreateAppResourceAllocResult.cc b/retailcloud/src/model/CreateAppResourceAllocResult.cc new file mode 100644 index 000000000..9c55ebff3 --- /dev/null +++ b/retailcloud/src/model/CreateAppResourceAllocResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +CreateAppResourceAllocResult::CreateAppResourceAllocResult() : + ServiceResult() +{} + +CreateAppResourceAllocResult::CreateAppResourceAllocResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAppResourceAllocResult::~CreateAppResourceAllocResult() +{} + +void CreateAppResourceAllocResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["AppEnvId"].isNull()) + result_.appEnvId = std::stol(resultNode["AppEnvId"].asString()); + if(!resultNode["AppId"].isNull()) + result_.appId = std::stol(resultNode["AppId"].asString()); + if(!resultNode["ClusterId"].isNull()) + result_.clusterId = resultNode["ClusterId"].asString(); + if(!resultNode["Id"].isNull()) + result_.id = std::stol(resultNode["Id"].asString()); + if(!resultNode["ResourceDef"].isNull()) + result_.resourceDef = resultNode["ResourceDef"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateAppResourceAllocResult::getErrMsg()const +{ + return errMsg_; +} + +int CreateAppResourceAllocResult::getCode()const +{ + return code_; +} + +bool CreateAppResourceAllocResult::getSuccess()const +{ + return success_; +} + +CreateAppResourceAllocResult::Result CreateAppResourceAllocResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/CreateAppResult.cc b/retailcloud/src/model/CreateAppResult.cc new file mode 100644 index 000000000..9cdc93eaf --- /dev/null +++ b/retailcloud/src/model/CreateAppResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +CreateAppResult::CreateAppResult() : + ServiceResult() +{} + +CreateAppResult::CreateAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAppResult::~CreateAppResult() +{} + +void CreateAppResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["AppId"].isNull()) + result_.appId = std::stol(resultNode["AppId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string CreateAppResult::getErrMsg()const +{ + return errMsg_; +} + +int CreateAppResult::getCode()const +{ + return code_; +} + +CreateAppResult::Result CreateAppResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/CreateClusterRequest.cc b/retailcloud/src/model/CreateClusterRequest.cc new file mode 100644 index 000000000..bed419342 --- /dev/null +++ b/retailcloud/src/model/CreateClusterRequest.cc @@ -0,0 +1,251 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::CreateClusterRequest; + +CreateClusterRequest::CreateClusterRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "CreateCluster") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateClusterRequest::~CreateClusterRequest() +{} + +std::string CreateClusterRequest::getBusinessCode()const +{ + return businessCode_; +} + +void CreateClusterRequest::setBusinessCode(const std::string& businessCode) +{ + businessCode_ = businessCode; + setParameter("BusinessCode", businessCode); +} + +bool CreateClusterRequest::getCreateWithLogIntegration()const +{ + return createWithLogIntegration_; +} + +void CreateClusterRequest::setCreateWithLogIntegration(bool createWithLogIntegration) +{ + createWithLogIntegration_ = createWithLogIntegration; + setParameter("CreateWithLogIntegration", createWithLogIntegration ? "true" : "false"); +} + +std::vector CreateClusterRequest::getVswitchids()const +{ + return vswitchids_; +} + +void CreateClusterRequest::setVswitchids(const std::vector& vswitchids) +{ + vswitchids_ = vswitchids; + for(int dep1 = 0; dep1!= vswitchids.size(); dep1++) { + setParameter("Vswitchids."+ std::to_string(dep1), vswitchids.at(dep1)); + } +} + +int CreateClusterRequest::getCloudMonitorFlags()const +{ + return cloudMonitorFlags_; +} + +void CreateClusterRequest::setCloudMonitorFlags(int cloudMonitorFlags) +{ + cloudMonitorFlags_ = cloudMonitorFlags; + setParameter("CloudMonitorFlags", std::to_string(cloudMonitorFlags)); +} + +std::string CreateClusterRequest::getClusterEnvType()const +{ + return clusterEnvType_; +} + +void CreateClusterRequest::setClusterEnvType(const std::string& clusterEnvType) +{ + clusterEnvType_ = clusterEnvType; + setParameter("ClusterEnvType", clusterEnvType); +} + +bool CreateClusterRequest::getCreateWithArmsIntegration()const +{ + return createWithArmsIntegration_; +} + +void CreateClusterRequest::setCreateWithArmsIntegration(bool createWithArmsIntegration) +{ + createWithArmsIntegration_ = createWithArmsIntegration; + setParameter("CreateWithArmsIntegration", createWithArmsIntegration ? "true" : "false"); +} + +std::string CreateClusterRequest::getKeyPair()const +{ + return keyPair_; +} + +void CreateClusterRequest::setKeyPair(const std::string& keyPair) +{ + keyPair_ = keyPair; + setParameter("KeyPair", keyPair); +} + +std::string CreateClusterRequest::getClusterTitle()const +{ + return clusterTitle_; +} + +void CreateClusterRequest::setClusterTitle(const std::string& clusterTitle) +{ + clusterTitle_ = clusterTitle; + setParameter("ClusterTitle", clusterTitle); +} + +std::string CreateClusterRequest::getPodCIDR()const +{ + return podCIDR_; +} + +void CreateClusterRequest::setPodCIDR(const std::string& podCIDR) +{ + podCIDR_ = podCIDR; + setParameter("PodCIDR", podCIDR); +} + +long CreateClusterRequest::getClusterId()const +{ + return clusterId_; +} + +void CreateClusterRequest::setClusterId(long clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", std::to_string(clusterId)); +} + +std::string CreateClusterRequest::getClusterType()const +{ + return clusterType_; +} + +void CreateClusterRequest::setClusterType(const std::string& clusterType) +{ + clusterType_ = clusterType; + setParameter("ClusterType", clusterType); +} + +std::string CreateClusterRequest::getPassword()const +{ + return password_; +} + +void CreateClusterRequest::setPassword(const std::string& password) +{ + password_ = password; + setParameter("Password", password); +} + +int CreateClusterRequest::getSnatEntry()const +{ + return snatEntry_; +} + +void CreateClusterRequest::setSnatEntry(int snatEntry) +{ + snatEntry_ = snatEntry; + setParameter("SnatEntry", std::to_string(snatEntry)); +} + +std::string CreateClusterRequest::getNetPlug()const +{ + return netPlug_; +} + +void CreateClusterRequest::setNetPlug(const std::string& netPlug) +{ + netPlug_ = netPlug; + setParameter("NetPlug", netPlug); +} + +std::string CreateClusterRequest::getRegionId()const +{ + return regionId_; +} + +void CreateClusterRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateClusterRequest::getVpcId()const +{ + return vpcId_; +} + +void CreateClusterRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string CreateClusterRequest::getRegionName()const +{ + return regionName_; +} + +void CreateClusterRequest::setRegionName(const std::string& regionName) +{ + regionName_ = regionName; + setParameter("RegionName", regionName); +} + +bool CreateClusterRequest::getPrivateZone()const +{ + return privateZone_; +} + +void CreateClusterRequest::setPrivateZone(bool privateZone) +{ + privateZone_ = privateZone; + setParameter("PrivateZone", privateZone ? "true" : "false"); +} + +std::string CreateClusterRequest::getServiceCIDR()const +{ + return serviceCIDR_; +} + +void CreateClusterRequest::setServiceCIDR(const std::string& serviceCIDR) +{ + serviceCIDR_ = serviceCIDR; + setParameter("ServiceCIDR", serviceCIDR); +} + +int CreateClusterRequest::getPublicSlb()const +{ + return publicSlb_; +} + +void CreateClusterRequest::setPublicSlb(int publicSlb) +{ + publicSlb_ = publicSlb; + setParameter("PublicSlb", std::to_string(publicSlb)); +} + diff --git a/retailcloud/src/model/CreateClusterResult.cc b/retailcloud/src/model/CreateClusterResult.cc new file mode 100644 index 000000000..0009c4c32 --- /dev/null +++ b/retailcloud/src/model/CreateClusterResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +CreateClusterResult::CreateClusterResult() : + ServiceResult() +{} + +CreateClusterResult::CreateClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateClusterResult::~CreateClusterResult() +{} + +void CreateClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["ClusterInstanceId"].isNull()) + result_.clusterInstanceId = resultNode["ClusterInstanceId"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateClusterResult::getErrMsg()const +{ + return errMsg_; +} + +int CreateClusterResult::getCode()const +{ + return code_; +} + +bool CreateClusterResult::getSuccess()const +{ + return success_; +} + +CreateClusterResult::Result CreateClusterResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/CreateDbRequest.cc b/retailcloud/src/model/CreateDbRequest.cc new file mode 100644 index 000000000..24a222b4c --- /dev/null +++ b/retailcloud/src/model/CreateDbRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::CreateDbRequest; + +CreateDbRequest::CreateDbRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "CreateDb") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateDbRequest::~CreateDbRequest() +{} + +std::string CreateDbRequest::getDbName()const +{ + return dbName_; +} + +void CreateDbRequest::setDbName(const std::string& dbName) +{ + dbName_ = dbName; + setBodyParameter("DbName", dbName); +} + +std::string CreateDbRequest::getDbInstanceId()const +{ + return dbInstanceId_; +} + +void CreateDbRequest::setDbInstanceId(const std::string& dbInstanceId) +{ + dbInstanceId_ = dbInstanceId; + setBodyParameter("DbInstanceId", dbInstanceId); +} + +std::string CreateDbRequest::getDbDescription()const +{ + return dbDescription_; +} + +void CreateDbRequest::setDbDescription(const std::string& dbDescription) +{ + dbDescription_ = dbDescription; + setBodyParameter("DbDescription", dbDescription); +} + +std::string CreateDbRequest::getCharacterSetName()const +{ + return characterSetName_; +} + +void CreateDbRequest::setCharacterSetName(const std::string& characterSetName) +{ + characterSetName_ = characterSetName; + setBodyParameter("CharacterSetName", characterSetName); +} + diff --git a/retailcloud/src/model/CreateDbResult.cc b/retailcloud/src/model/CreateDbResult.cc new file mode 100644 index 000000000..3c118535c --- /dev/null +++ b/retailcloud/src/model/CreateDbResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +CreateDbResult::CreateDbResult() : + ServiceResult() +{} + +CreateDbResult::CreateDbResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDbResult::~CreateDbResult() +{} + +void CreateDbResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string CreateDbResult::getErrMsg()const +{ + return errMsg_; +} + +int CreateDbResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/CreateDeployConfigRequest.cc b/retailcloud/src/model/CreateDeployConfigRequest.cc new file mode 100644 index 000000000..2c37efb63 --- /dev/null +++ b/retailcloud/src/model/CreateDeployConfigRequest.cc @@ -0,0 +1,132 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::CreateDeployConfigRequest; + +CreateDeployConfigRequest::CreateDeployConfigRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "CreateDeployConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateDeployConfigRequest::~CreateDeployConfigRequest() +{} + +std::string CreateDeployConfigRequest::getCodePath()const +{ + return codePath_; +} + +void CreateDeployConfigRequest::setCodePath(const std::string& codePath) +{ + codePath_ = codePath; + setParameter("CodePath", codePath); +} + +std::vector CreateDeployConfigRequest::getConfigMapList()const +{ + return configMapList_; +} + +void CreateDeployConfigRequest::setConfigMapList(const std::vector& configMapList) +{ + configMapList_ = configMapList; + for(int dep1 = 0; dep1!= configMapList.size(); dep1++) { + setParameter("ConfigMapList."+ std::to_string(dep1), configMapList.at(dep1)); + } +} + +long CreateDeployConfigRequest::getAppId()const +{ + return appId_; +} + +void CreateDeployConfigRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string CreateDeployConfigRequest::getConfigMap()const +{ + return configMap_; +} + +void CreateDeployConfigRequest::setConfigMap(const std::string& configMap) +{ + configMap_ = configMap; + setParameter("ConfigMap", configMap); +} + +std::string CreateDeployConfigRequest::getStatefulSet()const +{ + return statefulSet_; +} + +void CreateDeployConfigRequest::setStatefulSet(const std::string& statefulSet) +{ + statefulSet_ = statefulSet; + setParameter("StatefulSet", statefulSet); +} + +std::string CreateDeployConfigRequest::getEnvType()const +{ + return envType_; +} + +void CreateDeployConfigRequest::setEnvType(const std::string& envType) +{ + envType_ = envType; + setParameter("EnvType", envType); +} + +std::string CreateDeployConfigRequest::getName()const +{ + return name_; +} + +void CreateDeployConfigRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::vector CreateDeployConfigRequest::getSecretList()const +{ + return secretList_; +} + +void CreateDeployConfigRequest::setSecretList(const std::vector& secretList) +{ + secretList_ = secretList; + for(int dep1 = 0; dep1!= secretList.size(); dep1++) { + setParameter("SecretList."+ std::to_string(dep1), secretList.at(dep1)); + } +} + +std::string CreateDeployConfigRequest::getDeployment()const +{ + return deployment_; +} + +void CreateDeployConfigRequest::setDeployment(const std::string& deployment) +{ + deployment_ = deployment; + setParameter("Deployment", deployment); +} + diff --git a/retailcloud/src/model/CreateDeployConfigResult.cc b/retailcloud/src/model/CreateDeployConfigResult.cc new file mode 100644 index 000000000..acfa2a286 --- /dev/null +++ b/retailcloud/src/model/CreateDeployConfigResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +CreateDeployConfigResult::CreateDeployConfigResult() : + ServiceResult() +{} + +CreateDeployConfigResult::CreateDeployConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDeployConfigResult::~CreateDeployConfigResult() +{} + +void CreateDeployConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["AppId"].isNull()) + result_.appId = std::stol(resultNode["AppId"].asString()); + if(!resultNode["Name"].isNull()) + result_.name = resultNode["Name"].asString(); + if(!resultNode["SchemaId"].isNull()) + result_.schemaId = std::stol(resultNode["SchemaId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); + +} + +std::string CreateDeployConfigResult::getErrMessage()const +{ + return errMessage_; +} + +int CreateDeployConfigResult::getCode()const +{ + return code_; +} + +CreateDeployConfigResult::Result CreateDeployConfigResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/CreateEnvironmentRequest.cc b/retailcloud/src/model/CreateEnvironmentRequest.cc new file mode 100644 index 000000000..d5d617f1a --- /dev/null +++ b/retailcloud/src/model/CreateEnvironmentRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::CreateEnvironmentRequest; + +CreateEnvironmentRequest::CreateEnvironmentRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "CreateEnvironment") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateEnvironmentRequest::~CreateEnvironmentRequest() +{} + +std::string CreateEnvironmentRequest::getEnvName()const +{ + return envName_; +} + +void CreateEnvironmentRequest::setEnvName(const std::string& envName) +{ + envName_ = envName; + setParameter("EnvName", envName); +} + +int CreateEnvironmentRequest::getReplicas()const +{ + return replicas_; +} + +void CreateEnvironmentRequest::setReplicas(int replicas) +{ + replicas_ = replicas; + setParameter("Replicas", std::to_string(replicas)); +} + +long CreateEnvironmentRequest::getAppId()const +{ + return appId_; +} + +void CreateEnvironmentRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +int CreateEnvironmentRequest::getEnvType()const +{ + return envType_; +} + +void CreateEnvironmentRequest::setEnvType(int envType) +{ + envType_ = envType; + setParameter("EnvType", std::to_string(envType)); +} + +long CreateEnvironmentRequest::getAppSchemaId()const +{ + return appSchemaId_; +} + +void CreateEnvironmentRequest::setAppSchemaId(long appSchemaId) +{ + appSchemaId_ = appSchemaId; + setParameter("AppSchemaId", std::to_string(appSchemaId)); +} + +std::string CreateEnvironmentRequest::getRegion()const +{ + return region_; +} + +void CreateEnvironmentRequest::setRegion(const std::string& region) +{ + region_ = region; + setParameter("Region", region); +} + diff --git a/retailcloud/src/model/CreateEnvironmentResult.cc b/retailcloud/src/model/CreateEnvironmentResult.cc new file mode 100644 index 000000000..a075c4111 --- /dev/null +++ b/retailcloud/src/model/CreateEnvironmentResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +CreateEnvironmentResult::CreateEnvironmentResult() : + ServiceResult() +{} + +CreateEnvironmentResult::CreateEnvironmentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateEnvironmentResult::~CreateEnvironmentResult() +{} + +void CreateEnvironmentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["AppEnvId"].isNull()) + result_.appEnvId = std::stol(resultNode["AppEnvId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string CreateEnvironmentResult::getErrMsg()const +{ + return errMsg_; +} + +int CreateEnvironmentResult::getCode()const +{ + return code_; +} + +CreateEnvironmentResult::Result CreateEnvironmentResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/CreateNodeLabelRequest.cc b/retailcloud/src/model/CreateNodeLabelRequest.cc new file mode 100644 index 000000000..b7f98341d --- /dev/null +++ b/retailcloud/src/model/CreateNodeLabelRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::CreateNodeLabelRequest; + +CreateNodeLabelRequest::CreateNodeLabelRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "CreateNodeLabel") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateNodeLabelRequest::~CreateNodeLabelRequest() +{} + +std::string CreateNodeLabelRequest::getLabelKey()const +{ + return labelKey_; +} + +void CreateNodeLabelRequest::setLabelKey(const std::string& labelKey) +{ + labelKey_ = labelKey; + setParameter("LabelKey", labelKey); +} + +std::string CreateNodeLabelRequest::getLabelValue()const +{ + return labelValue_; +} + +void CreateNodeLabelRequest::setLabelValue(const std::string& labelValue) +{ + labelValue_ = labelValue; + setParameter("LabelValue", labelValue); +} + +std::string CreateNodeLabelRequest::getClusterId()const +{ + return clusterId_; +} + +void CreateNodeLabelRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + diff --git a/retailcloud/src/model/CreateNodeLabelResult.cc b/retailcloud/src/model/CreateNodeLabelResult.cc new file mode 100644 index 000000000..7db73abb4 --- /dev/null +++ b/retailcloud/src/model/CreateNodeLabelResult.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::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +CreateNodeLabelResult::CreateNodeLabelResult() : + ServiceResult() +{} + +CreateNodeLabelResult::CreateNodeLabelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNodeLabelResult::~CreateNodeLabelResult() +{} + +void CreateNodeLabelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["ClusterId"].isNull()) + result_.clusterId = resultNode["ClusterId"].asString(); + if(!resultNode["Id"].isNull()) + result_.id = std::stol(resultNode["Id"].asString()); + if(!resultNode["LabelKey"].isNull()) + result_.labelKey = resultNode["LabelKey"].asString(); + if(!resultNode["LabelValue"].isNull()) + result_.labelValue = resultNode["LabelValue"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateNodeLabelResult::getErrMsg()const +{ + return errMsg_; +} + +int CreateNodeLabelResult::getCode()const +{ + return code_; +} + +bool CreateNodeLabelResult::getSuccess()const +{ + return success_; +} + +CreateNodeLabelResult::Result CreateNodeLabelResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/CreatePersistentVolumeClaimRequest.cc b/retailcloud/src/model/CreatePersistentVolumeClaimRequest.cc new file mode 100644 index 000000000..b9a98b7b3 --- /dev/null +++ b/retailcloud/src/model/CreatePersistentVolumeClaimRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::CreatePersistentVolumeClaimRequest; + +CreatePersistentVolumeClaimRequest::CreatePersistentVolumeClaimRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "CreatePersistentVolumeClaim") +{ + setMethod(HttpRequest::Method::Post); +} + +CreatePersistentVolumeClaimRequest::~CreatePersistentVolumeClaimRequest() +{} + +std::string CreatePersistentVolumeClaimRequest::getAccessModes()const +{ + return accessModes_; +} + +void CreatePersistentVolumeClaimRequest::setAccessModes(const std::string& accessModes) +{ + accessModes_ = accessModes; + setParameter("AccessModes", accessModes); +} + +long CreatePersistentVolumeClaimRequest::getAppId()const +{ + return appId_; +} + +void CreatePersistentVolumeClaimRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string CreatePersistentVolumeClaimRequest::getName()const +{ + return name_; +} + +void CreatePersistentVolumeClaimRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +long CreatePersistentVolumeClaimRequest::getEnvId()const +{ + return envId_; +} + +void CreatePersistentVolumeClaimRequest::setEnvId(long envId) +{ + envId_ = envId; + setParameter("EnvId", std::to_string(envId)); +} + +std::string CreatePersistentVolumeClaimRequest::getStorageClass()const +{ + return storageClass_; +} + +void CreatePersistentVolumeClaimRequest::setStorageClass(const std::string& storageClass) +{ + storageClass_ = storageClass; + setParameter("StorageClass", storageClass); +} + +std::string CreatePersistentVolumeClaimRequest::getCapacity()const +{ + return capacity_; +} + +void CreatePersistentVolumeClaimRequest::setCapacity(const std::string& capacity) +{ + capacity_ = capacity; + setParameter("Capacity", capacity); +} + diff --git a/retailcloud/src/model/CreatePersistentVolumeClaimResult.cc b/retailcloud/src/model/CreatePersistentVolumeClaimResult.cc new file mode 100644 index 000000000..cc7ee2d1a --- /dev/null +++ b/retailcloud/src/model/CreatePersistentVolumeClaimResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +CreatePersistentVolumeClaimResult::CreatePersistentVolumeClaimResult() : + ServiceResult() +{} + +CreatePersistentVolumeClaimResult::CreatePersistentVolumeClaimResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePersistentVolumeClaimResult::~CreatePersistentVolumeClaimResult() +{} + +void CreatePersistentVolumeClaimResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PersistentVolumeClaimId"].isNull()) + result_.persistentVolumeClaimId = std::stol(resultNode["PersistentVolumeClaimId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string CreatePersistentVolumeClaimResult::getErrMsg()const +{ + return errMsg_; +} + +int CreatePersistentVolumeClaimResult::getCode()const +{ + return code_; +} + +CreatePersistentVolumeClaimResult::Result CreatePersistentVolumeClaimResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/CreatePersistentVolumeRequest.cc b/retailcloud/src/model/CreatePersistentVolumeRequest.cc new file mode 100644 index 000000000..02bd81462 --- /dev/null +++ b/retailcloud/src/model/CreatePersistentVolumeRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::CreatePersistentVolumeRequest; + +CreatePersistentVolumeRequest::CreatePersistentVolumeRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "CreatePersistentVolume") +{ + setMethod(HttpRequest::Method::Post); +} + +CreatePersistentVolumeRequest::~CreatePersistentVolumeRequest() +{} + +std::string CreatePersistentVolumeRequest::getReclaimPolicy()const +{ + return reclaimPolicy_; +} + +void CreatePersistentVolumeRequest::setReclaimPolicy(const std::string& reclaimPolicy) +{ + reclaimPolicy_ = reclaimPolicy; + setBodyParameter("ReclaimPolicy", reclaimPolicy); +} + +std::string CreatePersistentVolumeRequest::getNFSVersion()const +{ + return nFSVersion_; +} + +void CreatePersistentVolumeRequest::setNFSVersion(const std::string& nFSVersion) +{ + nFSVersion_ = nFSVersion; + setBodyParameter("NFSVersion", nFSVersion); +} + +std::string CreatePersistentVolumeRequest::getAccessModes()const +{ + return accessModes_; +} + +void CreatePersistentVolumeRequest::setAccessModes(const std::string& accessModes) +{ + accessModes_ = accessModes; + setBodyParameter("AccessModes", accessModes); +} + +std::string CreatePersistentVolumeRequest::getName()const +{ + return name_; +} + +void CreatePersistentVolumeRequest::setName(const std::string& name) +{ + name_ = name; + setBodyParameter("Name", name); +} + +std::string CreatePersistentVolumeRequest::getMountTargetDomain()const +{ + return mountTargetDomain_; +} + +void CreatePersistentVolumeRequest::setMountTargetDomain(const std::string& mountTargetDomain) +{ + mountTargetDomain_ = mountTargetDomain; + setBodyParameter("MountTargetDomain", mountTargetDomain); +} + +std::string CreatePersistentVolumeRequest::getMountDir()const +{ + return mountDir_; +} + +void CreatePersistentVolumeRequest::setMountDir(const std::string& mountDir) +{ + mountDir_ = mountDir; + setBodyParameter("MountDir", mountDir); +} + +std::string CreatePersistentVolumeRequest::getClusterInstanceId()const +{ + return clusterInstanceId_; +} + +void CreatePersistentVolumeRequest::setClusterInstanceId(const std::string& clusterInstanceId) +{ + clusterInstanceId_ = clusterInstanceId; + setBodyParameter("ClusterInstanceId", clusterInstanceId); +} + +std::string CreatePersistentVolumeRequest::getCapacity()const +{ + return capacity_; +} + +void CreatePersistentVolumeRequest::setCapacity(const std::string& capacity) +{ + capacity_ = capacity; + setBodyParameter("Capacity", capacity); +} + +std::string CreatePersistentVolumeRequest::getStorageClass()const +{ + return storageClass_; +} + +void CreatePersistentVolumeRequest::setStorageClass(const std::string& storageClass) +{ + storageClass_ = storageClass; + setBodyParameter("StorageClass", storageClass); +} + diff --git a/retailcloud/src/model/CreatePersistentVolumeResult.cc b/retailcloud/src/model/CreatePersistentVolumeResult.cc new file mode 100644 index 000000000..86d4fddb8 --- /dev/null +++ b/retailcloud/src/model/CreatePersistentVolumeResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +CreatePersistentVolumeResult::CreatePersistentVolumeResult() : + ServiceResult() +{} + +CreatePersistentVolumeResult::CreatePersistentVolumeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePersistentVolumeResult::~CreatePersistentVolumeResult() +{} + +void CreatePersistentVolumeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["PersistentVolumeId"].isNull()) + result_.persistentVolumeId = std::stol(resultNode["PersistentVolumeId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string CreatePersistentVolumeResult::getErrMsg()const +{ + return errMsg_; +} + +int CreatePersistentVolumeResult::getCode()const +{ + return code_; +} + +CreatePersistentVolumeResult::Result CreatePersistentVolumeResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/CreateServiceRequest.cc b/retailcloud/src/model/CreateServiceRequest.cc new file mode 100644 index 000000000..d506ee23c --- /dev/null +++ b/retailcloud/src/model/CreateServiceRequest.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 + +using AlibabaCloud::Retailcloud::Model::CreateServiceRequest; + +CreateServiceRequest::CreateServiceRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "CreateService") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateServiceRequest::~CreateServiceRequest() +{} + +bool CreateServiceRequest::getHeadless()const +{ + return headless_; +} + +void CreateServiceRequest::setHeadless(bool headless) +{ + headless_ = headless; + setParameter("Headless", headless ? "true" : "false"); +} + +std::string CreateServiceRequest::getServiceType()const +{ + return serviceType_; +} + +void CreateServiceRequest::setServiceType(const std::string& serviceType) +{ + serviceType_ = serviceType; + setParameter("ServiceType", serviceType); +} + +std::string CreateServiceRequest::getK8sServiceId()const +{ + return k8sServiceId_; +} + +void CreateServiceRequest::setK8sServiceId(const std::string& k8sServiceId) +{ + k8sServiceId_ = k8sServiceId; + setParameter("K8sServiceId", k8sServiceId); +} + +std::string CreateServiceRequest::getName()const +{ + return name_; +} + +void CreateServiceRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::vector CreateServiceRequest::getPortMappings()const +{ + return portMappings_; +} + +void CreateServiceRequest::setPortMappings(const std::vector& portMappings) +{ + portMappings_ = portMappings; + for(int dep1 = 0; dep1!= portMappings.size(); dep1++) { + auto portMappingsObj = portMappings.at(dep1); + std::string portMappingsObjStr = "PortMappings." + std::to_string(dep1 + 1); + setParameter(portMappingsObjStr + ".Protocol", portMappingsObj.protocol); + setParameter(portMappingsObjStr + ".Port", std::to_string(portMappingsObj.port)); + setParameter(portMappingsObjStr + ".Name", portMappingsObj.name); + setParameter(portMappingsObjStr + ".NodePort", std::to_string(portMappingsObj.nodePort)); + setParameter(portMappingsObjStr + ".TargetPort", portMappingsObj.targetPort); + } +} + +long CreateServiceRequest::getEnvId()const +{ + return envId_; +} + +void CreateServiceRequest::setEnvId(long envId) +{ + envId_ = envId; + setParameter("EnvId", std::to_string(envId)); +} + diff --git a/retailcloud/src/model/CreateServiceResult.cc b/retailcloud/src/model/CreateServiceResult.cc new file mode 100644 index 000000000..e7bd208e3 --- /dev/null +++ b/retailcloud/src/model/CreateServiceResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +CreateServiceResult::CreateServiceResult() : + ServiceResult() +{} + +CreateServiceResult::CreateServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateServiceResult::~CreateServiceResult() +{} + +void CreateServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["ServiceId"].isNull()) + result_.serviceId = std::stol(resultNode["ServiceId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateServiceResult::getErrMsg()const +{ + return errMsg_; +} + +int CreateServiceResult::getCode()const +{ + return code_; +} + +bool CreateServiceResult::getSuccess()const +{ + return success_; +} + +CreateServiceResult::Result CreateServiceResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/CreateSlbAPRequest.cc b/retailcloud/src/model/CreateSlbAPRequest.cc new file mode 100644 index 000000000..d2b6a5b3f --- /dev/null +++ b/retailcloud/src/model/CreateSlbAPRequest.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::CreateSlbAPRequest; + +CreateSlbAPRequest::CreateSlbAPRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "CreateSlbAP") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateSlbAPRequest::~CreateSlbAPRequest() +{} + +std::string CreateSlbAPRequest::getSslCertId()const +{ + return sslCertId_; +} + +void CreateSlbAPRequest::setSslCertId(const std::string& sslCertId) +{ + sslCertId_ = sslCertId; + setParameter("SslCertId", sslCertId); +} + +int CreateSlbAPRequest::getListenerPort()const +{ + return listenerPort_; +} + +void CreateSlbAPRequest::setListenerPort(int listenerPort) +{ + listenerPort_ = listenerPort; + setParameter("ListenerPort", std::to_string(listenerPort)); +} + +std::string CreateSlbAPRequest::getProtocol()const +{ + return protocol_; +} + +void CreateSlbAPRequest::setProtocol(const std::string& protocol) +{ + protocol_ = protocol; + setParameter("Protocol", protocol); +} + +int CreateSlbAPRequest::getEstablishedTimeout()const +{ + return establishedTimeout_; +} + +void CreateSlbAPRequest::setEstablishedTimeout(int establishedTimeout) +{ + establishedTimeout_ = establishedTimeout; + setParameter("EstablishedTimeout", std::to_string(establishedTimeout)); +} + +std::string CreateSlbAPRequest::getSlbId()const +{ + return slbId_; +} + +void CreateSlbAPRequest::setSlbId(const std::string& slbId) +{ + slbId_ = slbId; + setParameter("SlbId", slbId); +} + +int CreateSlbAPRequest::getRealServerPort()const +{ + return realServerPort_; +} + +void CreateSlbAPRequest::setRealServerPort(int realServerPort) +{ + realServerPort_ = realServerPort; + setParameter("RealServerPort", std::to_string(realServerPort)); +} + +int CreateSlbAPRequest::getStickySession()const +{ + return stickySession_; +} + +void CreateSlbAPRequest::setStickySession(int stickySession) +{ + stickySession_ = stickySession; + setParameter("StickySession", std::to_string(stickySession)); +} + +int CreateSlbAPRequest::getCookieTimeout()const +{ + return cookieTimeout_; +} + +void CreateSlbAPRequest::setCookieTimeout(int cookieTimeout) +{ + cookieTimeout_ = cookieTimeout; + setParameter("CookieTimeout", std::to_string(cookieTimeout)); +} + +std::string CreateSlbAPRequest::getName()const +{ + return name_; +} + +void CreateSlbAPRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +long CreateSlbAPRequest::getEnvId()const +{ + return envId_; +} + +void CreateSlbAPRequest::setEnvId(long envId) +{ + envId_ = envId; + setParameter("EnvId", std::to_string(envId)); +} + diff --git a/retailcloud/src/model/CreateSlbAPResult.cc b/retailcloud/src/model/CreateSlbAPResult.cc new file mode 100644 index 000000000..e05bb445e --- /dev/null +++ b/retailcloud/src/model/CreateSlbAPResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +CreateSlbAPResult::CreateSlbAPResult() : + ServiceResult() +{} + +CreateSlbAPResult::CreateSlbAPResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSlbAPResult::~CreateSlbAPResult() +{} + +void CreateSlbAPResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["SlbAPId"].isNull()) + result_.slbAPId = std::stol(resultNode["SlbAPId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateSlbAPResult::getErrMsg()const +{ + return errMsg_; +} + +int CreateSlbAPResult::getCode()const +{ + return code_; +} + +bool CreateSlbAPResult::getSuccess()const +{ + return success_; +} + +CreateSlbAPResult::Result CreateSlbAPResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/DeleteAppDetailRequest.cc b/retailcloud/src/model/DeleteAppDetailRequest.cc new file mode 100644 index 000000000..9ff38fe09 --- /dev/null +++ b/retailcloud/src/model/DeleteAppDetailRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DeleteAppDetailRequest; + +DeleteAppDetailRequest::DeleteAppDetailRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DeleteAppDetail") +{ + setMethod(HttpRequest::Method::Get); +} + +DeleteAppDetailRequest::~DeleteAppDetailRequest() +{} + +long DeleteAppDetailRequest::getAppId()const +{ + return appId_; +} + +void DeleteAppDetailRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +bool DeleteAppDetailRequest::getForce()const +{ + return force_; +} + +void DeleteAppDetailRequest::setForce(bool force) +{ + force_ = force; + setParameter("Force", force ? "true" : "false"); +} + diff --git a/retailcloud/src/model/DeleteAppDetailResult.cc b/retailcloud/src/model/DeleteAppDetailResult.cc new file mode 100644 index 000000000..f5efbae0f --- /dev/null +++ b/retailcloud/src/model/DeleteAppDetailResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DeleteAppDetailResult::DeleteAppDetailResult() : + ServiceResult() +{} + +DeleteAppDetailResult::DeleteAppDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAppDetailResult::~DeleteAppDetailResult() +{} + +void DeleteAppDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Success"].isNull()) + result_.success = resultNode["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string DeleteAppDetailResult::getErrMsg()const +{ + return errMsg_; +} + +int DeleteAppDetailResult::getCode()const +{ + return code_; +} + +DeleteAppDetailResult::Result DeleteAppDetailResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/DeleteAppEnvironmentRequest.cc b/retailcloud/src/model/DeleteAppEnvironmentRequest.cc new file mode 100644 index 000000000..f89bf1569 --- /dev/null +++ b/retailcloud/src/model/DeleteAppEnvironmentRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DeleteAppEnvironmentRequest; + +DeleteAppEnvironmentRequest::DeleteAppEnvironmentRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DeleteAppEnvironment") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteAppEnvironmentRequest::~DeleteAppEnvironmentRequest() +{} + +long DeleteAppEnvironmentRequest::getAppId()const +{ + return appId_; +} + +void DeleteAppEnvironmentRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +bool DeleteAppEnvironmentRequest::getForce()const +{ + return force_; +} + +void DeleteAppEnvironmentRequest::setForce(bool force) +{ + force_ = force; + setParameter("Force", force ? "true" : "false"); +} + +long DeleteAppEnvironmentRequest::getEnvId()const +{ + return envId_; +} + +void DeleteAppEnvironmentRequest::setEnvId(long envId) +{ + envId_ = envId; + setParameter("EnvId", std::to_string(envId)); +} + diff --git a/retailcloud/src/model/DeleteAppEnvironmentResult.cc b/retailcloud/src/model/DeleteAppEnvironmentResult.cc new file mode 100644 index 000000000..9e7feb51f --- /dev/null +++ b/retailcloud/src/model/DeleteAppEnvironmentResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DeleteAppEnvironmentResult::DeleteAppEnvironmentResult() : + ServiceResult() +{} + +DeleteAppEnvironmentResult::DeleteAppEnvironmentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAppEnvironmentResult::~DeleteAppEnvironmentResult() +{} + +void DeleteAppEnvironmentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Success"].isNull()) + result_.success = resultNode["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string DeleteAppEnvironmentResult::getErrMsg()const +{ + return errMsg_; +} + +int DeleteAppEnvironmentResult::getCode()const +{ + return code_; +} + +DeleteAppEnvironmentResult::Result DeleteAppEnvironmentResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/DeleteAppResourceAllocRequest.cc b/retailcloud/src/model/DeleteAppResourceAllocRequest.cc new file mode 100644 index 000000000..c0b54e735 --- /dev/null +++ b/retailcloud/src/model/DeleteAppResourceAllocRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DeleteAppResourceAllocRequest; + +DeleteAppResourceAllocRequest::DeleteAppResourceAllocRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DeleteAppResourceAlloc") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteAppResourceAllocRequest::~DeleteAppResourceAllocRequest() +{} + +long DeleteAppResourceAllocRequest::getAppEnvId()const +{ + return appEnvId_; +} + +void DeleteAppResourceAllocRequest::setAppEnvId(long appEnvId) +{ + appEnvId_ = appEnvId; + setParameter("AppEnvId", std::to_string(appEnvId)); +} + diff --git a/retailcloud/src/model/DeleteAppResourceAllocResult.cc b/retailcloud/src/model/DeleteAppResourceAllocResult.cc new file mode 100644 index 000000000..fb272fbce --- /dev/null +++ b/retailcloud/src/model/DeleteAppResourceAllocResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DeleteAppResourceAllocResult::DeleteAppResourceAllocResult() : + ServiceResult() +{} + +DeleteAppResourceAllocResult::DeleteAppResourceAllocResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAppResourceAllocResult::~DeleteAppResourceAllocResult() +{} + +void DeleteAppResourceAllocResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteAppResourceAllocResult::getErrMsg()const +{ + return errMsg_; +} + +int DeleteAppResourceAllocResult::getCode()const +{ + return code_; +} + +bool DeleteAppResourceAllocResult::getSuccess()const +{ + return success_; +} + diff --git a/retailcloud/src/model/DeleteClusterRequest.cc b/retailcloud/src/model/DeleteClusterRequest.cc new file mode 100644 index 000000000..1cc86eb29 --- /dev/null +++ b/retailcloud/src/model/DeleteClusterRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DeleteClusterRequest; + +DeleteClusterRequest::DeleteClusterRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DeleteCluster") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteClusterRequest::~DeleteClusterRequest() +{} + +std::string DeleteClusterRequest::getClusterInstanceId()const +{ + return clusterInstanceId_; +} + +void DeleteClusterRequest::setClusterInstanceId(const std::string& clusterInstanceId) +{ + clusterInstanceId_ = clusterInstanceId; + setParameter("ClusterInstanceId", clusterInstanceId); +} + diff --git a/retailcloud/src/model/DeleteClusterResult.cc b/retailcloud/src/model/DeleteClusterResult.cc new file mode 100644 index 000000000..33c1d3835 --- /dev/null +++ b/retailcloud/src/model/DeleteClusterResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DeleteClusterResult::DeleteClusterResult() : + ServiceResult() +{} + +DeleteClusterResult::DeleteClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteClusterResult::~DeleteClusterResult() +{} + +void DeleteClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Nonsense"].isNull()) + result_.nonsense = std::stoi(resultNode["Nonsense"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteClusterResult::getErrMsg()const +{ + return errMsg_; +} + +int DeleteClusterResult::getCode()const +{ + return code_; +} + +bool DeleteClusterResult::getSuccess()const +{ + return success_; +} + +DeleteClusterResult::Result DeleteClusterResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/DeleteDatabaseRequest.cc b/retailcloud/src/model/DeleteDatabaseRequest.cc new file mode 100644 index 000000000..6c87d2712 --- /dev/null +++ b/retailcloud/src/model/DeleteDatabaseRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DeleteDatabaseRequest; + +DeleteDatabaseRequest::DeleteDatabaseRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DeleteDatabase") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteDatabaseRequest::~DeleteDatabaseRequest() +{} + +std::string DeleteDatabaseRequest::getDBName()const +{ + return dBName_; +} + +void DeleteDatabaseRequest::setDBName(const std::string& dBName) +{ + dBName_ = dBName; + setBodyParameter("DBName", dBName); +} + +std::string DeleteDatabaseRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DeleteDatabaseRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setBodyParameter("DBInstanceId", dBInstanceId); +} + diff --git a/retailcloud/src/model/DeleteDatabaseResult.cc b/retailcloud/src/model/DeleteDatabaseResult.cc new file mode 100644 index 000000000..226eb6140 --- /dev/null +++ b/retailcloud/src/model/DeleteDatabaseResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DeleteDatabaseResult::DeleteDatabaseResult() : + ServiceResult() +{} + +DeleteDatabaseResult::DeleteDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDatabaseResult::~DeleteDatabaseResult() +{} + +void DeleteDatabaseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string DeleteDatabaseResult::getErrMsg()const +{ + return errMsg_; +} + +int DeleteDatabaseResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/DeleteDeployConfigRequest.cc b/retailcloud/src/model/DeleteDeployConfigRequest.cc new file mode 100644 index 000000000..038e3df69 --- /dev/null +++ b/retailcloud/src/model/DeleteDeployConfigRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DeleteDeployConfigRequest; + +DeleteDeployConfigRequest::DeleteDeployConfigRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DeleteDeployConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteDeployConfigRequest::~DeleteDeployConfigRequest() +{} + +long DeleteDeployConfigRequest::getSchemaId()const +{ + return schemaId_; +} + +void DeleteDeployConfigRequest::setSchemaId(long schemaId) +{ + schemaId_ = schemaId; + setParameter("SchemaId", std::to_string(schemaId)); +} + diff --git a/retailcloud/src/model/DeleteDeployConfigResult.cc b/retailcloud/src/model/DeleteDeployConfigResult.cc new file mode 100644 index 000000000..bc094888d --- /dev/null +++ b/retailcloud/src/model/DeleteDeployConfigResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DeleteDeployConfigResult::DeleteDeployConfigResult() : + ServiceResult() +{} + +DeleteDeployConfigResult::DeleteDeployConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDeployConfigResult::~DeleteDeployConfigResult() +{} + +void DeleteDeployConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Success"].isNull()) + result_.success = resultNode["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string DeleteDeployConfigResult::getErrMsg()const +{ + return errMsg_; +} + +int DeleteDeployConfigResult::getCode()const +{ + return code_; +} + +DeleteDeployConfigResult::Result DeleteDeployConfigResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/DeleteNodeLabelRequest.cc b/retailcloud/src/model/DeleteNodeLabelRequest.cc new file mode 100644 index 000000000..bc9543f0a --- /dev/null +++ b/retailcloud/src/model/DeleteNodeLabelRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DeleteNodeLabelRequest; + +DeleteNodeLabelRequest::DeleteNodeLabelRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DeleteNodeLabel") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteNodeLabelRequest::~DeleteNodeLabelRequest() +{} + +std::string DeleteNodeLabelRequest::getLabelKey()const +{ + return labelKey_; +} + +void DeleteNodeLabelRequest::setLabelKey(const std::string& labelKey) +{ + labelKey_ = labelKey; + setParameter("LabelKey", labelKey); +} + +std::string DeleteNodeLabelRequest::getLabelValue()const +{ + return labelValue_; +} + +void DeleteNodeLabelRequest::setLabelValue(const std::string& labelValue) +{ + labelValue_ = labelValue; + setParameter("LabelValue", labelValue); +} + +bool DeleteNodeLabelRequest::getForce()const +{ + return force_; +} + +void DeleteNodeLabelRequest::setForce(bool force) +{ + force_ = force; + setParameter("Force", force ? "true" : "false"); +} + +std::string DeleteNodeLabelRequest::getClusterId()const +{ + return clusterId_; +} + +void DeleteNodeLabelRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + diff --git a/retailcloud/src/model/DeleteNodeLabelResult.cc b/retailcloud/src/model/DeleteNodeLabelResult.cc new file mode 100644 index 000000000..c5c8b96cc --- /dev/null +++ b/retailcloud/src/model/DeleteNodeLabelResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DeleteNodeLabelResult::DeleteNodeLabelResult() : + ServiceResult() +{} + +DeleteNodeLabelResult::DeleteNodeLabelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNodeLabelResult::~DeleteNodeLabelResult() +{} + +void DeleteNodeLabelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteNodeLabelResult::getErrMsg()const +{ + return errMsg_; +} + +int DeleteNodeLabelResult::getCode()const +{ + return code_; +} + +bool DeleteNodeLabelResult::getSuccess()const +{ + return success_; +} + diff --git a/retailcloud/src/model/DeletePersistentVolumeClaimRequest.cc b/retailcloud/src/model/DeletePersistentVolumeClaimRequest.cc new file mode 100644 index 000000000..29c1eb460 --- /dev/null +++ b/retailcloud/src/model/DeletePersistentVolumeClaimRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DeletePersistentVolumeClaimRequest; + +DeletePersistentVolumeClaimRequest::DeletePersistentVolumeClaimRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DeletePersistentVolumeClaim") +{ + setMethod(HttpRequest::Method::Post); +} + +DeletePersistentVolumeClaimRequest::~DeletePersistentVolumeClaimRequest() +{} + +std::string DeletePersistentVolumeClaimRequest::getPersistentVolumeClaimName()const +{ + return persistentVolumeClaimName_; +} + +void DeletePersistentVolumeClaimRequest::setPersistentVolumeClaimName(const std::string& persistentVolumeClaimName) +{ + persistentVolumeClaimName_ = persistentVolumeClaimName; + setParameter("PersistentVolumeClaimName", persistentVolumeClaimName); +} + +long DeletePersistentVolumeClaimRequest::getAppId()const +{ + return appId_; +} + +void DeletePersistentVolumeClaimRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +long DeletePersistentVolumeClaimRequest::getEnvId()const +{ + return envId_; +} + +void DeletePersistentVolumeClaimRequest::setEnvId(long envId) +{ + envId_ = envId; + setParameter("EnvId", std::to_string(envId)); +} + diff --git a/retailcloud/src/model/DeletePersistentVolumeClaimResult.cc b/retailcloud/src/model/DeletePersistentVolumeClaimResult.cc new file mode 100644 index 000000000..4df3051b8 --- /dev/null +++ b/retailcloud/src/model/DeletePersistentVolumeClaimResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DeletePersistentVolumeClaimResult::DeletePersistentVolumeClaimResult() : + ServiceResult() +{} + +DeletePersistentVolumeClaimResult::DeletePersistentVolumeClaimResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeletePersistentVolumeClaimResult::~DeletePersistentVolumeClaimResult() +{} + +void DeletePersistentVolumeClaimResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Success"].isNull()) + result_.success = resultNode["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string DeletePersistentVolumeClaimResult::getErrMsg()const +{ + return errMsg_; +} + +int DeletePersistentVolumeClaimResult::getCode()const +{ + return code_; +} + +DeletePersistentVolumeClaimResult::Result DeletePersistentVolumeClaimResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/DeletePersistentVolumeRequest.cc b/retailcloud/src/model/DeletePersistentVolumeRequest.cc new file mode 100644 index 000000000..7f1026867 --- /dev/null +++ b/retailcloud/src/model/DeletePersistentVolumeRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DeletePersistentVolumeRequest; + +DeletePersistentVolumeRequest::DeletePersistentVolumeRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DeletePersistentVolume") +{ + setMethod(HttpRequest::Method::Post); +} + +DeletePersistentVolumeRequest::~DeletePersistentVolumeRequest() +{} + +std::string DeletePersistentVolumeRequest::getPersistentVolumeName()const +{ + return persistentVolumeName_; +} + +void DeletePersistentVolumeRequest::setPersistentVolumeName(const std::string& persistentVolumeName) +{ + persistentVolumeName_ = persistentVolumeName; + setBodyParameter("PersistentVolumeName", persistentVolumeName); +} + +std::string DeletePersistentVolumeRequest::getClusterInstanceId()const +{ + return clusterInstanceId_; +} + +void DeletePersistentVolumeRequest::setClusterInstanceId(const std::string& clusterInstanceId) +{ + clusterInstanceId_ = clusterInstanceId; + setBodyParameter("ClusterInstanceId", clusterInstanceId); +} + diff --git a/retailcloud/src/model/DeletePersistentVolumeResult.cc b/retailcloud/src/model/DeletePersistentVolumeResult.cc new file mode 100644 index 000000000..2256b3377 --- /dev/null +++ b/retailcloud/src/model/DeletePersistentVolumeResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DeletePersistentVolumeResult::DeletePersistentVolumeResult() : + ServiceResult() +{} + +DeletePersistentVolumeResult::DeletePersistentVolumeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeletePersistentVolumeResult::~DeletePersistentVolumeResult() +{} + +void DeletePersistentVolumeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Success"].isNull()) + result_.success = resultNode["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string DeletePersistentVolumeResult::getErrMsg()const +{ + return errMsg_; +} + +int DeletePersistentVolumeResult::getCode()const +{ + return code_; +} + +DeletePersistentVolumeResult::Result DeletePersistentVolumeResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/DeleteRdsAccountRequest.cc b/retailcloud/src/model/DeleteRdsAccountRequest.cc new file mode 100644 index 000000000..e2e96b7b4 --- /dev/null +++ b/retailcloud/src/model/DeleteRdsAccountRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DeleteRdsAccountRequest; + +DeleteRdsAccountRequest::DeleteRdsAccountRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DeleteRdsAccount") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteRdsAccountRequest::~DeleteRdsAccountRequest() +{} + +std::string DeleteRdsAccountRequest::getAccountName()const +{ + return accountName_; +} + +void DeleteRdsAccountRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string DeleteRdsAccountRequest::getDbInstanceId()const +{ + return dbInstanceId_; +} + +void DeleteRdsAccountRequest::setDbInstanceId(const std::string& dbInstanceId) +{ + dbInstanceId_ = dbInstanceId; + setBodyParameter("DbInstanceId", dbInstanceId); +} + diff --git a/retailcloud/src/model/DeleteRdsAccountResult.cc b/retailcloud/src/model/DeleteRdsAccountResult.cc new file mode 100644 index 000000000..d4d7b2dfa --- /dev/null +++ b/retailcloud/src/model/DeleteRdsAccountResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DeleteRdsAccountResult::DeleteRdsAccountResult() : + ServiceResult() +{} + +DeleteRdsAccountResult::DeleteRdsAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRdsAccountResult::~DeleteRdsAccountResult() +{} + +void DeleteRdsAccountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["RequestId"].isNull()) + result_.requestId = resultNode["RequestId"].asString(); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +std::string DeleteRdsAccountResult::getErrMsg()const +{ + return errMsg_; +} + +int DeleteRdsAccountResult::getCode()const +{ + return code_; +} + +DeleteRdsAccountResult::Result DeleteRdsAccountResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/DeleteServiceRequest.cc b/retailcloud/src/model/DeleteServiceRequest.cc new file mode 100644 index 000000000..852b59309 --- /dev/null +++ b/retailcloud/src/model/DeleteServiceRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DeleteServiceRequest; + +DeleteServiceRequest::DeleteServiceRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DeleteService") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteServiceRequest::~DeleteServiceRequest() +{} + +long DeleteServiceRequest::getServiceId()const +{ + return serviceId_; +} + +void DeleteServiceRequest::setServiceId(long serviceId) +{ + serviceId_ = serviceId; + setParameter("ServiceId", std::to_string(serviceId)); +} + diff --git a/retailcloud/src/model/DeleteServiceResult.cc b/retailcloud/src/model/DeleteServiceResult.cc new file mode 100644 index 000000000..685a0ef64 --- /dev/null +++ b/retailcloud/src/model/DeleteServiceResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DeleteServiceResult::DeleteServiceResult() : + ServiceResult() +{} + +DeleteServiceResult::DeleteServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteServiceResult::~DeleteServiceResult() +{} + +void DeleteServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteServiceResult::getErrMsg()const +{ + return errMsg_; +} + +int DeleteServiceResult::getCode()const +{ + return code_; +} + +bool DeleteServiceResult::getSuccess()const +{ + return success_; +} + diff --git a/retailcloud/src/model/DeleteSlbAPRequest.cc b/retailcloud/src/model/DeleteSlbAPRequest.cc new file mode 100644 index 000000000..d42bd03ac --- /dev/null +++ b/retailcloud/src/model/DeleteSlbAPRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DeleteSlbAPRequest; + +DeleteSlbAPRequest::DeleteSlbAPRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DeleteSlbAP") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteSlbAPRequest::~DeleteSlbAPRequest() +{} + +long DeleteSlbAPRequest::getSlbAPId()const +{ + return slbAPId_; +} + +void DeleteSlbAPRequest::setSlbAPId(long slbAPId) +{ + slbAPId_ = slbAPId; + setParameter("SlbAPId", std::to_string(slbAPId)); +} + diff --git a/retailcloud/src/model/DeleteSlbAPResult.cc b/retailcloud/src/model/DeleteSlbAPResult.cc new file mode 100644 index 000000000..c1ef377a6 --- /dev/null +++ b/retailcloud/src/model/DeleteSlbAPResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DeleteSlbAPResult::DeleteSlbAPResult() : + ServiceResult() +{} + +DeleteSlbAPResult::DeleteSlbAPResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSlbAPResult::~DeleteSlbAPResult() +{} + +void DeleteSlbAPResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteSlbAPResult::getErrMsg()const +{ + return errMsg_; +} + +int DeleteSlbAPResult::getCode()const +{ + return code_; +} + +bool DeleteSlbAPResult::getSuccess()const +{ + return success_; +} + diff --git a/retailcloud/src/model/DeployAppRequest.cc b/retailcloud/src/model/DeployAppRequest.cc new file mode 100644 index 000000000..d37b66a10 --- /dev/null +++ b/retailcloud/src/model/DeployAppRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DeployAppRequest; + +DeployAppRequest::DeployAppRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DeployApp") +{ + setMethod(HttpRequest::Method::Post); +} + +DeployAppRequest::~DeployAppRequest() +{} + +long DeployAppRequest::getDeployPacketId()const +{ + return deployPacketId_; +} + +void DeployAppRequest::setDeployPacketId(long deployPacketId) +{ + deployPacketId_ = deployPacketId; + setParameter("DeployPacketId", std::to_string(deployPacketId)); +} + +std::string DeployAppRequest::getDeployPacketUrl()const +{ + return deployPacketUrl_; +} + +void DeployAppRequest::setDeployPacketUrl(const std::string& deployPacketUrl) +{ + deployPacketUrl_ = deployPacketUrl; + setParameter("DeployPacketUrl", deployPacketUrl); +} + +int DeployAppRequest::getTotalPartitions()const +{ + return totalPartitions_; +} + +void DeployAppRequest::setTotalPartitions(int totalPartitions) +{ + totalPartitions_ = totalPartitions; + setParameter("TotalPartitions", std::to_string(totalPartitions)); +} + +std::string DeployAppRequest::getName()const +{ + return name_; +} + +void DeployAppRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string DeployAppRequest::getDescription()const +{ + return description_; +} + +void DeployAppRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long DeployAppRequest::getEnvId()const +{ + return envId_; +} + +void DeployAppRequest::setEnvId(long envId) +{ + envId_ = envId; + setParameter("EnvId", std::to_string(envId)); +} + +std::string DeployAppRequest::getPauseType()const +{ + return pauseType_; +} + +void DeployAppRequest::setPauseType(const std::string& pauseType) +{ + pauseType_ = pauseType; + setParameter("PauseType", pauseType); +} + +bool DeployAppRequest::getArmsFlag()const +{ + return armsFlag_; +} + +void DeployAppRequest::setArmsFlag(bool armsFlag) +{ + armsFlag_ = armsFlag; + setParameter("ArmsFlag", armsFlag ? "true" : "false"); +} + diff --git a/retailcloud/src/model/DeployAppResult.cc b/retailcloud/src/model/DeployAppResult.cc new file mode 100644 index 000000000..17b4b89be --- /dev/null +++ b/retailcloud/src/model/DeployAppResult.cc @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DeployAppResult::DeployAppResult() : + ServiceResult() +{} + +DeployAppResult::DeployAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeployAppResult::~DeployAppResult() +{} + +void DeployAppResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Admitted"].isNull()) + result_.admitted = resultNode["Admitted"].asString() == "true"; + if(!resultNode["BusinessCode"].isNull()) + result_.businessCode = resultNode["BusinessCode"].asString(); + if(!resultNode["DeployOrderId"].isNull()) + result_.deployOrderId = std::stol(resultNode["DeployOrderId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeployAppResult::getErrMsg()const +{ + return errMsg_; +} + +int DeployAppResult::getCode()const +{ + return code_; +} + +bool DeployAppResult::getSuccess()const +{ + return success_; +} + +DeployAppResult::Result DeployAppResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/DescribeAppDetailRequest.cc b/retailcloud/src/model/DescribeAppDetailRequest.cc new file mode 100644 index 000000000..bdbe3fc33 --- /dev/null +++ b/retailcloud/src/model/DescribeAppDetailRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DescribeAppDetailRequest; + +DescribeAppDetailRequest::DescribeAppDetailRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DescribeAppDetail") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeAppDetailRequest::~DescribeAppDetailRequest() +{} + +long DescribeAppDetailRequest::getAppId()const +{ + return appId_; +} + +void DescribeAppDetailRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + diff --git a/retailcloud/src/model/DescribeAppDetailResult.cc b/retailcloud/src/model/DescribeAppDetailResult.cc new file mode 100644 index 000000000..3b420481a --- /dev/null +++ b/retailcloud/src/model/DescribeAppDetailResult.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::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DescribeAppDetailResult::DescribeAppDetailResult() : + ServiceResult() +{} + +DescribeAppDetailResult::DescribeAppDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAppDetailResult::~DescribeAppDetailResult() +{} + +void DescribeAppDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["ServiceType"].isNull()) + result_.serviceType = resultNode["ServiceType"].asString(); + if(!resultNode["BizTitle"].isNull()) + result_.bizTitle = resultNode["BizTitle"].asString(); + if(!resultNode["BizName"].isNull()) + result_.bizName = resultNode["BizName"].asString(); + if(!resultNode["AppId"].isNull()) + result_.appId = std::stol(resultNode["AppId"].asString()); + if(!resultNode["Language"].isNull()) + result_.language = resultNode["Language"].asString(); + if(!resultNode["Title"].isNull()) + result_.title = resultNode["Title"].asString(); + if(!resultNode["OperatingSystem"].isNull()) + result_.operatingSystem = resultNode["OperatingSystem"].asString(); + if(!resultNode["DeployType"].isNull()) + result_.deployType = resultNode["DeployType"].asString(); + if(!resultNode["Description"].isNull()) + result_.description = resultNode["Description"].asString(); + if(!resultNode["AppStateType"].isNull()) + result_.appStateType = resultNode["AppStateType"].asString(); + auto allUserRolesNode = resultNode["UserRoles"]["UserRole"]; + for (auto resultNodeUserRolesUserRole : allUserRolesNode) + { + Result::UserRole userRoleObject; + if(!resultNodeUserRolesUserRole["UserId"].isNull()) + userRoleObject.userId = resultNodeUserRolesUserRole["UserId"].asString(); + if(!resultNodeUserRolesUserRole["UserType"].isNull()) + userRoleObject.userType = resultNodeUserRolesUserRole["UserType"].asString(); + if(!resultNodeUserRolesUserRole["RealName"].isNull()) + userRoleObject.realName = resultNodeUserRolesUserRole["RealName"].asString(); + if(!resultNodeUserRolesUserRole["RoleName"].isNull()) + userRoleObject.roleName = resultNodeUserRolesUserRole["RoleName"].asString(); + result_.userRoles.push_back(userRoleObject); + } + auto allMiddleWareInfoListNode = resultNode["MiddleWareInfoList"]["MiddleWareInfo"]; + for (auto resultNodeMiddleWareInfoListMiddleWareInfo : allMiddleWareInfoListNode) + { + Result::MiddleWareInfo middleWareInfoObject; + if(!resultNodeMiddleWareInfoListMiddleWareInfo["AppId"].isNull()) + middleWareInfoObject.appId = std::stol(resultNodeMiddleWareInfoListMiddleWareInfo["AppId"].asString()); + if(!resultNodeMiddleWareInfoListMiddleWareInfo["Code"].isNull()) + middleWareInfoObject.code = std::stoi(resultNodeMiddleWareInfoListMiddleWareInfo["Code"].asString()); + if(!resultNodeMiddleWareInfoListMiddleWareInfo["Name"].isNull()) + middleWareInfoObject.name = resultNodeMiddleWareInfoListMiddleWareInfo["Name"].asString(); + result_.middleWareInfoList.push_back(middleWareInfoObject); + } + if(!value["Code"].isNull()) + code_ = std::stol(value["Code"].asString()); + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); + +} + +std::string DescribeAppDetailResult::getErrMessage()const +{ + return errMessage_; +} + +long DescribeAppDetailResult::getCode()const +{ + return code_; +} + +DescribeAppDetailResult::Result DescribeAppDetailResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/DescribeAppEnvironmentDetailRequest.cc b/retailcloud/src/model/DescribeAppEnvironmentDetailRequest.cc new file mode 100644 index 000000000..152c2f8ca --- /dev/null +++ b/retailcloud/src/model/DescribeAppEnvironmentDetailRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DescribeAppEnvironmentDetailRequest; + +DescribeAppEnvironmentDetailRequest::DescribeAppEnvironmentDetailRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DescribeAppEnvironmentDetail") +{ + setMethod(HttpRequest::Method::Get); +} + +DescribeAppEnvironmentDetailRequest::~DescribeAppEnvironmentDetailRequest() +{} + +long DescribeAppEnvironmentDetailRequest::getAppId()const +{ + return appId_; +} + +void DescribeAppEnvironmentDetailRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +long DescribeAppEnvironmentDetailRequest::getEnvId()const +{ + return envId_; +} + +void DescribeAppEnvironmentDetailRequest::setEnvId(long envId) +{ + envId_ = envId; + setParameter("EnvId", std::to_string(envId)); +} + diff --git a/retailcloud/src/model/DescribeAppEnvironmentDetailResult.cc b/retailcloud/src/model/DescribeAppEnvironmentDetailResult.cc new file mode 100644 index 000000000..8f01605d2 --- /dev/null +++ b/retailcloud/src/model/DescribeAppEnvironmentDetailResult.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::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DescribeAppEnvironmentDetailResult::DescribeAppEnvironmentDetailResult() : + ServiceResult() +{} + +DescribeAppEnvironmentDetailResult::DescribeAppEnvironmentDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAppEnvironmentDetailResult::~DescribeAppEnvironmentDetailResult() +{} + +void DescribeAppEnvironmentDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["AppId"].isNull()) + result_.appId = std::stol(resultNode["AppId"].asString()); + if(!resultNode["EnvId"].isNull()) + result_.envId = std::stol(resultNode["EnvId"].asString()); + if(!resultNode["EnvName"].isNull()) + result_.envName = resultNode["EnvName"].asString(); + if(!resultNode["EnvType"].isNull()) + result_.envType = std::stoi(resultNode["EnvType"].asString()); + if(!resultNode["EnvTypeName"].isNull()) + result_.envTypeName = resultNode["EnvTypeName"].asString(); + if(!resultNode["AppSchemaId"].isNull()) + result_.appSchemaId = std::stol(resultNode["AppSchemaId"].asString()); + if(!resultNode["Region"].isNull()) + result_.region = resultNode["Region"].asString(); + if(!resultNode["Replicas"].isNull()) + result_.replicas = std::stoi(resultNode["Replicas"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string DescribeAppEnvironmentDetailResult::getErrMsg()const +{ + return errMsg_; +} + +int DescribeAppEnvironmentDetailResult::getCode()const +{ + return code_; +} + +DescribeAppEnvironmentDetailResult::Result DescribeAppEnvironmentDetailResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/DescribeAppResourceAllocRequest.cc b/retailcloud/src/model/DescribeAppResourceAllocRequest.cc new file mode 100644 index 000000000..3da08d485 --- /dev/null +++ b/retailcloud/src/model/DescribeAppResourceAllocRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DescribeAppResourceAllocRequest; + +DescribeAppResourceAllocRequest::DescribeAppResourceAllocRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DescribeAppResourceAlloc") +{ + setMethod(HttpRequest::Method::Get); +} + +DescribeAppResourceAllocRequest::~DescribeAppResourceAllocRequest() +{} + +long DescribeAppResourceAllocRequest::getAppEnvId()const +{ + return appEnvId_; +} + +void DescribeAppResourceAllocRequest::setAppEnvId(long appEnvId) +{ + appEnvId_ = appEnvId; + setParameter("AppEnvId", std::to_string(appEnvId)); +} + diff --git a/retailcloud/src/model/DescribeAppResourceAllocResult.cc b/retailcloud/src/model/DescribeAppResourceAllocResult.cc new file mode 100644 index 000000000..198a862a8 --- /dev/null +++ b/retailcloud/src/model/DescribeAppResourceAllocResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DescribeAppResourceAllocResult::DescribeAppResourceAllocResult() : + ServiceResult() +{} + +DescribeAppResourceAllocResult::DescribeAppResourceAllocResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAppResourceAllocResult::~DescribeAppResourceAllocResult() +{} + +void DescribeAppResourceAllocResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["AppEnvId"].isNull()) + result_.appEnvId = std::stol(resultNode["AppEnvId"].asString()); + if(!resultNode["AppId"].isNull()) + result_.appId = std::stol(resultNode["AppId"].asString()); + if(!resultNode["ClusterId"].isNull()) + result_.clusterId = resultNode["ClusterId"].asString(); + if(!resultNode["Id"].isNull()) + result_.id = std::stol(resultNode["Id"].asString()); + if(!resultNode["ResourceDef"].isNull()) + result_.resourceDef = resultNode["ResourceDef"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DescribeAppResourceAllocResult::getErrMsg()const +{ + return errMsg_; +} + +int DescribeAppResourceAllocResult::getCode()const +{ + return code_; +} + +bool DescribeAppResourceAllocResult::getSuccess()const +{ + return success_; +} + +DescribeAppResourceAllocResult::Result DescribeAppResourceAllocResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/DescribeDatabasesRequest.cc b/retailcloud/src/model/DescribeDatabasesRequest.cc new file mode 100644 index 000000000..eaddf0f9e --- /dev/null +++ b/retailcloud/src/model/DescribeDatabasesRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DescribeDatabasesRequest; + +DescribeDatabasesRequest::DescribeDatabasesRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DescribeDatabases") +{ + setMethod(HttpRequest::Method::Get); +} + +DescribeDatabasesRequest::~DescribeDatabasesRequest() +{} + +std::string DescribeDatabasesRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeDatabasesRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/retailcloud/src/model/DescribeDatabasesResult.cc b/retailcloud/src/model/DescribeDatabasesResult.cc new file mode 100644 index 000000000..31b4e1cb0 --- /dev/null +++ b/retailcloud/src/model/DescribeDatabasesResult.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::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DescribeDatabasesResult::DescribeDatabasesResult() : + ServiceResult() +{} + +DescribeDatabasesResult::DescribeDatabasesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDatabasesResult::~DescribeDatabasesResult() +{} + +void DescribeDatabasesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + auto allDatabasesNode = resultNode["Databases"]["DatabasesItem"]; + for (auto resultNodeDatabasesDatabasesItem : allDatabasesNode) + { + Result::DatabasesItem databasesItemObject; + if(!resultNodeDatabasesDatabasesItem["DBName"].isNull()) + databasesItemObject.dBName = resultNodeDatabasesDatabasesItem["DBName"].asString(); + if(!resultNodeDatabasesDatabasesItem["DBStatus"].isNull()) + databasesItemObject.dBStatus = resultNodeDatabasesDatabasesItem["DBStatus"].asString(); + if(!resultNodeDatabasesDatabasesItem["DBDescription"].isNull()) + databasesItemObject.dBDescription = resultNodeDatabasesDatabasesItem["DBDescription"].asString(); + if(!resultNodeDatabasesDatabasesItem["Engine"].isNull()) + databasesItemObject.engine = resultNodeDatabasesDatabasesItem["Engine"].asString(); + if(!resultNodeDatabasesDatabasesItem["CharacterSetName"].isNull()) + databasesItemObject.characterSetName = resultNodeDatabasesDatabasesItem["CharacterSetName"].asString(); + if(!resultNodeDatabasesDatabasesItem["DBInstanceId"].isNull()) + databasesItemObject.dBInstanceId = resultNodeDatabasesDatabasesItem["DBInstanceId"].asString(); + auto allAccountsNode = allDatabasesNode["Accounts"]["AccountsItem"]; + for (auto allDatabasesNodeAccountsAccountsItem : allAccountsNode) + { + Result::DatabasesItem::AccountsItem accountsObject; + if(!allDatabasesNodeAccountsAccountsItem["AccountPrivilegeDetail"].isNull()) + accountsObject.accountPrivilegeDetail = allDatabasesNodeAccountsAccountsItem["AccountPrivilegeDetail"].asString(); + if(!allDatabasesNodeAccountsAccountsItem["AccountPrivilege"].isNull()) + accountsObject.accountPrivilege = allDatabasesNodeAccountsAccountsItem["AccountPrivilege"].asString(); + if(!allDatabasesNodeAccountsAccountsItem["Account"].isNull()) + accountsObject.account = allDatabasesNodeAccountsAccountsItem["Account"].asString(); + databasesItemObject.accounts.push_back(accountsObject); + } + result_.databases.push_back(databasesItemObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string DescribeDatabasesResult::getErrMsg()const +{ + return errMsg_; +} + +int DescribeDatabasesResult::getCode()const +{ + return code_; +} + +DescribeDatabasesResult::Result DescribeDatabasesResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/DescribeDeployOrderDetailRequest.cc b/retailcloud/src/model/DescribeDeployOrderDetailRequest.cc new file mode 100644 index 000000000..e5ede23aa --- /dev/null +++ b/retailcloud/src/model/DescribeDeployOrderDetailRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DescribeDeployOrderDetailRequest; + +DescribeDeployOrderDetailRequest::DescribeDeployOrderDetailRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DescribeDeployOrderDetail") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeDeployOrderDetailRequest::~DescribeDeployOrderDetailRequest() +{} + +long DescribeDeployOrderDetailRequest::getDeployOrderId()const +{ + return deployOrderId_; +} + +void DescribeDeployOrderDetailRequest::setDeployOrderId(long deployOrderId) +{ + deployOrderId_ = deployOrderId; + setParameter("DeployOrderId", std::to_string(deployOrderId)); +} + diff --git a/retailcloud/src/model/DescribeDeployOrderDetailResult.cc b/retailcloud/src/model/DescribeDeployOrderDetailResult.cc new file mode 100644 index 000000000..ea1006e40 --- /dev/null +++ b/retailcloud/src/model/DescribeDeployOrderDetailResult.cc @@ -0,0 +1,125 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DescribeDeployOrderDetailResult::DescribeDeployOrderDetailResult() : + ServiceResult() +{} + +DescribeDeployOrderDetailResult::DescribeDeployOrderDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDeployOrderDetailResult::~DescribeDeployOrderDetailResult() +{} + +void DescribeDeployOrderDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["AppInstanceType"].isNull()) + result_.appInstanceType = resultNode["AppInstanceType"].asString(); + if(!resultNode["CurrentPartitionNum"].isNull()) + result_.currentPartitionNum = std::stoi(resultNode["CurrentPartitionNum"].asString()); + if(!resultNode["DeployOrderId"].isNull()) + result_.deployOrderId = std::stol(resultNode["DeployOrderId"].asString()); + if(!resultNode["DeployPauseType"].isNull()) + result_.deployPauseType = resultNode["DeployPauseType"].asString(); + if(!resultNode["DeployPauseTypeName"].isNull()) + result_.deployPauseTypeName = resultNode["DeployPauseTypeName"].asString(); + if(!resultNode["DeployType"].isNull()) + result_.deployType = resultNode["DeployType"].asString(); + if(!resultNode["DeployTypeName"].isNull()) + result_.deployTypeName = resultNode["DeployTypeName"].asString(); + if(!resultNode["Description"].isNull()) + result_.description = resultNode["Description"].asString(); + if(!resultNode["ElapsedTime"].isNull()) + result_.elapsedTime = std::stoi(resultNode["ElapsedTime"].asString()); + if(!resultNode["EndTime"].isNull()) + result_.endTime = resultNode["EndTime"].asString(); + if(!resultNode["EnvId"].isNull()) + result_.envId = std::stol(resultNode["EnvId"].asString()); + if(!resultNode["EnvType"].isNull()) + result_.envType = resultNode["EnvType"].asString(); + if(!resultNode["FailureRate"].isNull()) + result_.failureRate = resultNode["FailureRate"].asString(); + if(!resultNode["FinishAppInstanceCt"].isNull()) + result_.finishAppInstanceCt = std::stoi(resultNode["FinishAppInstanceCt"].asString()); + if(!resultNode["Name"].isNull()) + result_.name = resultNode["Name"].asString(); + if(!resultNode["PartitionType"].isNull()) + result_.partitionType = resultNode["PartitionType"].asString(); + if(!resultNode["PartitionTypeName"].isNull()) + result_.partitionTypeName = resultNode["PartitionTypeName"].asString(); + if(!resultNode["Result"].isNull()) + result_.result = std::stoi(resultNode["Result"].asString()); + if(!resultNode["ResultName"].isNull()) + result_.resultName = resultNode["ResultName"].asString(); + if(!resultNode["SchemaId"].isNull()) + result_.schemaId = std::stol(resultNode["SchemaId"].asString()); + if(!resultNode["StartTime"].isNull()) + result_.startTime = resultNode["StartTime"].asString(); + if(!resultNode["Status"].isNull()) + result_.status = std::stoi(resultNode["Status"].asString()); + if(!resultNode["StatusName"].isNull()) + result_.statusName = resultNode["StatusName"].asString(); + if(!resultNode["TotalAppInstanceCt"].isNull()) + result_.totalAppInstanceCt = std::stoi(resultNode["TotalAppInstanceCt"].asString()); + if(!resultNode["TotalPartitions"].isNull()) + result_.totalPartitions = std::stoi(resultNode["TotalPartitions"].asString()); + if(!resultNode["UserId"].isNull()) + result_.userId = resultNode["UserId"].asString(); + if(!resultNode["UserNick"].isNull()) + result_.userNick = resultNode["UserNick"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DescribeDeployOrderDetailResult::getErrMsg()const +{ + return errMsg_; +} + +int DescribeDeployOrderDetailResult::getCode()const +{ + return code_; +} + +bool DescribeDeployOrderDetailResult::getSuccess()const +{ + return success_; +} + +DescribeDeployOrderDetailResult::Result DescribeDeployOrderDetailResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/DescribePodEventsRequest.cc b/retailcloud/src/model/DescribePodEventsRequest.cc new file mode 100644 index 000000000..7aa054190 --- /dev/null +++ b/retailcloud/src/model/DescribePodEventsRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DescribePodEventsRequest; + +DescribePodEventsRequest::DescribePodEventsRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DescribePodEvents") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribePodEventsRequest::~DescribePodEventsRequest() +{} + +long DescribePodEventsRequest::getDeployOrderId()const +{ + return deployOrderId_; +} + +void DescribePodEventsRequest::setDeployOrderId(long deployOrderId) +{ + deployOrderId_ = deployOrderId; + setParameter("DeployOrderId", std::to_string(deployOrderId)); +} + +std::string DescribePodEventsRequest::getAppInstId()const +{ + return appInstId_; +} + +void DescribePodEventsRequest::setAppInstId(const std::string& appInstId) +{ + appInstId_ = appInstId; + setParameter("AppInstId", appInstId); +} + diff --git a/retailcloud/src/model/DescribePodEventsResult.cc b/retailcloud/src/model/DescribePodEventsResult.cc new file mode 100644 index 000000000..ec7322cdc --- /dev/null +++ b/retailcloud/src/model/DescribePodEventsResult.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::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DescribePodEventsResult::DescribePodEventsResult() : + ServiceResult() +{} + +DescribePodEventsResult::DescribePodEventsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePodEventsResult::~DescribePodEventsResult() +{} + +void DescribePodEventsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["DeployOrderName"].isNull()) + result_.deployOrderName = resultNode["DeployOrderName"].asString(); + auto allPodEventsNode = resultNode["PodEvents"]["PodEvent"]; + for (auto resultNodePodEventsPodEvent : allPodEventsNode) + { + Result::PodEvent podEventObject; + if(!resultNodePodEventsPodEvent["Action"].isNull()) + podEventObject.action = resultNodePodEventsPodEvent["Action"].asString(); + if(!resultNodePodEventsPodEvent["Count"].isNull()) + podEventObject.count = std::stoi(resultNodePodEventsPodEvent["Count"].asString()); + if(!resultNodePodEventsPodEvent["EventTime"].isNull()) + podEventObject.eventTime = resultNodePodEventsPodEvent["EventTime"].asString(); + if(!resultNodePodEventsPodEvent["FirstTimestamp"].isNull()) + podEventObject.firstTimestamp = resultNodePodEventsPodEvent["FirstTimestamp"].asString(); + if(!resultNodePodEventsPodEvent["LastTimestamp"].isNull()) + podEventObject.lastTimestamp = resultNodePodEventsPodEvent["LastTimestamp"].asString(); + if(!resultNodePodEventsPodEvent["Message"].isNull()) + podEventObject.message = resultNodePodEventsPodEvent["Message"].asString(); + if(!resultNodePodEventsPodEvent["Reason"].isNull()) + podEventObject.reason = resultNodePodEventsPodEvent["Reason"].asString(); + if(!resultNodePodEventsPodEvent["Type"].isNull()) + podEventObject.type = resultNodePodEventsPodEvent["Type"].asString(); + result_.podEvents.push_back(podEventObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DescribePodEventsResult::getErrMsg()const +{ + return errMsg_; +} + +int DescribePodEventsResult::getCode()const +{ + return code_; +} + +bool DescribePodEventsResult::getSuccess()const +{ + return success_; +} + +DescribePodEventsResult::Result DescribePodEventsResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/DescribePodLogRequest.cc b/retailcloud/src/model/DescribePodLogRequest.cc new file mode 100644 index 000000000..f5c08c6c9 --- /dev/null +++ b/retailcloud/src/model/DescribePodLogRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DescribePodLogRequest; + +DescribePodLogRequest::DescribePodLogRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DescribePodLog") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribePodLogRequest::~DescribePodLogRequest() +{} + +long DescribePodLogRequest::getDeployOrderId()const +{ + return deployOrderId_; +} + +void DescribePodLogRequest::setDeployOrderId(long deployOrderId) +{ + deployOrderId_ = deployOrderId; + setBodyParameter("DeployOrderId", std::to_string(deployOrderId)); +} + +std::string DescribePodLogRequest::getAppInstId()const +{ + return appInstId_; +} + +void DescribePodLogRequest::setAppInstId(const std::string& appInstId) +{ + appInstId_ = appInstId; + setBodyParameter("AppInstId", appInstId); +} + diff --git a/retailcloud/src/model/DescribePodLogResult.cc b/retailcloud/src/model/DescribePodLogResult.cc new file mode 100644 index 000000000..803bdaaeb --- /dev/null +++ b/retailcloud/src/model/DescribePodLogResult.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::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DescribePodLogResult::DescribePodLogResult() : + ServiceResult() +{} + +DescribePodLogResult::DescribePodLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePodLogResult::~DescribePodLogResult() +{} + +void DescribePodLogResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["DeployOrderName"].isNull()) + result_.deployOrderName = resultNode["DeployOrderName"].asString(); + if(!resultNode["EnvTypeName"].isNull()) + result_.envTypeName = resultNode["EnvTypeName"].asString(); + auto allDeployStepListNode = resultNode["DeployStepList"]["DeployLogStepRC"]; + for (auto resultNodeDeployStepListDeployLogStepRC : allDeployStepListNode) + { + Result::DeployLogStepRC deployLogStepRCObject; + if(!resultNodeDeployStepListDeployLogStepRC["StepName"].isNull()) + deployLogStepRCObject.stepName = resultNodeDeployStepListDeployLogStepRC["StepName"].asString(); + if(!resultNodeDeployStepListDeployLogStepRC["StepCode"].isNull()) + deployLogStepRCObject.stepCode = resultNodeDeployStepListDeployLogStepRC["StepCode"].asString(); + if(!resultNodeDeployStepListDeployLogStepRC["StepLog"].isNull()) + deployLogStepRCObject.stepLog = resultNodeDeployStepListDeployLogStepRC["StepLog"].asString(); + if(!resultNodeDeployStepListDeployLogStepRC["Status"].isNull()) + deployLogStepRCObject.status = resultNodeDeployStepListDeployLogStepRC["Status"].asString(); + result_.deployStepList.push_back(deployLogStepRCObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DescribePodLogResult::getErrMsg()const +{ + return errMsg_; +} + +int DescribePodLogResult::getCode()const +{ + return code_; +} + +bool DescribePodLogResult::getSuccess()const +{ + return success_; +} + +DescribePodLogResult::Result DescribePodLogResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/DescribeRdsAccountsRequest.cc b/retailcloud/src/model/DescribeRdsAccountsRequest.cc new file mode 100644 index 000000000..c811450a7 --- /dev/null +++ b/retailcloud/src/model/DescribeRdsAccountsRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DescribeRdsAccountsRequest; + +DescribeRdsAccountsRequest::DescribeRdsAccountsRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DescribeRdsAccounts") +{ + setMethod(HttpRequest::Method::Get); +} + +DescribeRdsAccountsRequest::~DescribeRdsAccountsRequest() +{} + +std::string DescribeRdsAccountsRequest::getAccountName()const +{ + return accountName_; +} + +void DescribeRdsAccountsRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setParameter("AccountName", accountName); +} + +std::string DescribeRdsAccountsRequest::getDbInstanceId()const +{ + return dbInstanceId_; +} + +void DescribeRdsAccountsRequest::setDbInstanceId(const std::string& dbInstanceId) +{ + dbInstanceId_ = dbInstanceId; + setParameter("DbInstanceId", dbInstanceId); +} + diff --git a/retailcloud/src/model/DescribeRdsAccountsResult.cc b/retailcloud/src/model/DescribeRdsAccountsResult.cc new file mode 100644 index 000000000..176193c1a --- /dev/null +++ b/retailcloud/src/model/DescribeRdsAccountsResult.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::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DescribeRdsAccountsResult::DescribeRdsAccountsResult() : + ServiceResult() +{} + +DescribeRdsAccountsResult::DescribeRdsAccountsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRdsAccountsResult::~DescribeRdsAccountsResult() +{} + +void DescribeRdsAccountsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + auto allAccountsNode = resultNode["Accounts"]["AccountsItem"]; + for (auto resultNodeAccountsAccountsItem : allAccountsNode) + { + Result::AccountsItem accountsItemObject; + if(!resultNodeAccountsAccountsItem["AccountStatus"].isNull()) + accountsItemObject.accountStatus = resultNodeAccountsAccountsItem["AccountStatus"].asString(); + if(!resultNodeAccountsAccountsItem["AccountDescription"].isNull()) + accountsItemObject.accountDescription = resultNodeAccountsAccountsItem["AccountDescription"].asString(); + if(!resultNodeAccountsAccountsItem["AccountName"].isNull()) + accountsItemObject.accountName = resultNodeAccountsAccountsItem["AccountName"].asString(); + if(!resultNodeAccountsAccountsItem["AccountType"].isNull()) + accountsItemObject.accountType = resultNodeAccountsAccountsItem["AccountType"].asString(); + if(!resultNodeAccountsAccountsItem["PrivExceeded"].isNull()) + accountsItemObject.privExceeded = resultNodeAccountsAccountsItem["PrivExceeded"].asString(); + if(!resultNodeAccountsAccountsItem["DBInstanceId"].isNull()) + accountsItemObject.dBInstanceId = resultNodeAccountsAccountsItem["DBInstanceId"].asString(); + auto allDatabasePrivilegesNode = allAccountsNode["DatabasePrivileges"]["DatabasePrivilegesItem"]; + for (auto allAccountsNodeDatabasePrivilegesDatabasePrivilegesItem : allDatabasePrivilegesNode) + { + Result::AccountsItem::DatabasePrivilegesItem databasePrivilegesObject; + if(!allAccountsNodeDatabasePrivilegesDatabasePrivilegesItem["DBName"].isNull()) + databasePrivilegesObject.dBName = allAccountsNodeDatabasePrivilegesDatabasePrivilegesItem["DBName"].asString(); + if(!allAccountsNodeDatabasePrivilegesDatabasePrivilegesItem["AccountPrivilege"].isNull()) + databasePrivilegesObject.accountPrivilege = allAccountsNodeDatabasePrivilegesDatabasePrivilegesItem["AccountPrivilege"].asString(); + if(!allAccountsNodeDatabasePrivilegesDatabasePrivilegesItem["AccountPrivilegeDetail"].isNull()) + databasePrivilegesObject.accountPrivilegeDetail = allAccountsNodeDatabasePrivilegesDatabasePrivilegesItem["AccountPrivilegeDetail"].asString(); + accountsItemObject.databasePrivileges.push_back(databasePrivilegesObject); + } + result_.accounts.push_back(accountsItemObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string DescribeRdsAccountsResult::getErrMsg()const +{ + return errMsg_; +} + +int DescribeRdsAccountsResult::getCode()const +{ + return code_; +} + +DescribeRdsAccountsResult::Result DescribeRdsAccountsResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/DescribeServiceDetailRequest.cc b/retailcloud/src/model/DescribeServiceDetailRequest.cc new file mode 100644 index 000000000..375444415 --- /dev/null +++ b/retailcloud/src/model/DescribeServiceDetailRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DescribeServiceDetailRequest; + +DescribeServiceDetailRequest::DescribeServiceDetailRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DescribeServiceDetail") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeServiceDetailRequest::~DescribeServiceDetailRequest() +{} + +long DescribeServiceDetailRequest::getServiceId()const +{ + return serviceId_; +} + +void DescribeServiceDetailRequest::setServiceId(long serviceId) +{ + serviceId_ = serviceId; + setParameter("ServiceId", std::to_string(serviceId)); +} + diff --git a/retailcloud/src/model/DescribeServiceDetailResult.cc b/retailcloud/src/model/DescribeServiceDetailResult.cc new file mode 100644 index 000000000..3d179c71c --- /dev/null +++ b/retailcloud/src/model/DescribeServiceDetailResult.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::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DescribeServiceDetailResult::DescribeServiceDetailResult() : + ServiceResult() +{} + +DescribeServiceDetailResult::DescribeServiceDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeServiceDetailResult::~DescribeServiceDetailResult() +{} + +void DescribeServiceDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["AppId"].isNull()) + result_.appId = std::stol(resultNode["AppId"].asString()); + if(!resultNode["EnvId"].isNull()) + result_.envId = std::stol(resultNode["EnvId"].asString()); + if(!resultNode["Headless"].isNull()) + result_.headless = resultNode["Headless"].asString() == "true"; + if(!resultNode["K8sServiceId"].isNull()) + result_.k8sServiceId = resultNode["K8sServiceId"].asString(); + if(!resultNode["Name"].isNull()) + result_.name = resultNode["Name"].asString(); + if(!resultNode["ServiceId"].isNull()) + result_.serviceId = std::stol(resultNode["ServiceId"].asString()); + if(!resultNode["ServiceType"].isNull()) + result_.serviceType = resultNode["ServiceType"].asString(); + if(!resultNode["ClusterIP"].isNull()) + result_.clusterIP = resultNode["ClusterIP"].asString(); + auto allPortMappingsNode = resultNode["PortMappings"]["ServicePortMapping"]; + for (auto resultNodePortMappingsServicePortMapping : allPortMappingsNode) + { + Result::ServicePortMapping servicePortMappingObject; + if(!resultNodePortMappingsServicePortMapping["Name"].isNull()) + servicePortMappingObject.name = resultNodePortMappingsServicePortMapping["Name"].asString(); + if(!resultNodePortMappingsServicePortMapping["NodePort"].isNull()) + servicePortMappingObject.nodePort = std::stoi(resultNodePortMappingsServicePortMapping["NodePort"].asString()); + if(!resultNodePortMappingsServicePortMapping["Port"].isNull()) + servicePortMappingObject.port = std::stoi(resultNodePortMappingsServicePortMapping["Port"].asString()); + if(!resultNodePortMappingsServicePortMapping["Protocol"].isNull()) + servicePortMappingObject.protocol = resultNodePortMappingsServicePortMapping["Protocol"].asString(); + if(!resultNodePortMappingsServicePortMapping["TargetPort"].isNull()) + servicePortMappingObject.targetPort = resultNodePortMappingsServicePortMapping["TargetPort"].asString(); + result_.portMappings.push_back(servicePortMappingObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DescribeServiceDetailResult::getErrMsg()const +{ + return errMsg_; +} + +int DescribeServiceDetailResult::getCode()const +{ + return code_; +} + +bool DescribeServiceDetailResult::getSuccess()const +{ + return success_; +} + +DescribeServiceDetailResult::Result DescribeServiceDetailResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/DescribeSlbAPDetailRequest.cc b/retailcloud/src/model/DescribeSlbAPDetailRequest.cc new file mode 100644 index 000000000..4c8fa8ede --- /dev/null +++ b/retailcloud/src/model/DescribeSlbAPDetailRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::DescribeSlbAPDetailRequest; + +DescribeSlbAPDetailRequest::DescribeSlbAPDetailRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "DescribeSlbAPDetail") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeSlbAPDetailRequest::~DescribeSlbAPDetailRequest() +{} + +long DescribeSlbAPDetailRequest::getSlbAPId()const +{ + return slbAPId_; +} + +void DescribeSlbAPDetailRequest::setSlbAPId(long slbAPId) +{ + slbAPId_ = slbAPId; + setParameter("SlbAPId", std::to_string(slbAPId)); +} + diff --git a/retailcloud/src/model/DescribeSlbAPDetailResult.cc b/retailcloud/src/model/DescribeSlbAPDetailResult.cc new file mode 100644 index 000000000..ecb2a8a51 --- /dev/null +++ b/retailcloud/src/model/DescribeSlbAPDetailResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +DescribeSlbAPDetailResult::DescribeSlbAPDetailResult() : + ServiceResult() +{} + +DescribeSlbAPDetailResult::DescribeSlbAPDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSlbAPDetailResult::~DescribeSlbAPDetailResult() +{} + +void DescribeSlbAPDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["AppId"].isNull()) + result_.appId = std::stol(resultNode["AppId"].asString()); + if(!resultNode["CookieTimeout"].isNull()) + result_.cookieTimeout = std::stoi(resultNode["CookieTimeout"].asString()); + if(!resultNode["EnvId"].isNull()) + result_.envId = std::stol(resultNode["EnvId"].asString()); + if(!resultNode["EstablishedTimeout"].isNull()) + result_.establishedTimeout = std::stoi(resultNode["EstablishedTimeout"].asString()); + if(!resultNode["ListenerPort"].isNull()) + result_.listenerPort = std::stoi(resultNode["ListenerPort"].asString()); + if(!resultNode["Name"].isNull()) + result_.name = resultNode["Name"].asString(); + if(!resultNode["NetworkMode"].isNull()) + result_.networkMode = resultNode["NetworkMode"].asString(); + if(!resultNode["Protocol"].isNull()) + result_.protocol = resultNode["Protocol"].asString(); + if(!resultNode["RealServerPort"].isNull()) + result_.realServerPort = std::stoi(resultNode["RealServerPort"].asString()); + if(!resultNode["SlbAPId"].isNull()) + result_.slbAPId = std::stol(resultNode["SlbAPId"].asString()); + if(!resultNode["SlbId"].isNull()) + result_.slbId = resultNode["SlbId"].asString(); + if(!resultNode["SlbIp"].isNull()) + result_.slbIp = resultNode["SlbIp"].asString(); + if(!resultNode["SslCertId"].isNull()) + result_.sslCertId = resultNode["SslCertId"].asString(); + if(!resultNode["StickySession"].isNull()) + result_.stickySession = std::stoi(resultNode["StickySession"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DescribeSlbAPDetailResult::getErrMsg()const +{ + return errMsg_; +} + +int DescribeSlbAPDetailResult::getCode()const +{ + return code_; +} + +bool DescribeSlbAPDetailResult::getSuccess()const +{ + return success_; +} + +DescribeSlbAPDetailResult::Result DescribeSlbAPDetailResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/GetInstTransInfoRequest.cc b/retailcloud/src/model/GetInstTransInfoRequest.cc new file mode 100644 index 000000000..7b15b7489 --- /dev/null +++ b/retailcloud/src/model/GetInstTransInfoRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::GetInstTransInfoRequest; + +GetInstTransInfoRequest::GetInstTransInfoRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "GetInstTransInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +GetInstTransInfoRequest::~GetInstTransInfoRequest() +{} + +std::string GetInstTransInfoRequest::getAliyunUid()const +{ + return aliyunUid_; +} + +void GetInstTransInfoRequest::setAliyunUid(const std::string& aliyunUid) +{ + aliyunUid_ = aliyunUid; + setBodyParameter("AliyunUid", aliyunUid); +} + +std::string GetInstTransInfoRequest::getAliyunEquipId()const +{ + return aliyunEquipId_; +} + +void GetInstTransInfoRequest::setAliyunEquipId(const std::string& aliyunEquipId) +{ + aliyunEquipId_ = aliyunEquipId; + setBodyParameter("AliyunEquipId", aliyunEquipId); +} + +std::string GetInstTransInfoRequest::getAliyunCommodityCode()const +{ + return aliyunCommodityCode_; +} + +void GetInstTransInfoRequest::setAliyunCommodityCode(const std::string& aliyunCommodityCode) +{ + aliyunCommodityCode_ = aliyunCommodityCode; + setBodyParameter("AliyunCommodityCode", aliyunCommodityCode); +} + diff --git a/retailcloud/src/model/GetInstTransInfoResult.cc b/retailcloud/src/model/GetInstTransInfoResult.cc new file mode 100644 index 000000000..de5a53485 --- /dev/null +++ b/retailcloud/src/model/GetInstTransInfoResult.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::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +GetInstTransInfoResult::GetInstTransInfoResult() : + ServiceResult() +{} + +GetInstTransInfoResult::GetInstTransInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetInstTransInfoResult::~GetInstTransInfoResult() +{} + +void GetInstTransInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["instanceId"].isNull()) + instanceId_ = value["instanceId"].asString(); + if(!value["isAutoRenew"].isNull()) + isAutoRenew_ = value["isAutoRenew"].asString() == "true"; + if(!value["renewCycle"].isNull()) + renewCycle_ = std::stoi(value["renewCycle"].asString()); + if(!value["chargeType"].isNull()) + chargeType_ = value["chargeType"].asString(); + if(!value["endTime"].isNull()) + endTime_ = std::stol(value["endTime"].asString()); + if(!value["startTime"].isNull()) + startTime_ = std::stol(value["startTime"].asString()); + +} + +long GetInstTransInfoResult::getEndTime()const +{ + return endTime_; +} + +std::string GetInstTransInfoResult::getInstanceId()const +{ + return instanceId_; +} + +std::string GetInstTransInfoResult::getChargeType()const +{ + return chargeType_; +} + +long GetInstTransInfoResult::getStartTime()const +{ + return startTime_; +} + +bool GetInstTransInfoResult::getIsAutoRenew()const +{ + return isAutoRenew_; +} + +int GetInstTransInfoResult::getRenewCycle()const +{ + return renewCycle_; +} + diff --git a/retailcloud/src/model/GetRdsBackUpRequest.cc b/retailcloud/src/model/GetRdsBackUpRequest.cc new file mode 100644 index 000000000..faea97af2 --- /dev/null +++ b/retailcloud/src/model/GetRdsBackUpRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::GetRdsBackUpRequest; + +GetRdsBackUpRequest::GetRdsBackUpRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "GetRdsBackUp") +{ + setMethod(HttpRequest::Method::Post); +} + +GetRdsBackUpRequest::~GetRdsBackUpRequest() +{} + +std::string GetRdsBackUpRequest::getBackupId()const +{ + return backupId_; +} + +void GetRdsBackUpRequest::setBackupId(const std::string& backupId) +{ + backupId_ = backupId; + setBodyParameter("BackupId", backupId); +} + +int GetRdsBackUpRequest::getPageSize()const +{ + return pageSize_; +} + +void GetRdsBackUpRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string GetRdsBackUpRequest::getDbInstanceId()const +{ + return dbInstanceId_; +} + +void GetRdsBackUpRequest::setDbInstanceId(const std::string& dbInstanceId) +{ + dbInstanceId_ = dbInstanceId; + setBodyParameter("DbInstanceId", dbInstanceId); +} + +std::string GetRdsBackUpRequest::getBackupType()const +{ + return backupType_; +} + +void GetRdsBackUpRequest::setBackupType(const std::string& backupType) +{ + backupType_ = backupType; + setBodyParameter("BackupType", backupType); +} + +int GetRdsBackUpRequest::getPageNumber()const +{ + return pageNumber_; +} + +void GetRdsBackUpRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setBodyParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/retailcloud/src/model/GetRdsBackUpResult.cc b/retailcloud/src/model/GetRdsBackUpResult.cc new file mode 100644 index 000000000..66f4fa49b --- /dev/null +++ b/retailcloud/src/model/GetRdsBackUpResult.cc @@ -0,0 +1,112 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +GetRdsBackUpResult::GetRdsBackUpResult() : + ServiceResult() +{} + +GetRdsBackUpResult::GetRdsBackUpResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetRdsBackUpResult::~GetRdsBackUpResult() +{} + +void GetRdsBackUpResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["TotalRecordCount"].isNull()) + result_.totalRecordCount = resultNode["TotalRecordCount"].asString(); + if(!resultNode["PageNumber"].isNull()) + result_.pageNumber = resultNode["PageNumber"].asString(); + if(!resultNode["PageRecordCount"].isNull()) + result_.pageRecordCount = resultNode["PageRecordCount"].asString(); + if(!resultNode["TotalBackupSize"].isNull()) + result_.totalBackupSize = std::stol(resultNode["TotalBackupSize"].asString()); + auto allItemsNode = resultNode["Items"]["Backup"]; + for (auto resultNodeItemsBackup : allItemsNode) + { + Result::Backup backupObject; + if(!resultNodeItemsBackup["BackupId"].isNull()) + backupObject.backupId = resultNodeItemsBackup["BackupId"].asString(); + if(!resultNodeItemsBackup["DBInstanceId"].isNull()) + backupObject.dBInstanceId = resultNodeItemsBackup["DBInstanceId"].asString(); + if(!resultNodeItemsBackup["BackupStatus"].isNull()) + backupObject.backupStatus = resultNodeItemsBackup["BackupStatus"].asString(); + if(!resultNodeItemsBackup["BackupStartTime"].isNull()) + backupObject.backupStartTime = resultNodeItemsBackup["BackupStartTime"].asString(); + if(!resultNodeItemsBackup["BackupEndTime"].isNull()) + backupObject.backupEndTime = resultNodeItemsBackup["BackupEndTime"].asString(); + if(!resultNodeItemsBackup["BackupType"].isNull()) + backupObject.backupType = resultNodeItemsBackup["BackupType"].asString(); + if(!resultNodeItemsBackup["BackupMode"].isNull()) + backupObject.backupMode = resultNodeItemsBackup["BackupMode"].asString(); + if(!resultNodeItemsBackup["BackupMethod"].isNull()) + backupObject.backupMethod = resultNodeItemsBackup["BackupMethod"].asString(); + if(!resultNodeItemsBackup["BackupLocation"].isNull()) + backupObject.backupLocation = resultNodeItemsBackup["BackupLocation"].asString(); + if(!resultNodeItemsBackup["BackupExtractionStatus"].isNull()) + backupObject.backupExtractionStatus = resultNodeItemsBackup["BackupExtractionStatus"].asString(); + if(!resultNodeItemsBackup["BackupScale"].isNull()) + backupObject.backupScale = resultNodeItemsBackup["BackupScale"].asString(); + if(!resultNodeItemsBackup["BackupDBNames"].isNull()) + backupObject.backupDBNames = resultNodeItemsBackup["BackupDBNames"].asString(); + if(!resultNodeItemsBackup["TotalBackupSize"].isNull()) + backupObject.totalBackupSize = std::stol(resultNodeItemsBackup["TotalBackupSize"].asString()); + if(!resultNodeItemsBackup["BackupSize"].isNull()) + backupObject.backupSize = std::stol(resultNodeItemsBackup["BackupSize"].asString()); + if(!resultNodeItemsBackup["HostInstanceID"].isNull()) + backupObject.hostInstanceID = resultNodeItemsBackup["HostInstanceID"].asString(); + if(!resultNodeItemsBackup["StoreStatus"].isNull()) + backupObject.storeStatus = resultNodeItemsBackup["StoreStatus"].asString(); + if(!resultNodeItemsBackup["MetaStatus"].isNull()) + backupObject.metaStatus = resultNodeItemsBackup["MetaStatus"].asString(); + result_.items.push_back(backupObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string GetRdsBackUpResult::getErrMsg()const +{ + return errMsg_; +} + +int GetRdsBackUpResult::getCode()const +{ + return code_; +} + +GetRdsBackUpResult::Result GetRdsBackUpResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/GrantDbToAccountRequest.cc b/retailcloud/src/model/GrantDbToAccountRequest.cc new file mode 100644 index 000000000..583f66d3e --- /dev/null +++ b/retailcloud/src/model/GrantDbToAccountRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::GrantDbToAccountRequest; + +GrantDbToAccountRequest::GrantDbToAccountRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "GrantDbToAccount") +{ + setMethod(HttpRequest::Method::Post); +} + +GrantDbToAccountRequest::~GrantDbToAccountRequest() +{} + +std::string GrantDbToAccountRequest::getAccountName()const +{ + return accountName_; +} + +void GrantDbToAccountRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string GrantDbToAccountRequest::getDbName()const +{ + return dbName_; +} + +void GrantDbToAccountRequest::setDbName(const std::string& dbName) +{ + dbName_ = dbName; + setBodyParameter("DbName", dbName); +} + +std::string GrantDbToAccountRequest::getDbInstanceId()const +{ + return dbInstanceId_; +} + +void GrantDbToAccountRequest::setDbInstanceId(const std::string& dbInstanceId) +{ + dbInstanceId_ = dbInstanceId; + setBodyParameter("DbInstanceId", dbInstanceId); +} + +std::string GrantDbToAccountRequest::getAccountPrivilege()const +{ + return accountPrivilege_; +} + +void GrantDbToAccountRequest::setAccountPrivilege(const std::string& accountPrivilege) +{ + accountPrivilege_ = accountPrivilege; + setBodyParameter("AccountPrivilege", accountPrivilege); +} + diff --git a/retailcloud/src/model/GrantDbToAccountResult.cc b/retailcloud/src/model/GrantDbToAccountResult.cc new file mode 100644 index 000000000..363e0fb68 --- /dev/null +++ b/retailcloud/src/model/GrantDbToAccountResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +GrantDbToAccountResult::GrantDbToAccountResult() : + ServiceResult() +{} + +GrantDbToAccountResult::GrantDbToAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GrantDbToAccountResult::~GrantDbToAccountResult() +{} + +void GrantDbToAccountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string GrantDbToAccountResult::getErrMsg()const +{ + return errMsg_; +} + +int GrantDbToAccountResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/ListAppCmsGroupsRequest.cc b/retailcloud/src/model/ListAppCmsGroupsRequest.cc new file mode 100644 index 000000000..95e150174 --- /dev/null +++ b/retailcloud/src/model/ListAppCmsGroupsRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ListAppCmsGroupsRequest; + +ListAppCmsGroupsRequest::ListAppCmsGroupsRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ListAppCmsGroups") +{ + setMethod(HttpRequest::Method::Get); +} + +ListAppCmsGroupsRequest::~ListAppCmsGroupsRequest() +{} + +long ListAppCmsGroupsRequest::getAppId()const +{ + return appId_; +} + +void ListAppCmsGroupsRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +int ListAppCmsGroupsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListAppCmsGroupsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long ListAppCmsGroupsRequest::getEnvId()const +{ + return envId_; +} + +void ListAppCmsGroupsRequest::setEnvId(long envId) +{ + envId_ = envId; + setParameter("EnvId", std::to_string(envId)); +} + +int ListAppCmsGroupsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListAppCmsGroupsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/retailcloud/src/model/ListAppCmsGroupsResult.cc b/retailcloud/src/model/ListAppCmsGroupsResult.cc new file mode 100644 index 000000000..6208e0529 --- /dev/null +++ b/retailcloud/src/model/ListAppCmsGroupsResult.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::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ListAppCmsGroupsResult::ListAppCmsGroupsResult() : + ServiceResult() +{} + +ListAppCmsGroupsResult::ListAppCmsGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAppCmsGroupsResult::~ListAppCmsGroupsResult() +{} + +void ListAppCmsGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["String"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListAppCmsGroupsResult::getTotalCount()const +{ + return totalCount_; +} + +int ListAppCmsGroupsResult::getPageSize()const +{ + return pageSize_; +} + +int ListAppCmsGroupsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListAppCmsGroupsResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListAppCmsGroupsResult::getData()const +{ + return data_; +} + +int ListAppCmsGroupsResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/ListAppEnvironmentRequest.cc b/retailcloud/src/model/ListAppEnvironmentRequest.cc new file mode 100644 index 000000000..f4999a176 --- /dev/null +++ b/retailcloud/src/model/ListAppEnvironmentRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ListAppEnvironmentRequest; + +ListAppEnvironmentRequest::ListAppEnvironmentRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ListAppEnvironment") +{ + setMethod(HttpRequest::Method::Get); +} + +ListAppEnvironmentRequest::~ListAppEnvironmentRequest() +{} + +std::string ListAppEnvironmentRequest::getEnvName()const +{ + return envName_; +} + +void ListAppEnvironmentRequest::setEnvName(const std::string& envName) +{ + envName_ = envName; + setParameter("EnvName", envName); +} + +long ListAppEnvironmentRequest::getAppId()const +{ + return appId_; +} + +void ListAppEnvironmentRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +int ListAppEnvironmentRequest::getEnvType()const +{ + return envType_; +} + +void ListAppEnvironmentRequest::setEnvType(int envType) +{ + envType_ = envType; + setParameter("EnvType", std::to_string(envType)); +} + +int ListAppEnvironmentRequest::getPageSize()const +{ + return pageSize_; +} + +void ListAppEnvironmentRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListAppEnvironmentRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListAppEnvironmentRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/retailcloud/src/model/ListAppEnvironmentResult.cc b/retailcloud/src/model/ListAppEnvironmentResult.cc new file mode 100644 index 000000000..29267fad1 --- /dev/null +++ b/retailcloud/src/model/ListAppEnvironmentResult.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::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ListAppEnvironmentResult::ListAppEnvironmentResult() : + ServiceResult() +{} + +ListAppEnvironmentResult::ListAppEnvironmentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAppEnvironmentResult::~ListAppEnvironmentResult() +{} + +void ListAppEnvironmentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["AppEnvironmentResponse"]; + for (auto valueDataAppEnvironmentResponse : allDataNode) + { + AppEnvironmentResponse dataObject; + if(!valueDataAppEnvironmentResponse["AppId"].isNull()) + dataObject.appId = std::stol(valueDataAppEnvironmentResponse["AppId"].asString()); + if(!valueDataAppEnvironmentResponse["EnvId"].isNull()) + dataObject.envId = std::stol(valueDataAppEnvironmentResponse["EnvId"].asString()); + if(!valueDataAppEnvironmentResponse["EnvName"].isNull()) + dataObject.envName = valueDataAppEnvironmentResponse["EnvName"].asString(); + if(!valueDataAppEnvironmentResponse["EnvType"].isNull()) + dataObject.envType = std::stoi(valueDataAppEnvironmentResponse["EnvType"].asString()); + if(!valueDataAppEnvironmentResponse["EnvTypeName"].isNull()) + dataObject.envTypeName = valueDataAppEnvironmentResponse["EnvTypeName"].asString(); + if(!valueDataAppEnvironmentResponse["AppSchemaId"].isNull()) + dataObject.appSchemaId = std::stol(valueDataAppEnvironmentResponse["AppSchemaId"].asString()); + if(!valueDataAppEnvironmentResponse["Region"].isNull()) + dataObject.region = valueDataAppEnvironmentResponse["Region"].asString(); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + +} + +long ListAppEnvironmentResult::getTotalCount()const +{ + return totalCount_; +} + +int ListAppEnvironmentResult::getPageSize()const +{ + return pageSize_; +} + +int ListAppEnvironmentResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListAppEnvironmentResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListAppEnvironmentResult::getData()const +{ + return data_; +} + +int ListAppEnvironmentResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/ListAppInstanceRequest.cc b/retailcloud/src/model/ListAppInstanceRequest.cc new file mode 100644 index 000000000..8d87649b9 --- /dev/null +++ b/retailcloud/src/model/ListAppInstanceRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ListAppInstanceRequest; + +ListAppInstanceRequest::ListAppInstanceRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ListAppInstance") +{ + setMethod(HttpRequest::Method::Post); +} + +ListAppInstanceRequest::~ListAppInstanceRequest() +{} + +long ListAppInstanceRequest::getAppId()const +{ + return appId_; +} + +void ListAppInstanceRequest::setAppId(long appId) +{ + appId_ = appId; + setBodyParameter("AppId", std::to_string(appId)); +} + +int ListAppInstanceRequest::getPageSize()const +{ + return pageSize_; +} + +void ListAppInstanceRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +long ListAppInstanceRequest::getEnvId()const +{ + return envId_; +} + +void ListAppInstanceRequest::setEnvId(long envId) +{ + envId_ = envId; + setBodyParameter("EnvId", std::to_string(envId)); +} + +int ListAppInstanceRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListAppInstanceRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setBodyParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/retailcloud/src/model/ListAppInstanceResult.cc b/retailcloud/src/model/ListAppInstanceResult.cc new file mode 100644 index 000000000..844953eef --- /dev/null +++ b/retailcloud/src/model/ListAppInstanceResult.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ListAppInstanceResult::ListAppInstanceResult() : + ServiceResult() +{} + +ListAppInstanceResult::ListAppInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAppInstanceResult::~ListAppInstanceResult() +{} + +void ListAppInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["AppInstanceDetail"]; + for (auto valueDataAppInstanceDetail : allDataNode) + { + AppInstanceDetail dataObject; + if(!valueDataAppInstanceDetail["AppInstanceId"].isNull()) + dataObject.appInstanceId = valueDataAppInstanceDetail["AppInstanceId"].asString(); + if(!valueDataAppInstanceDetail["CreateTime"].isNull()) + dataObject.createTime = valueDataAppInstanceDetail["CreateTime"].asString(); + if(!valueDataAppInstanceDetail["Spec"].isNull()) + dataObject.spec = valueDataAppInstanceDetail["Spec"].asString(); + if(!valueDataAppInstanceDetail["RestartCount"].isNull()) + dataObject.restartCount = std::stoi(valueDataAppInstanceDetail["RestartCount"].asString()); + if(!valueDataAppInstanceDetail["HostIp"].isNull()) + dataObject.hostIp = valueDataAppInstanceDetail["HostIp"].asString(); + if(!valueDataAppInstanceDetail["PodIp"].isNull()) + dataObject.podIp = valueDataAppInstanceDetail["PodIp"].asString(); + if(!valueDataAppInstanceDetail["Health"].isNull()) + dataObject.health = valueDataAppInstanceDetail["Health"].asString(); + if(!valueDataAppInstanceDetail["Requests"].isNull()) + dataObject.requests = valueDataAppInstanceDetail["Requests"].asString(); + if(!valueDataAppInstanceDetail["Limits"].isNull()) + dataObject.limits = valueDataAppInstanceDetail["Limits"].asString(); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +long ListAppInstanceResult::getTotalCount()const +{ + return totalCount_; +} + +int ListAppInstanceResult::getPageSize()const +{ + return pageSize_; +} + +int ListAppInstanceResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListAppInstanceResult::getErrMsg()const +{ + return errMsg_; +} + +std::vector ListAppInstanceResult::getData()const +{ + return data_; +} + +int ListAppInstanceResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/ListAppRequest.cc b/retailcloud/src/model/ListAppRequest.cc new file mode 100644 index 000000000..d21fe0287 --- /dev/null +++ b/retailcloud/src/model/ListAppRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ListAppRequest; + +ListAppRequest::ListAppRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ListApp") +{ + setMethod(HttpRequest::Method::Get); +} + +ListAppRequest::~ListAppRequest() +{} + +int ListAppRequest::getPageSize()const +{ + return pageSize_; +} + +void ListAppRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListAppRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListAppRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/retailcloud/src/model/ListAppResourceAllocsRequest.cc b/retailcloud/src/model/ListAppResourceAllocsRequest.cc new file mode 100644 index 000000000..4be60b280 --- /dev/null +++ b/retailcloud/src/model/ListAppResourceAllocsRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ListAppResourceAllocsRequest; + +ListAppResourceAllocsRequest::ListAppResourceAllocsRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ListAppResourceAllocs") +{ + setMethod(HttpRequest::Method::Get); +} + +ListAppResourceAllocsRequest::~ListAppResourceAllocsRequest() +{} + +long ListAppResourceAllocsRequest::getAppId()const +{ + return appId_; +} + +void ListAppResourceAllocsRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +int ListAppResourceAllocsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListAppResourceAllocsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long ListAppResourceAllocsRequest::getAppEnvId()const +{ + return appEnvId_; +} + +void ListAppResourceAllocsRequest::setAppEnvId(long appEnvId) +{ + appEnvId_ = appEnvId; + setParameter("AppEnvId", std::to_string(appEnvId)); +} + +std::string ListAppResourceAllocsRequest::getClusterId()const +{ + return clusterId_; +} + +void ListAppResourceAllocsRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + +int ListAppResourceAllocsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListAppResourceAllocsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/retailcloud/src/model/ListAppResourceAllocsResult.cc b/retailcloud/src/model/ListAppResourceAllocsResult.cc new file mode 100644 index 000000000..8bd45ee4b --- /dev/null +++ b/retailcloud/src/model/ListAppResourceAllocsResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ListAppResourceAllocsResult::ListAppResourceAllocsResult() : + ServiceResult() +{} + +ListAppResourceAllocsResult::ListAppResourceAllocsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAppResourceAllocsResult::~ListAppResourceAllocsResult() +{} + +void ListAppResourceAllocsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["ListAppResourceAllocResponse"]; + for (auto valueDataListAppResourceAllocResponse : allDataNode) + { + ListAppResourceAllocResponse dataObject; + if(!valueDataListAppResourceAllocResponse["AppEnvId"].isNull()) + dataObject.appEnvId = std::stol(valueDataListAppResourceAllocResponse["AppEnvId"].asString()); + if(!valueDataListAppResourceAllocResponse["AppId"].isNull()) + dataObject.appId = std::stol(valueDataListAppResourceAllocResponse["AppId"].asString()); + if(!valueDataListAppResourceAllocResponse["ClusterId"].isNull()) + dataObject.clusterId = valueDataListAppResourceAllocResponse["ClusterId"].asString(); + if(!valueDataListAppResourceAllocResponse["Id"].isNull()) + dataObject.id = std::stol(valueDataListAppResourceAllocResponse["Id"].asString()); + if(!valueDataListAppResourceAllocResponse["ResourceDef"].isNull()) + dataObject.resourceDef = valueDataListAppResourceAllocResponse["ResourceDef"].asString(); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListAppResourceAllocsResult::getTotalCount()const +{ + return totalCount_; +} + +int ListAppResourceAllocsResult::getPageSize()const +{ + return pageSize_; +} + +int ListAppResourceAllocsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListAppResourceAllocsResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListAppResourceAllocsResult::getData()const +{ + return data_; +} + +int ListAppResourceAllocsResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/ListAppResult.cc b/retailcloud/src/model/ListAppResult.cc new file mode 100644 index 000000000..5576c8207 --- /dev/null +++ b/retailcloud/src/model/ListAppResult.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ListAppResult::ListAppResult() : + ServiceResult() +{} + +ListAppResult::ListAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAppResult::~ListAppResult() +{} + +void ListAppResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["AppDetail"]; + for (auto valueDataAppDetail : allDataNode) + { + AppDetail dataObject; + if(!valueDataAppDetail["AppId"].isNull()) + dataObject.appId = std::stol(valueDataAppDetail["AppId"].asString()); + if(!valueDataAppDetail["Title"].isNull()) + dataObject.title = valueDataAppDetail["Title"].asString(); + if(!valueDataAppDetail["Description"].isNull()) + dataObject.description = valueDataAppDetail["Description"].asString(); + if(!valueDataAppDetail["Language"].isNull()) + dataObject.language = valueDataAppDetail["Language"].asString(); + if(!valueDataAppDetail["OperatingSystem"].isNull()) + dataObject.operatingSystem = valueDataAppDetail["OperatingSystem"].asString(); + if(!valueDataAppDetail["BizName"].isNull()) + dataObject.bizName = valueDataAppDetail["BizName"].asString(); + if(!valueDataAppDetail["ServiceType"].isNull()) + dataObject.serviceType = valueDataAppDetail["ServiceType"].asString(); + if(!valueDataAppDetail["DeployType"].isNull()) + dataObject.deployType = valueDataAppDetail["DeployType"].asString(); + if(!valueDataAppDetail["BizTitle"].isNull()) + dataObject.bizTitle = valueDataAppDetail["BizTitle"].asString(); + if(!valueDataAppDetail["AppStateType"].isNull()) + dataObject.appStateType = valueDataAppDetail["AppStateType"].asString(); + auto allMiddleWareListNode = allDataNode["MiddleWareList"]["MiddleWareInfo"]; + for (auto allDataNodeMiddleWareListMiddleWareInfo : allMiddleWareListNode) + { + AppDetail::MiddleWareInfo middleWareListObject; + if(!allDataNodeMiddleWareListMiddleWareInfo["AppId"].isNull()) + middleWareListObject.appId = std::stol(allDataNodeMiddleWareListMiddleWareInfo["AppId"].asString()); + if(!allDataNodeMiddleWareListMiddleWareInfo["Code"].isNull()) + middleWareListObject.code = std::stoi(allDataNodeMiddleWareListMiddleWareInfo["Code"].asString()); + if(!allDataNodeMiddleWareListMiddleWareInfo["Name"].isNull()) + middleWareListObject.name = allDataNodeMiddleWareListMiddleWareInfo["Name"].asString(); + dataObject.middleWareList.push_back(middleWareListObject); + } + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListAppResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListAppResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListAppResult::getData()const +{ + return data_; +} + +int ListAppResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/ListAvailableClusterNodeRequest.cc b/retailcloud/src/model/ListAvailableClusterNodeRequest.cc new file mode 100644 index 000000000..069919f3e --- /dev/null +++ b/retailcloud/src/model/ListAvailableClusterNodeRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ListAvailableClusterNodeRequest; + +ListAvailableClusterNodeRequest::ListAvailableClusterNodeRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ListAvailableClusterNode") +{ + setMethod(HttpRequest::Method::Get); +} + +ListAvailableClusterNodeRequest::~ListAvailableClusterNodeRequest() +{} + +int ListAvailableClusterNodeRequest::getPageSize()const +{ + return pageSize_; +} + +void ListAvailableClusterNodeRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListAvailableClusterNodeRequest::getPageNum()const +{ + return pageNum_; +} + +void ListAvailableClusterNodeRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setParameter("PageNum", std::to_string(pageNum)); +} + +std::string ListAvailableClusterNodeRequest::getClusterInstanceId()const +{ + return clusterInstanceId_; +} + +void ListAvailableClusterNodeRequest::setClusterInstanceId(const std::string& clusterInstanceId) +{ + clusterInstanceId_ = clusterInstanceId; + setParameter("ClusterInstanceId", clusterInstanceId); +} + diff --git a/retailcloud/src/model/ListAvailableClusterNodeResult.cc b/retailcloud/src/model/ListAvailableClusterNodeResult.cc new file mode 100644 index 000000000..15e2aad38 --- /dev/null +++ b/retailcloud/src/model/ListAvailableClusterNodeResult.cc @@ -0,0 +1,130 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ListAvailableClusterNodeResult::ListAvailableClusterNodeResult() : + ServiceResult() +{} + +ListAvailableClusterNodeResult::ListAvailableClusterNodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAvailableClusterNodeResult::~ListAvailableClusterNodeResult() +{} + +void ListAvailableClusterNodeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["ClusterNodeInfo"]; + for (auto valueDataClusterNodeInfo : allDataNode) + { + ClusterNodeInfo dataObject; + if(!valueDataClusterNodeInfo["OSName"].isNull()) + dataObject.oSName = valueDataClusterNodeInfo["OSName"].asString(); + if(!valueDataClusterNodeInfo["BusinessCode"].isNull()) + dataObject.businessCode = valueDataClusterNodeInfo["BusinessCode"].asString(); + if(!valueDataClusterNodeInfo["EcsConfiguration"].isNull()) + dataObject.ecsConfiguration = valueDataClusterNodeInfo["EcsConfiguration"].asString(); + if(!valueDataClusterNodeInfo["EcsCpu"].isNull()) + dataObject.ecsCpu = valueDataClusterNodeInfo["EcsCpu"].asString(); + if(!valueDataClusterNodeInfo["EcsEip"].isNull()) + dataObject.ecsEip = valueDataClusterNodeInfo["EcsEip"].asString(); + if(!valueDataClusterNodeInfo["EcsExpiredTime"].isNull()) + dataObject.ecsExpiredTime = valueDataClusterNodeInfo["EcsExpiredTime"].asString(); + if(!valueDataClusterNodeInfo["EcsLocalStorageCapacity"].isNull()) + dataObject.ecsLocalStorageCapacity = valueDataClusterNodeInfo["EcsLocalStorageCapacity"].asString(); + if(!valueDataClusterNodeInfo["EcsMemory"].isNull()) + dataObject.ecsMemory = valueDataClusterNodeInfo["EcsMemory"].asString(); + if(!valueDataClusterNodeInfo["EcsOsType"].isNull()) + dataObject.ecsOsType = valueDataClusterNodeInfo["EcsOsType"].asString(); + if(!valueDataClusterNodeInfo["EcsPrivateIp"].isNull()) + dataObject.ecsPrivateIp = valueDataClusterNodeInfo["EcsPrivateIp"].asString(); + if(!valueDataClusterNodeInfo["EcsPublicIp"].isNull()) + dataObject.ecsPublicIp = valueDataClusterNodeInfo["EcsPublicIp"].asString(); + if(!valueDataClusterNodeInfo["EcsZone"].isNull()) + dataObject.ecsZone = valueDataClusterNodeInfo["EcsZone"].asString(); + if(!valueDataClusterNodeInfo["InstanceId"].isNull()) + dataObject.instanceId = valueDataClusterNodeInfo["InstanceId"].asString(); + if(!valueDataClusterNodeInfo["InstanceName"].isNull()) + dataObject.instanceName = valueDataClusterNodeInfo["InstanceName"].asString(); + if(!valueDataClusterNodeInfo["InstanceNetworkType"].isNull()) + dataObject.instanceNetworkType = valueDataClusterNodeInfo["InstanceNetworkType"].asString(); + if(!valueDataClusterNodeInfo["InstanceType"].isNull()) + dataObject.instanceType = valueDataClusterNodeInfo["InstanceType"].asString(); + if(!valueDataClusterNodeInfo["InternetMaxBandwidthIn"].isNull()) + dataObject.internetMaxBandwidthIn = valueDataClusterNodeInfo["InternetMaxBandwidthIn"].asString(); + if(!valueDataClusterNodeInfo["InternetMaxBandwidthOut"].isNull()) + dataObject.internetMaxBandwidthOut = valueDataClusterNodeInfo["InternetMaxBandwidthOut"].asString(); + if(!valueDataClusterNodeInfo["RegionId"].isNull()) + dataObject.regionId = valueDataClusterNodeInfo["RegionId"].asString(); + if(!valueDataClusterNodeInfo["VpcId"].isNull()) + dataObject.vpcId = valueDataClusterNodeInfo["VpcId"].asString(); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListAvailableClusterNodeResult::getTotalCount()const +{ + return totalCount_; +} + +int ListAvailableClusterNodeResult::getPageSize()const +{ + return pageSize_; +} + +int ListAvailableClusterNodeResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListAvailableClusterNodeResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListAvailableClusterNodeResult::getData()const +{ + return data_; +} + +int ListAvailableClusterNodeResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/ListClusterNodeRequest.cc b/retailcloud/src/model/ListClusterNodeRequest.cc new file mode 100644 index 000000000..1f1bdaa59 --- /dev/null +++ b/retailcloud/src/model/ListClusterNodeRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ListClusterNodeRequest; + +ListClusterNodeRequest::ListClusterNodeRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ListClusterNode") +{ + setMethod(HttpRequest::Method::Get); +} + +ListClusterNodeRequest::~ListClusterNodeRequest() +{} + +int ListClusterNodeRequest::getPageSize()const +{ + return pageSize_; +} + +void ListClusterNodeRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListClusterNodeRequest::getPageNum()const +{ + return pageNum_; +} + +void ListClusterNodeRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setParameter("PageNum", std::to_string(pageNum)); +} + +std::string ListClusterNodeRequest::getClusterInstanceId()const +{ + return clusterInstanceId_; +} + +void ListClusterNodeRequest::setClusterInstanceId(const std::string& clusterInstanceId) +{ + clusterInstanceId_ = clusterInstanceId; + setParameter("ClusterInstanceId", clusterInstanceId); +} + diff --git a/retailcloud/src/model/ListClusterNodeResult.cc b/retailcloud/src/model/ListClusterNodeResult.cc new file mode 100644 index 000000000..ceeb36090 --- /dev/null +++ b/retailcloud/src/model/ListClusterNodeResult.cc @@ -0,0 +1,130 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ListClusterNodeResult::ListClusterNodeResult() : + ServiceResult() +{} + +ListClusterNodeResult::ListClusterNodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListClusterNodeResult::~ListClusterNodeResult() +{} + +void ListClusterNodeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["ClusterNodeInfo"]; + for (auto valueDataClusterNodeInfo : allDataNode) + { + ClusterNodeInfo dataObject; + if(!valueDataClusterNodeInfo["OSName"].isNull()) + dataObject.oSName = valueDataClusterNodeInfo["OSName"].asString(); + if(!valueDataClusterNodeInfo["BusinessCode"].isNull()) + dataObject.businessCode = valueDataClusterNodeInfo["BusinessCode"].asString(); + if(!valueDataClusterNodeInfo["EcsConfiguration"].isNull()) + dataObject.ecsConfiguration = valueDataClusterNodeInfo["EcsConfiguration"].asString(); + if(!valueDataClusterNodeInfo["EcsCpu"].isNull()) + dataObject.ecsCpu = valueDataClusterNodeInfo["EcsCpu"].asString(); + if(!valueDataClusterNodeInfo["EcsEip"].isNull()) + dataObject.ecsEip = valueDataClusterNodeInfo["EcsEip"].asString(); + if(!valueDataClusterNodeInfo["EcsExpiredTime"].isNull()) + dataObject.ecsExpiredTime = valueDataClusterNodeInfo["EcsExpiredTime"].asString(); + if(!valueDataClusterNodeInfo["EcsLocalStorageCapacity"].isNull()) + dataObject.ecsLocalStorageCapacity = valueDataClusterNodeInfo["EcsLocalStorageCapacity"].asString(); + if(!valueDataClusterNodeInfo["EcsMemory"].isNull()) + dataObject.ecsMemory = valueDataClusterNodeInfo["EcsMemory"].asString(); + if(!valueDataClusterNodeInfo["EcsOsType"].isNull()) + dataObject.ecsOsType = valueDataClusterNodeInfo["EcsOsType"].asString(); + if(!valueDataClusterNodeInfo["EcsPrivateIp"].isNull()) + dataObject.ecsPrivateIp = valueDataClusterNodeInfo["EcsPrivateIp"].asString(); + if(!valueDataClusterNodeInfo["EcsPublicIp"].isNull()) + dataObject.ecsPublicIp = valueDataClusterNodeInfo["EcsPublicIp"].asString(); + if(!valueDataClusterNodeInfo["EcsZone"].isNull()) + dataObject.ecsZone = valueDataClusterNodeInfo["EcsZone"].asString(); + if(!valueDataClusterNodeInfo["InstanceId"].isNull()) + dataObject.instanceId = valueDataClusterNodeInfo["InstanceId"].asString(); + if(!valueDataClusterNodeInfo["InstanceName"].isNull()) + dataObject.instanceName = valueDataClusterNodeInfo["InstanceName"].asString(); + if(!valueDataClusterNodeInfo["InstanceNetworkType"].isNull()) + dataObject.instanceNetworkType = valueDataClusterNodeInfo["InstanceNetworkType"].asString(); + if(!valueDataClusterNodeInfo["InstanceType"].isNull()) + dataObject.instanceType = valueDataClusterNodeInfo["InstanceType"].asString(); + if(!valueDataClusterNodeInfo["InternetMaxBandwidthIn"].isNull()) + dataObject.internetMaxBandwidthIn = valueDataClusterNodeInfo["InternetMaxBandwidthIn"].asString(); + if(!valueDataClusterNodeInfo["InternetMaxBandwidthOut"].isNull()) + dataObject.internetMaxBandwidthOut = valueDataClusterNodeInfo["InternetMaxBandwidthOut"].asString(); + if(!valueDataClusterNodeInfo["RegionId"].isNull()) + dataObject.regionId = valueDataClusterNodeInfo["RegionId"].asString(); + if(!valueDataClusterNodeInfo["VpcId"].isNull()) + dataObject.vpcId = valueDataClusterNodeInfo["VpcId"].asString(); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListClusterNodeResult::getTotalCount()const +{ + return totalCount_; +} + +int ListClusterNodeResult::getPageSize()const +{ + return pageSize_; +} + +int ListClusterNodeResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListClusterNodeResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListClusterNodeResult::getData()const +{ + return data_; +} + +int ListClusterNodeResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/ListClusterRequest.cc b/retailcloud/src/model/ListClusterRequest.cc new file mode 100644 index 000000000..a1a0416dd --- /dev/null +++ b/retailcloud/src/model/ListClusterRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ListClusterRequest; + +ListClusterRequest::ListClusterRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ListCluster") +{ + setMethod(HttpRequest::Method::Get); +} + +ListClusterRequest::~ListClusterRequest() +{} + +std::string ListClusterRequest::getBusinessCode()const +{ + return businessCode_; +} + +void ListClusterRequest::setBusinessCode(const std::string& businessCode) +{ + businessCode_ = businessCode; + setParameter("BusinessCode", businessCode); +} + +std::string ListClusterRequest::getEnvType()const +{ + return envType_; +} + +void ListClusterRequest::setEnvType(const std::string& envType) +{ + envType_ = envType; + setParameter("EnvType", envType); +} + +int ListClusterRequest::getPageSize()const +{ + return pageSize_; +} + +void ListClusterRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListClusterRequest::getPageNum()const +{ + return pageNum_; +} + +void ListClusterRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setParameter("PageNum", std::to_string(pageNum)); +} + diff --git a/retailcloud/src/model/ListClusterResult.cc b/retailcloud/src/model/ListClusterResult.cc new file mode 100644 index 000000000..bbf5efe41 --- /dev/null +++ b/retailcloud/src/model/ListClusterResult.cc @@ -0,0 +1,130 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ListClusterResult::ListClusterResult() : + ServiceResult() +{} + +ListClusterResult::ListClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListClusterResult::~ListClusterResult() +{} + +void ListClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["ClusterInfo"]; + for (auto valueDataClusterInfo : allDataNode) + { + ClusterInfo dataObject; + if(!valueDataClusterInfo["BusinessCode"].isNull()) + dataObject.businessCode = valueDataClusterInfo["BusinessCode"].asString(); + if(!valueDataClusterInfo["ClusterTitle"].isNull()) + dataObject.clusterTitle = valueDataClusterInfo["ClusterTitle"].asString(); + if(!valueDataClusterInfo["CreateStatus"].isNull()) + dataObject.createStatus = valueDataClusterInfo["CreateStatus"].asString(); + if(!valueDataClusterInfo["EnvType"].isNull()) + dataObject.envType = valueDataClusterInfo["EnvType"].asString(); + if(!valueDataClusterInfo["Id"].isNull()) + dataObject.id = std::stol(valueDataClusterInfo["Id"].asString()); + if(!valueDataClusterInfo["InstanceId"].isNull()) + dataObject.instanceId = valueDataClusterInfo["InstanceId"].asString(); + if(!valueDataClusterInfo["KeyPair"].isNull()) + dataObject.keyPair = valueDataClusterInfo["KeyPair"].asString(); + if(!valueDataClusterInfo["NetPlug"].isNull()) + dataObject.netPlug = valueDataClusterInfo["NetPlug"].asString(); + if(!valueDataClusterInfo["Password"].isNull()) + dataObject.password = valueDataClusterInfo["Password"].asString(); + if(!valueDataClusterInfo["PodCIDR"].isNull()) + dataObject.podCIDR = valueDataClusterInfo["PodCIDR"].asString(); + if(!valueDataClusterInfo["RegionId"].isNull()) + dataObject.regionId = valueDataClusterInfo["RegionId"].asString(); + if(!valueDataClusterInfo["RegionName"].isNull()) + dataObject.regionName = valueDataClusterInfo["RegionName"].asString(); + if(!valueDataClusterInfo["ServiceCIDR"].isNull()) + dataObject.serviceCIDR = valueDataClusterInfo["ServiceCIDR"].asString(); + if(!valueDataClusterInfo["Status"].isNull()) + dataObject.status = valueDataClusterInfo["Status"].asString(); + if(!valueDataClusterInfo["VpcId"].isNull()) + dataObject.vpcId = valueDataClusterInfo["VpcId"].asString(); + if(!valueDataClusterInfo["WorkLoadCpu"].isNull()) + dataObject.workLoadCpu = valueDataClusterInfo["WorkLoadCpu"].asString(); + if(!valueDataClusterInfo["WorkLoadMem"].isNull()) + dataObject.workLoadMem = valueDataClusterInfo["WorkLoadMem"].asString(); + auto allEcsIds = value["EcsIds"]["String"]; + for (auto value : allEcsIds) + dataObject.ecsIds.push_back(value.asString()); + auto allVswitchIds = value["VswitchIds"]["String"]; + for (auto value : allVswitchIds) + dataObject.vswitchIds.push_back(value.asString()); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListClusterResult::getTotalCount()const +{ + return totalCount_; +} + +int ListClusterResult::getPageSize()const +{ + return pageSize_; +} + +int ListClusterResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListClusterResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListClusterResult::getData()const +{ + return data_; +} + +int ListClusterResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/ListDeployConfigRequest.cc b/retailcloud/src/model/ListDeployConfigRequest.cc new file mode 100644 index 000000000..e543cdc54 --- /dev/null +++ b/retailcloud/src/model/ListDeployConfigRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ListDeployConfigRequest; + +ListDeployConfigRequest::ListDeployConfigRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ListDeployConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +ListDeployConfigRequest::~ListDeployConfigRequest() +{} + +long ListDeployConfigRequest::getAppId()const +{ + return appId_; +} + +void ListDeployConfigRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string ListDeployConfigRequest::getEnvType()const +{ + return envType_; +} + +void ListDeployConfigRequest::setEnvType(const std::string& envType) +{ + envType_ = envType; + setParameter("EnvType", envType); +} + +std::string ListDeployConfigRequest::getName()const +{ + return name_; +} + +void ListDeployConfigRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +long ListDeployConfigRequest::getId()const +{ + return id_; +} + +void ListDeployConfigRequest::setId(long id) +{ + id_ = id; + setParameter("Id", std::to_string(id)); +} + diff --git a/retailcloud/src/model/ListDeployConfigResult.cc b/retailcloud/src/model/ListDeployConfigResult.cc new file mode 100644 index 000000000..e71f2237a --- /dev/null +++ b/retailcloud/src/model/ListDeployConfigResult.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::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ListDeployConfigResult::ListDeployConfigResult() : + ServiceResult() +{} + +ListDeployConfigResult::ListDeployConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDeployConfigResult::~ListDeployConfigResult() +{} + +void ListDeployConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DeployConfigInstance"]; + for (auto valueDataDeployConfigInstance : allDataNode) + { + DeployConfigInstance dataObject; + if(!valueDataDeployConfigInstance["Id"].isNull()) + dataObject.id = std::stol(valueDataDeployConfigInstance["Id"].asString()); + if(!valueDataDeployConfigInstance["Name"].isNull()) + dataObject.name = valueDataDeployConfigInstance["Name"].asString(); + if(!valueDataDeployConfigInstance["AppId"].isNull()) + dataObject.appId = std::stol(valueDataDeployConfigInstance["AppId"].asString()); + if(!valueDataDeployConfigInstance["EnvType"].isNull()) + dataObject.envType = valueDataDeployConfigInstance["EnvType"].asString(); + auto containerCodePathNode = value["ContainerCodePath"]; + if(!containerCodePathNode["CodePath"].isNull()) + dataObject.containerCodePath.codePath = containerCodePathNode["CodePath"].asString(); + auto containerYamlConfNode = value["ContainerYamlConf"]; + if(!containerYamlConfNode["Deployment"].isNull()) + dataObject.containerYamlConf.deployment = containerYamlConfNode["Deployment"].asString(); + if(!containerYamlConfNode["ConfigMap"].isNull()) + dataObject.containerYamlConf.configMap = containerYamlConfNode["ConfigMap"].asString(); + if(!containerYamlConfNode["StatefulSet"].isNull()) + dataObject.containerYamlConf.statefulSet = containerYamlConfNode["StatefulSet"].asString(); + auto allConfigMapList = containerYamlConfNode["ConfigMapList"]["ConfigMapList"]; + for (auto value : allConfigMapList) + dataObject.containerYamlConf.configMapList.push_back(value.asString()); + auto allSecretList = containerYamlConfNode["SecretList"]["SecretList"]; + for (auto value : allSecretList) + dataObject.containerYamlConf.secretList.push_back(value.asString()); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListDeployConfigResult::getTotalCount()const +{ + return totalCount_; +} + +int ListDeployConfigResult::getPageSize()const +{ + return pageSize_; +} + +int ListDeployConfigResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListDeployConfigResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListDeployConfigResult::getData()const +{ + return data_; +} + +int ListDeployConfigResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/ListDeployOrdersRequest.cc b/retailcloud/src/model/ListDeployOrdersRequest.cc new file mode 100644 index 000000000..6680b5eb9 --- /dev/null +++ b/retailcloud/src/model/ListDeployOrdersRequest.cc @@ -0,0 +1,253 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ListDeployOrdersRequest; + +ListDeployOrdersRequest::ListDeployOrdersRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ListDeployOrders") +{ + setMethod(HttpRequest::Method::Post); +} + +ListDeployOrdersRequest::~ListDeployOrdersRequest() +{} + +std::string ListDeployOrdersRequest::getStartTimeGreaterThanOrEqualTo()const +{ + return startTimeGreaterThanOrEqualTo_; +} + +void ListDeployOrdersRequest::setStartTimeGreaterThanOrEqualTo(const std::string& startTimeGreaterThanOrEqualTo) +{ + startTimeGreaterThanOrEqualTo_ = startTimeGreaterThanOrEqualTo; + setParameter("StartTimeGreaterThanOrEqualTo", startTimeGreaterThanOrEqualTo); +} + +std::vector ListDeployOrdersRequest::getStatusList()const +{ + return statusList_; +} + +void ListDeployOrdersRequest::setStatusList(const std::vector& statusList) +{ + statusList_ = statusList; + for(int dep1 = 0; dep1!= statusList.size(); dep1++) { + setBodyParameter("StatusList."+ std::to_string(dep1), std::to_string(statusList.at(dep1))); + } +} + +long ListDeployOrdersRequest::getEnvId()const +{ + return envId_; +} + +void ListDeployOrdersRequest::setEnvId(long envId) +{ + envId_ = envId; + setParameter("EnvId", std::to_string(envId)); +} + +std::string ListDeployOrdersRequest::getEndTimeGreaterThan()const +{ + return endTimeGreaterThan_; +} + +void ListDeployOrdersRequest::setEndTimeGreaterThan(const std::string& endTimeGreaterThan) +{ + endTimeGreaterThan_ = endTimeGreaterThan; + setParameter("EndTimeGreaterThan", endTimeGreaterThan); +} + +int ListDeployOrdersRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListDeployOrdersRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListDeployOrdersRequest::getPauseType()const +{ + return pauseType_; +} + +void ListDeployOrdersRequest::setPauseType(const std::string& pauseType) +{ + pauseType_ = pauseType; + setParameter("PauseType", pauseType); +} + +std::vector ListDeployOrdersRequest::getResultList()const +{ + return resultList_; +} + +void ListDeployOrdersRequest::setResultList(const std::vector& resultList) +{ + resultList_ = resultList; + for(int dep1 = 0; dep1!= resultList.size(); dep1++) { + setBodyParameter("ResultList."+ std::to_string(dep1), std::to_string(resultList.at(dep1))); + } +} + +std::string ListDeployOrdersRequest::getStartTimeGreaterThan()const +{ + return startTimeGreaterThan_; +} + +void ListDeployOrdersRequest::setStartTimeGreaterThan(const std::string& startTimeGreaterThan) +{ + startTimeGreaterThan_ = startTimeGreaterThan; + setParameter("StartTimeGreaterThan", startTimeGreaterThan); +} + +std::string ListDeployOrdersRequest::getStartTimeLessThan()const +{ + return startTimeLessThan_; +} + +void ListDeployOrdersRequest::setStartTimeLessThan(const std::string& startTimeLessThan) +{ + startTimeLessThan_ = startTimeLessThan; + setParameter("StartTimeLessThan", startTimeLessThan); +} + +std::string ListDeployOrdersRequest::getStartTimeLessThanOrEqualTo()const +{ + return startTimeLessThanOrEqualTo_; +} + +void ListDeployOrdersRequest::setStartTimeLessThanOrEqualTo(const std::string& startTimeLessThanOrEqualTo) +{ + startTimeLessThanOrEqualTo_ = startTimeLessThanOrEqualTo; + setParameter("StartTimeLessThanOrEqualTo", startTimeLessThanOrEqualTo); +} + +long ListDeployOrdersRequest::getAppId()const +{ + return appId_; +} + +void ListDeployOrdersRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string ListDeployOrdersRequest::getEnvType()const +{ + return envType_; +} + +void ListDeployOrdersRequest::setEnvType(const std::string& envType) +{ + envType_ = envType; + setParameter("EnvType", envType); +} + +int ListDeployOrdersRequest::getPageSize()const +{ + return pageSize_; +} + +void ListDeployOrdersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListDeployOrdersRequest::getEndTimeGreaterThanOrEqualTo()const +{ + return endTimeGreaterThanOrEqualTo_; +} + +void ListDeployOrdersRequest::setEndTimeGreaterThanOrEqualTo(const std::string& endTimeGreaterThanOrEqualTo) +{ + endTimeGreaterThanOrEqualTo_ = endTimeGreaterThanOrEqualTo; + setParameter("EndTimeGreaterThanOrEqualTo", endTimeGreaterThanOrEqualTo); +} + +std::string ListDeployOrdersRequest::getEndTimeLessThan()const +{ + return endTimeLessThan_; +} + +void ListDeployOrdersRequest::setEndTimeLessThan(const std::string& endTimeLessThan) +{ + endTimeLessThan_ = endTimeLessThan; + setParameter("EndTimeLessThan", endTimeLessThan); +} + +std::string ListDeployOrdersRequest::getEndTimeLessThanOrEqualTo()const +{ + return endTimeLessThanOrEqualTo_; +} + +void ListDeployOrdersRequest::setEndTimeLessThanOrEqualTo(const std::string& endTimeLessThanOrEqualTo) +{ + endTimeLessThanOrEqualTo_ = endTimeLessThanOrEqualTo; + setParameter("EndTimeLessThanOrEqualTo", endTimeLessThanOrEqualTo); +} + +std::string ListDeployOrdersRequest::getPartitionType()const +{ + return partitionType_; +} + +void ListDeployOrdersRequest::setPartitionType(const std::string& partitionType) +{ + partitionType_ = partitionType; + setParameter("PartitionType", partitionType); +} + +std::string ListDeployOrdersRequest::getDeployCategory()const +{ + return deployCategory_; +} + +void ListDeployOrdersRequest::setDeployCategory(const std::string& deployCategory) +{ + deployCategory_ = deployCategory; + setParameter("DeployCategory", deployCategory); +} + +std::string ListDeployOrdersRequest::getDeployType()const +{ + return deployType_; +} + +void ListDeployOrdersRequest::setDeployType(const std::string& deployType) +{ + deployType_ = deployType; + setParameter("DeployType", deployType); +} + +int ListDeployOrdersRequest::getStatus()const +{ + return status_; +} + +void ListDeployOrdersRequest::setStatus(int status) +{ + status_ = status; + setParameter("Status", std::to_string(status)); +} + diff --git a/retailcloud/src/model/ListDeployOrdersResult.cc b/retailcloud/src/model/ListDeployOrdersResult.cc new file mode 100644 index 000000000..ceb6863ab --- /dev/null +++ b/retailcloud/src/model/ListDeployOrdersResult.cc @@ -0,0 +1,144 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ListDeployOrdersResult::ListDeployOrdersResult() : + ServiceResult() +{} + +ListDeployOrdersResult::ListDeployOrdersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDeployOrdersResult::~ListDeployOrdersResult() +{} + +void ListDeployOrdersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DeployOrderInstance"]; + for (auto valueDataDeployOrderInstance : allDataNode) + { + DeployOrderInstance dataObject; + if(!valueDataDeployOrderInstance["AppInstanceType"].isNull()) + dataObject.appInstanceType = valueDataDeployOrderInstance["AppInstanceType"].asString(); + if(!valueDataDeployOrderInstance["CurrentPartitionNum"].isNull()) + dataObject.currentPartitionNum = std::stoi(valueDataDeployOrderInstance["CurrentPartitionNum"].asString()); + if(!valueDataDeployOrderInstance["DeployOrderId"].isNull()) + dataObject.deployOrderId = std::stol(valueDataDeployOrderInstance["DeployOrderId"].asString()); + if(!valueDataDeployOrderInstance["DeployPauseType"].isNull()) + dataObject.deployPauseType = valueDataDeployOrderInstance["DeployPauseType"].asString(); + if(!valueDataDeployOrderInstance["DeployPauseTypeName"].isNull()) + dataObject.deployPauseTypeName = valueDataDeployOrderInstance["DeployPauseTypeName"].asString(); + if(!valueDataDeployOrderInstance["DeployType"].isNull()) + dataObject.deployType = valueDataDeployOrderInstance["DeployType"].asString(); + if(!valueDataDeployOrderInstance["DeployTypeName"].isNull()) + dataObject.deployTypeName = valueDataDeployOrderInstance["DeployTypeName"].asString(); + if(!valueDataDeployOrderInstance["Description"].isNull()) + dataObject.description = valueDataDeployOrderInstance["Description"].asString(); + if(!valueDataDeployOrderInstance["ElapsedTime"].isNull()) + dataObject.elapsedTime = std::stoi(valueDataDeployOrderInstance["ElapsedTime"].asString()); + if(!valueDataDeployOrderInstance["EndTime"].isNull()) + dataObject.endTime = valueDataDeployOrderInstance["EndTime"].asString(); + if(!valueDataDeployOrderInstance["EnvId"].isNull()) + dataObject.envId = std::stol(valueDataDeployOrderInstance["EnvId"].asString()); + if(!valueDataDeployOrderInstance["EnvType"].isNull()) + dataObject.envType = valueDataDeployOrderInstance["EnvType"].asString(); + if(!valueDataDeployOrderInstance["FailureRate"].isNull()) + dataObject.failureRate = valueDataDeployOrderInstance["FailureRate"].asString(); + if(!valueDataDeployOrderInstance["FinishAppInstanceCt"].isNull()) + dataObject.finishAppInstanceCt = std::stoi(valueDataDeployOrderInstance["FinishAppInstanceCt"].asString()); + if(!valueDataDeployOrderInstance["Name"].isNull()) + dataObject.name = valueDataDeployOrderInstance["Name"].asString(); + if(!valueDataDeployOrderInstance["PartitionType"].isNull()) + dataObject.partitionType = valueDataDeployOrderInstance["PartitionType"].asString(); + if(!valueDataDeployOrderInstance["PartitionTypeName"].isNull()) + dataObject.partitionTypeName = valueDataDeployOrderInstance["PartitionTypeName"].asString(); + if(!valueDataDeployOrderInstance["Result"].isNull()) + dataObject.result = std::stoi(valueDataDeployOrderInstance["Result"].asString()); + if(!valueDataDeployOrderInstance["ResultName"].isNull()) + dataObject.resultName = valueDataDeployOrderInstance["ResultName"].asString(); + if(!valueDataDeployOrderInstance["SchemaId"].isNull()) + dataObject.schemaId = std::stol(valueDataDeployOrderInstance["SchemaId"].asString()); + if(!valueDataDeployOrderInstance["StartTime"].isNull()) + dataObject.startTime = valueDataDeployOrderInstance["StartTime"].asString(); + if(!valueDataDeployOrderInstance["Status"].isNull()) + dataObject.status = std::stoi(valueDataDeployOrderInstance["Status"].asString()); + if(!valueDataDeployOrderInstance["StatusName"].isNull()) + dataObject.statusName = valueDataDeployOrderInstance["StatusName"].asString(); + if(!valueDataDeployOrderInstance["TotalAppInstanceCt"].isNull()) + dataObject.totalAppInstanceCt = std::stoi(valueDataDeployOrderInstance["TotalAppInstanceCt"].asString()); + if(!valueDataDeployOrderInstance["TotalPartitions"].isNull()) + dataObject.totalPartitions = std::stoi(valueDataDeployOrderInstance["TotalPartitions"].asString()); + if(!valueDataDeployOrderInstance["UserId"].isNull()) + dataObject.userId = valueDataDeployOrderInstance["UserId"].asString(); + if(!valueDataDeployOrderInstance["UserNick"].isNull()) + dataObject.userNick = valueDataDeployOrderInstance["UserNick"].asString(); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListDeployOrdersResult::getTotalCount()const +{ + return totalCount_; +} + +int ListDeployOrdersResult::getPageSize()const +{ + return pageSize_; +} + +int ListDeployOrdersResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListDeployOrdersResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListDeployOrdersResult::getData()const +{ + return data_; +} + +int ListDeployOrdersResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/ListNodeLabelBindingsRequest.cc b/retailcloud/src/model/ListNodeLabelBindingsRequest.cc new file mode 100644 index 000000000..f9efadd54 --- /dev/null +++ b/retailcloud/src/model/ListNodeLabelBindingsRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ListNodeLabelBindingsRequest; + +ListNodeLabelBindingsRequest::ListNodeLabelBindingsRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ListNodeLabelBindings") +{ + setMethod(HttpRequest::Method::Get); +} + +ListNodeLabelBindingsRequest::~ListNodeLabelBindingsRequest() +{} + +std::string ListNodeLabelBindingsRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListNodeLabelBindingsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListNodeLabelBindingsRequest::getLabelKey()const +{ + return labelKey_; +} + +void ListNodeLabelBindingsRequest::setLabelKey(const std::string& labelKey) +{ + labelKey_ = labelKey; + setParameter("LabelKey", labelKey); +} + +std::string ListNodeLabelBindingsRequest::getLabelValue()const +{ + return labelValue_; +} + +void ListNodeLabelBindingsRequest::setLabelValue(const std::string& labelValue) +{ + labelValue_ = labelValue; + setParameter("LabelValue", labelValue); +} + +int ListNodeLabelBindingsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListNodeLabelBindingsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListNodeLabelBindingsRequest::getClusterId()const +{ + return clusterId_; +} + +void ListNodeLabelBindingsRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + +int ListNodeLabelBindingsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListNodeLabelBindingsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/retailcloud/src/model/ListNodeLabelBindingsResult.cc b/retailcloud/src/model/ListNodeLabelBindingsResult.cc new file mode 100644 index 000000000..acd398b76 --- /dev/null +++ b/retailcloud/src/model/ListNodeLabelBindingsResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ListNodeLabelBindingsResult::ListNodeLabelBindingsResult() : + ServiceResult() +{} + +ListNodeLabelBindingsResult::ListNodeLabelBindingsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListNodeLabelBindingsResult::~ListNodeLabelBindingsResult() +{} + +void ListNodeLabelBindingsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["ListNodeLabelBindingResponse"]; + for (auto valueDataListNodeLabelBindingResponse : allDataNode) + { + ListNodeLabelBindingResponse dataObject; + if(!valueDataListNodeLabelBindingResponse["Id"].isNull()) + dataObject.id = std::stol(valueDataListNodeLabelBindingResponse["Id"].asString()); + if(!valueDataListNodeLabelBindingResponse["InstanceId"].isNull()) + dataObject.instanceId = valueDataListNodeLabelBindingResponse["InstanceId"].asString(); + if(!valueDataListNodeLabelBindingResponse["InstanceType"].isNull()) + dataObject.instanceType = valueDataListNodeLabelBindingResponse["InstanceType"].asString(); + if(!valueDataListNodeLabelBindingResponse["LabelKey"].isNull()) + dataObject.labelKey = valueDataListNodeLabelBindingResponse["LabelKey"].asString(); + if(!valueDataListNodeLabelBindingResponse["LabelValue"].isNull()) + dataObject.labelValue = valueDataListNodeLabelBindingResponse["LabelValue"].asString(); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListNodeLabelBindingsResult::getTotalCount()const +{ + return totalCount_; +} + +int ListNodeLabelBindingsResult::getPageSize()const +{ + return pageSize_; +} + +int ListNodeLabelBindingsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListNodeLabelBindingsResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListNodeLabelBindingsResult::getData()const +{ + return data_; +} + +int ListNodeLabelBindingsResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/ListNodeLabelsRequest.cc b/retailcloud/src/model/ListNodeLabelsRequest.cc new file mode 100644 index 000000000..cc9d959ac --- /dev/null +++ b/retailcloud/src/model/ListNodeLabelsRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ListNodeLabelsRequest; + +ListNodeLabelsRequest::ListNodeLabelsRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ListNodeLabels") +{ + setMethod(HttpRequest::Method::Post); +} + +ListNodeLabelsRequest::~ListNodeLabelsRequest() +{} + +std::string ListNodeLabelsRequest::getLabelKey()const +{ + return labelKey_; +} + +void ListNodeLabelsRequest::setLabelKey(const std::string& labelKey) +{ + labelKey_ = labelKey; + setParameter("LabelKey", labelKey); +} + +int ListNodeLabelsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListNodeLabelsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListNodeLabelsRequest::getClusterId()const +{ + return clusterId_; +} + +void ListNodeLabelsRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + +int ListNodeLabelsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListNodeLabelsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/retailcloud/src/model/ListNodeLabelsResult.cc b/retailcloud/src/model/ListNodeLabelsResult.cc new file mode 100644 index 000000000..a2d15bd4c --- /dev/null +++ b/retailcloud/src/model/ListNodeLabelsResult.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::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ListNodeLabelsResult::ListNodeLabelsResult() : + ServiceResult() +{} + +ListNodeLabelsResult::ListNodeLabelsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListNodeLabelsResult::~ListNodeLabelsResult() +{} + +void ListNodeLabelsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["ListNodeLabelResponse"]; + for (auto valueDataListNodeLabelResponse : allDataNode) + { + ListNodeLabelResponse dataObject; + if(!valueDataListNodeLabelResponse["ClusterId"].isNull()) + dataObject.clusterId = valueDataListNodeLabelResponse["ClusterId"].asString(); + if(!valueDataListNodeLabelResponse["Id"].isNull()) + dataObject.id = std::stol(valueDataListNodeLabelResponse["Id"].asString()); + if(!valueDataListNodeLabelResponse["LabelKey"].isNull()) + dataObject.labelKey = valueDataListNodeLabelResponse["LabelKey"].asString(); + if(!valueDataListNodeLabelResponse["LabelValue"].isNull()) + dataObject.labelValue = valueDataListNodeLabelResponse["LabelValue"].asString(); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListNodeLabelsResult::getTotalCount()const +{ + return totalCount_; +} + +int ListNodeLabelsResult::getPageSize()const +{ + return pageSize_; +} + +int ListNodeLabelsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListNodeLabelsResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListNodeLabelsResult::getData()const +{ + return data_; +} + +int ListNodeLabelsResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/ListPersistentVolumeClaimRequest.cc b/retailcloud/src/model/ListPersistentVolumeClaimRequest.cc new file mode 100644 index 000000000..8211be411 --- /dev/null +++ b/retailcloud/src/model/ListPersistentVolumeClaimRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ListPersistentVolumeClaimRequest; + +ListPersistentVolumeClaimRequest::ListPersistentVolumeClaimRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ListPersistentVolumeClaim") +{ + setMethod(HttpRequest::Method::Post); +} + +ListPersistentVolumeClaimRequest::~ListPersistentVolumeClaimRequest() +{} + +long ListPersistentVolumeClaimRequest::getAppId()const +{ + return appId_; +} + +void ListPersistentVolumeClaimRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +int ListPersistentVolumeClaimRequest::getPageSize()const +{ + return pageSize_; +} + +void ListPersistentVolumeClaimRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long ListPersistentVolumeClaimRequest::getEnvId()const +{ + return envId_; +} + +void ListPersistentVolumeClaimRequest::setEnvId(long envId) +{ + envId_ = envId; + setParameter("EnvId", std::to_string(envId)); +} + +int ListPersistentVolumeClaimRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListPersistentVolumeClaimRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/retailcloud/src/model/ListPersistentVolumeClaimResult.cc b/retailcloud/src/model/ListPersistentVolumeClaimResult.cc new file mode 100644 index 000000000..7c316e52b --- /dev/null +++ b/retailcloud/src/model/ListPersistentVolumeClaimResult.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::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ListPersistentVolumeClaimResult::ListPersistentVolumeClaimResult() : + ServiceResult() +{} + +ListPersistentVolumeClaimResult::ListPersistentVolumeClaimResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPersistentVolumeClaimResult::~ListPersistentVolumeClaimResult() +{} + +void ListPersistentVolumeClaimResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["PersistentVolumeClaimDetail"]; + for (auto valueDataPersistentVolumeClaimDetail : allDataNode) + { + PersistentVolumeClaimDetail dataObject; + if(!valueDataPersistentVolumeClaimDetail["Name"].isNull()) + dataObject.name = valueDataPersistentVolumeClaimDetail["Name"].asString(); + if(!valueDataPersistentVolumeClaimDetail["Capacity"].isNull()) + dataObject.capacity = valueDataPersistentVolumeClaimDetail["Capacity"].asString(); + if(!valueDataPersistentVolumeClaimDetail["AccessModes"].isNull()) + dataObject.accessModes = valueDataPersistentVolumeClaimDetail["AccessModes"].asString(); + if(!valueDataPersistentVolumeClaimDetail["Status"].isNull()) + dataObject.status = valueDataPersistentVolumeClaimDetail["Status"].asString(); + if(!valueDataPersistentVolumeClaimDetail["StorageClass"].isNull()) + dataObject.storageClass = valueDataPersistentVolumeClaimDetail["StorageClass"].asString(); + if(!valueDataPersistentVolumeClaimDetail["VolumeName"].isNull()) + dataObject.volumeName = valueDataPersistentVolumeClaimDetail["VolumeName"].asString(); + if(!valueDataPersistentVolumeClaimDetail["CreateTime"].isNull()) + dataObject.createTime = valueDataPersistentVolumeClaimDetail["CreateTime"].asString(); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + +} + +long ListPersistentVolumeClaimResult::getTotalCount()const +{ + return totalCount_; +} + +int ListPersistentVolumeClaimResult::getPageSize()const +{ + return pageSize_; +} + +int ListPersistentVolumeClaimResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListPersistentVolumeClaimResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListPersistentVolumeClaimResult::getData()const +{ + return data_; +} + +int ListPersistentVolumeClaimResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/ListPersistentVolumeRequest.cc b/retailcloud/src/model/ListPersistentVolumeRequest.cc new file mode 100644 index 000000000..8ca9d8808 --- /dev/null +++ b/retailcloud/src/model/ListPersistentVolumeRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ListPersistentVolumeRequest; + +ListPersistentVolumeRequest::ListPersistentVolumeRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ListPersistentVolume") +{ + setMethod(HttpRequest::Method::Post); +} + +ListPersistentVolumeRequest::~ListPersistentVolumeRequest() +{} + +int ListPersistentVolumeRequest::getPageSize()const +{ + return pageSize_; +} + +void ListPersistentVolumeRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +int ListPersistentVolumeRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListPersistentVolumeRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setBodyParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListPersistentVolumeRequest::getClusterInstanceId()const +{ + return clusterInstanceId_; +} + +void ListPersistentVolumeRequest::setClusterInstanceId(const std::string& clusterInstanceId) +{ + clusterInstanceId_ = clusterInstanceId; + setBodyParameter("ClusterInstanceId", clusterInstanceId); +} + diff --git a/retailcloud/src/model/ListPersistentVolumeResult.cc b/retailcloud/src/model/ListPersistentVolumeResult.cc new file mode 100644 index 000000000..999741620 --- /dev/null +++ b/retailcloud/src/model/ListPersistentVolumeResult.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::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ListPersistentVolumeResult::ListPersistentVolumeResult() : + ServiceResult() +{} + +ListPersistentVolumeResult::ListPersistentVolumeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPersistentVolumeResult::~ListPersistentVolumeResult() +{} + +void ListPersistentVolumeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["PersistentVolumeDetail"]; + for (auto valueDataPersistentVolumeDetail : allDataNode) + { + PersistentVolumeDetail dataObject; + if(!valueDataPersistentVolumeDetail["Name"].isNull()) + dataObject.name = valueDataPersistentVolumeDetail["Name"].asString(); + if(!valueDataPersistentVolumeDetail["Capacity"].isNull()) + dataObject.capacity = valueDataPersistentVolumeDetail["Capacity"].asString(); + if(!valueDataPersistentVolumeDetail["AccessModes"].isNull()) + dataObject.accessModes = valueDataPersistentVolumeDetail["AccessModes"].asString(); + if(!valueDataPersistentVolumeDetail["ReclaimPolicy"].isNull()) + dataObject.reclaimPolicy = valueDataPersistentVolumeDetail["ReclaimPolicy"].asString(); + if(!valueDataPersistentVolumeDetail["Status"].isNull()) + dataObject.status = valueDataPersistentVolumeDetail["Status"].asString(); + if(!valueDataPersistentVolumeDetail["PvcName"].isNull()) + dataObject.pvcName = valueDataPersistentVolumeDetail["PvcName"].asString(); + if(!valueDataPersistentVolumeDetail["MountDir"].isNull()) + dataObject.mountDir = valueDataPersistentVolumeDetail["MountDir"].asString(); + if(!valueDataPersistentVolumeDetail["StorageClass"].isNull()) + dataObject.storageClass = valueDataPersistentVolumeDetail["StorageClass"].asString(); + if(!valueDataPersistentVolumeDetail["Reason"].isNull()) + dataObject.reason = valueDataPersistentVolumeDetail["Reason"].asString(); + if(!valueDataPersistentVolumeDetail["CreateTime"].isNull()) + dataObject.createTime = valueDataPersistentVolumeDetail["CreateTime"].asString(); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +long ListPersistentVolumeResult::getTotalCount()const +{ + return totalCount_; +} + +int ListPersistentVolumeResult::getPageSize()const +{ + return pageSize_; +} + +int ListPersistentVolumeResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListPersistentVolumeResult::getErrMsg()const +{ + return errMsg_; +} + +std::vector ListPersistentVolumeResult::getData()const +{ + return data_; +} + +int ListPersistentVolumeResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/ListPodsRequest.cc b/retailcloud/src/model/ListPodsRequest.cc new file mode 100644 index 000000000..c81f3b421 --- /dev/null +++ b/retailcloud/src/model/ListPodsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ListPodsRequest; + +ListPodsRequest::ListPodsRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ListPods") +{ + setMethod(HttpRequest::Method::Post); +} + +ListPodsRequest::~ListPodsRequest() +{} + +std::vector ListPodsRequest::getStatusList()const +{ + return statusList_; +} + +void ListPodsRequest::setStatusList(const std::vector& statusList) +{ + statusList_ = statusList; + for(int dep1 = 0; dep1!= statusList.size(); dep1++) { + setBodyParameter("StatusList."+ std::to_string(dep1), std::to_string(statusList.at(dep1))); + } +} + +long ListPodsRequest::getDeployOrderId()const +{ + return deployOrderId_; +} + +void ListPodsRequest::setDeployOrderId(long deployOrderId) +{ + deployOrderId_ = deployOrderId; + setParameter("DeployOrderId", std::to_string(deployOrderId)); +} + +int ListPodsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListPodsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListPodsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListPodsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::vector ListPodsRequest::getResultList()const +{ + return resultList_; +} + +void ListPodsRequest::setResultList(const std::vector& resultList) +{ + resultList_ = resultList; + for(int dep1 = 0; dep1!= resultList.size(); dep1++) { + setBodyParameter("ResultList."+ std::to_string(dep1), std::to_string(resultList.at(dep1))); + } +} + diff --git a/retailcloud/src/model/ListPodsResult.cc b/retailcloud/src/model/ListPodsResult.cc new file mode 100644 index 000000000..b468dd8c6 --- /dev/null +++ b/retailcloud/src/model/ListPodsResult.cc @@ -0,0 +1,130 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ListPodsResult::ListPodsResult() : + ServiceResult() +{} + +ListPodsResult::ListPodsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPodsResult::~ListPodsResult() +{} + +void ListPodsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["PodDetail"]; + for (auto valueDataPodDetail : allDataNode) + { + PodDetail dataObject; + if(!valueDataPodDetail["AppInstanceId"].isNull()) + dataObject.appInstanceId = valueDataPodDetail["AppInstanceId"].asString(); + if(!valueDataPodDetail["DeployOrderId"].isNull()) + dataObject.deployOrderId = std::stol(valueDataPodDetail["DeployOrderId"].asString()); + if(!valueDataPodDetail["DeployPartitionNum"].isNull()) + dataObject.deployPartitionNum = std::stoi(valueDataPodDetail["DeployPartitionNum"].asString()); + if(!valueDataPodDetail["GroupName"].isNull()) + dataObject.groupName = valueDataPodDetail["GroupName"].asString(); + if(!valueDataPodDetail["HostIp"].isNull()) + dataObject.hostIp = valueDataPodDetail["HostIp"].asString(); + if(!valueDataPodDetail["HostName"].isNull()) + dataObject.hostName = valueDataPodDetail["HostName"].asString(); + if(!valueDataPodDetail["PodIp"].isNull()) + dataObject.podIp = valueDataPodDetail["PodIp"].asString(); + if(!valueDataPodDetail["Region"].isNull()) + dataObject.region = valueDataPodDetail["Region"].asString(); + if(!valueDataPodDetail["Result"].isNull()) + dataObject.result = std::stoi(valueDataPodDetail["Result"].asString()); + if(!valueDataPodDetail["ResultName"].isNull()) + dataObject.resultName = valueDataPodDetail["ResultName"].asString(); + if(!valueDataPodDetail["StartTime"].isNull()) + dataObject.startTime = valueDataPodDetail["StartTime"].asString(); + if(!valueDataPodDetail["Status"].isNull()) + dataObject.status = std::stoi(valueDataPodDetail["Status"].asString()); + if(!valueDataPodDetail["StatusName"].isNull()) + dataObject.statusName = valueDataPodDetail["StatusName"].asString(); + if(!valueDataPodDetail["UpdateTime"].isNull()) + dataObject.updateTime = valueDataPodDetail["UpdateTime"].asString(); + auto allDeployStepsNode = allDataNode["DeploySteps"]["DeployStep"]; + for (auto allDataNodeDeployStepsDeployStep : allDeployStepsNode) + { + PodDetail::DeployStep deployStepsObject; + if(!allDataNodeDeployStepsDeployStep["Status"].isNull()) + deployStepsObject.status = allDataNodeDeployStepsDeployStep["Status"].asString(); + if(!allDataNodeDeployStepsDeployStep["StepCode"].isNull()) + deployStepsObject.stepCode = allDataNodeDeployStepsDeployStep["StepCode"].asString(); + if(!allDataNodeDeployStepsDeployStep["StepName"].isNull()) + deployStepsObject.stepName = allDataNodeDeployStepsDeployStep["StepName"].asString(); + dataObject.deploySteps.push_back(deployStepsObject); + } + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListPodsResult::getTotalCount()const +{ + return totalCount_; +} + +int ListPodsResult::getPageSize()const +{ + return pageSize_; +} + +int ListPodsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListPodsResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListPodsResult::getData()const +{ + return data_; +} + +int ListPodsResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/ListServicesRequest.cc b/retailcloud/src/model/ListServicesRequest.cc new file mode 100644 index 000000000..40d1dbbd8 --- /dev/null +++ b/retailcloud/src/model/ListServicesRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ListServicesRequest; + +ListServicesRequest::ListServicesRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ListServices") +{ + setMethod(HttpRequest::Method::Post); +} + +ListServicesRequest::~ListServicesRequest() +{} + +std::string ListServicesRequest::getServiceType()const +{ + return serviceType_; +} + +void ListServicesRequest::setServiceType(const std::string& serviceType) +{ + serviceType_ = serviceType; + setParameter("ServiceType", serviceType); +} + +long ListServicesRequest::getAppId()const +{ + return appId_; +} + +void ListServicesRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string ListServicesRequest::getName()const +{ + return name_; +} + +void ListServicesRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +int ListServicesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListServicesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long ListServicesRequest::getEnvId()const +{ + return envId_; +} + +void ListServicesRequest::setEnvId(long envId) +{ + envId_ = envId; + setParameter("EnvId", std::to_string(envId)); +} + +int ListServicesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListServicesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/retailcloud/src/model/ListServicesResult.cc b/retailcloud/src/model/ListServicesResult.cc new file mode 100644 index 000000000..0f4fdfbb0 --- /dev/null +++ b/retailcloud/src/model/ListServicesResult.cc @@ -0,0 +1,136 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ListServicesResult::ListServicesResult() : + ServiceResult() +{} + +ListServicesResult::ListServicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListServicesResult::~ListServicesResult() +{} + +void ListServicesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["ServiceInstance"]; + for (auto valueDataServiceInstance : allDataNode) + { + ServiceInstance dataObject; + if(!valueDataServiceInstance["AppId"].isNull()) + dataObject.appId = std::stol(valueDataServiceInstance["AppId"].asString()); + if(!valueDataServiceInstance["EnvId"].isNull()) + dataObject.envId = std::stol(valueDataServiceInstance["EnvId"].asString()); + if(!valueDataServiceInstance["Headless"].isNull()) + dataObject.headless = valueDataServiceInstance["Headless"].asString() == "true"; + if(!valueDataServiceInstance["K8sServiceId"].isNull()) + dataObject.k8sServiceId = valueDataServiceInstance["K8sServiceId"].asString(); + if(!valueDataServiceInstance["Name"].isNull()) + dataObject.name = valueDataServiceInstance["Name"].asString(); + if(!valueDataServiceInstance["ServiceId"].isNull()) + dataObject.serviceId = std::stol(valueDataServiceInstance["ServiceId"].asString()); + if(!valueDataServiceInstance["ServiceType"].isNull()) + dataObject.serviceType = valueDataServiceInstance["ServiceType"].asString(); + if(!valueDataServiceInstance["ClusterIP"].isNull()) + dataObject.clusterIP = valueDataServiceInstance["ClusterIP"].asString(); + auto allPortMappingsNode = allDataNode["PortMappings"]["ServicePortMapping"]; + for (auto allDataNodePortMappingsServicePortMapping : allPortMappingsNode) + { + ServiceInstance::ServicePortMapping portMappingsObject; + if(!allDataNodePortMappingsServicePortMapping["Name"].isNull()) + portMappingsObject.name = allDataNodePortMappingsServicePortMapping["Name"].asString(); + if(!allDataNodePortMappingsServicePortMapping["NodePort"].isNull()) + portMappingsObject.nodePort = std::stoi(allDataNodePortMappingsServicePortMapping["NodePort"].asString()); + if(!allDataNodePortMappingsServicePortMapping["Port"].isNull()) + portMappingsObject.port = std::stoi(allDataNodePortMappingsServicePortMapping["Port"].asString()); + if(!allDataNodePortMappingsServicePortMapping["Protocol"].isNull()) + portMappingsObject.protocol = allDataNodePortMappingsServicePortMapping["Protocol"].asString(); + if(!allDataNodePortMappingsServicePortMapping["TargetPort"].isNull()) + portMappingsObject.targetPort = allDataNodePortMappingsServicePortMapping["TargetPort"].asString(); + dataObject.portMappings.push_back(portMappingsObject); + } + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["ClusterIP"].isNull()) + clusterIP_ = value["ClusterIP"].asString(); + if(!value["ClusterIP"].isNull()) + clusterIP1_ = value["ClusterIP"].asString(); + +} + +std::string ListServicesResult::getClusterIP()const +{ + return clusterIP_; +} + +long ListServicesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListServicesResult::getClusterIP1()const +{ + return clusterIP1_; +} + +int ListServicesResult::getPageSize()const +{ + return pageSize_; +} + +int ListServicesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListServicesResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListServicesResult::getData()const +{ + return data_; +} + +int ListServicesResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/ListSlbAPsRequest.cc b/retailcloud/src/model/ListSlbAPsRequest.cc new file mode 100644 index 000000000..9821c3a23 --- /dev/null +++ b/retailcloud/src/model/ListSlbAPsRequest.cc @@ -0,0 +1,119 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ListSlbAPsRequest; + +ListSlbAPsRequest::ListSlbAPsRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ListSlbAPs") +{ + setMethod(HttpRequest::Method::Post); +} + +ListSlbAPsRequest::~ListSlbAPsRequest() +{} + +std::vector ListSlbAPsRequest::getProtocolList()const +{ + return protocolList_; +} + +void ListSlbAPsRequest::setProtocolList(const std::vector& protocolList) +{ + protocolList_ = protocolList; + for(int dep1 = 0; dep1!= protocolList.size(); dep1++) { + setBodyParameter("ProtocolList."+ std::to_string(dep1), protocolList.at(dep1)); + } +} + +std::string ListSlbAPsRequest::getSlbId()const +{ + return slbId_; +} + +void ListSlbAPsRequest::setSlbId(const std::string& slbId) +{ + slbId_ = slbId; + setParameter("SlbId", slbId); +} + +long ListSlbAPsRequest::getAppId()const +{ + return appId_; +} + +void ListSlbAPsRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::string ListSlbAPsRequest::getName()const +{ + return name_; +} + +void ListSlbAPsRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +int ListSlbAPsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListSlbAPsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long ListSlbAPsRequest::getEnvId()const +{ + return envId_; +} + +void ListSlbAPsRequest::setEnvId(long envId) +{ + envId_ = envId; + setParameter("EnvId", std::to_string(envId)); +} + +std::string ListSlbAPsRequest::getNetworkMode()const +{ + return networkMode_; +} + +void ListSlbAPsRequest::setNetworkMode(const std::string& networkMode) +{ + networkMode_ = networkMode; + setParameter("NetworkMode", networkMode); +} + +int ListSlbAPsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListSlbAPsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/retailcloud/src/model/ListSlbAPsResult.cc b/retailcloud/src/model/ListSlbAPsResult.cc new file mode 100644 index 000000000..7021c30c7 --- /dev/null +++ b/retailcloud/src/model/ListSlbAPsResult.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::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ListSlbAPsResult::ListSlbAPsResult() : + ServiceResult() +{} + +ListSlbAPsResult::ListSlbAPsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSlbAPsResult::~ListSlbAPsResult() +{} + +void ListSlbAPsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["SlbAPInstance"]; + for (auto valueDataSlbAPInstance : allDataNode) + { + SlbAPInstance dataObject; + if(!valueDataSlbAPInstance["AppId"].isNull()) + dataObject.appId = std::stol(valueDataSlbAPInstance["AppId"].asString()); + if(!valueDataSlbAPInstance["CookieTimeout"].isNull()) + dataObject.cookieTimeout = std::stoi(valueDataSlbAPInstance["CookieTimeout"].asString()); + if(!valueDataSlbAPInstance["EnvId"].isNull()) + dataObject.envId = std::stol(valueDataSlbAPInstance["EnvId"].asString()); + if(!valueDataSlbAPInstance["EstablishedTimeout"].isNull()) + dataObject.establishedTimeout = std::stoi(valueDataSlbAPInstance["EstablishedTimeout"].asString()); + if(!valueDataSlbAPInstance["ListenerPort"].isNull()) + dataObject.listenerPort = std::stoi(valueDataSlbAPInstance["ListenerPort"].asString()); + if(!valueDataSlbAPInstance["Name"].isNull()) + dataObject.name = valueDataSlbAPInstance["Name"].asString(); + if(!valueDataSlbAPInstance["NetworkMode"].isNull()) + dataObject.networkMode = valueDataSlbAPInstance["NetworkMode"].asString(); + if(!valueDataSlbAPInstance["Protocol"].isNull()) + dataObject.protocol = valueDataSlbAPInstance["Protocol"].asString(); + if(!valueDataSlbAPInstance["RealServerPort"].isNull()) + dataObject.realServerPort = std::stoi(valueDataSlbAPInstance["RealServerPort"].asString()); + if(!valueDataSlbAPInstance["SlbAPId"].isNull()) + dataObject.slbAPId = std::stol(valueDataSlbAPInstance["SlbAPId"].asString()); + if(!valueDataSlbAPInstance["SlbId"].isNull()) + dataObject.slbId = valueDataSlbAPInstance["SlbId"].asString(); + if(!valueDataSlbAPInstance["SlbIp"].isNull()) + dataObject.slbIp = valueDataSlbAPInstance["SlbIp"].asString(); + if(!valueDataSlbAPInstance["SslCertId"].isNull()) + dataObject.sslCertId = valueDataSlbAPInstance["SslCertId"].asString(); + if(!valueDataSlbAPInstance["StickySession"].isNull()) + dataObject.stickySession = std::stoi(valueDataSlbAPInstance["StickySession"].asString()); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListSlbAPsResult::getTotalCount()const +{ + return totalCount_; +} + +int ListSlbAPsResult::getPageSize()const +{ + return pageSize_; +} + +int ListSlbAPsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListSlbAPsResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListSlbAPsResult::getData()const +{ + return data_; +} + +int ListSlbAPsResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/ListUsersRequest.cc b/retailcloud/src/model/ListUsersRequest.cc new file mode 100644 index 000000000..141203dae --- /dev/null +++ b/retailcloud/src/model/ListUsersRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ListUsersRequest; + +ListUsersRequest::ListUsersRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ListUsers") +{ + setMethod(HttpRequest::Method::Get); +} + +ListUsersRequest::~ListUsersRequest() +{} + +int ListUsersRequest::getPageSize()const +{ + return pageSize_; +} + +void ListUsersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int ListUsersRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListUsersRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/retailcloud/src/model/ListUsersResult.cc b/retailcloud/src/model/ListUsersResult.cc new file mode 100644 index 000000000..97abce3c4 --- /dev/null +++ b/retailcloud/src/model/ListUsersResult.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ListUsersResult::ListUsersResult() : + ServiceResult() +{} + +ListUsersResult::ListUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUsersResult::~ListUsersResult() +{} + +void ListUsersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["ListUserResponse"]; + for (auto valueDataListUserResponse : allDataNode) + { + ListUserResponse dataObject; + if(!valueDataListUserResponse["UserId"].isNull()) + dataObject.userId = valueDataListUserResponse["UserId"].asString(); + if(!valueDataListUserResponse["UserType"].isNull()) + dataObject.userType = valueDataListUserResponse["UserType"].asString(); + if(!valueDataListUserResponse["RealName"].isNull()) + dataObject.realName = valueDataListUserResponse["RealName"].asString(); + data_.push_back(dataObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListUsersResult::getTotalCount()const +{ + return totalCount_; +} + +int ListUsersResult::getPageSize()const +{ + return pageSize_; +} + +int ListUsersResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListUsersResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListUsersResult::getData()const +{ + return data_; +} + +int ListUsersResult::getCode()const +{ + return code_; +} + diff --git a/retailcloud/src/model/ModifyServiceRequest.cc b/retailcloud/src/model/ModifyServiceRequest.cc new file mode 100644 index 000000000..70fdb007c --- /dev/null +++ b/retailcloud/src/model/ModifyServiceRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ModifyServiceRequest; + +ModifyServiceRequest::ModifyServiceRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ModifyService") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyServiceRequest::~ModifyServiceRequest() +{} + +std::string ModifyServiceRequest::getName()const +{ + return name_; +} + +void ModifyServiceRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::vector ModifyServiceRequest::getPortMappings()const +{ + return portMappings_; +} + +void ModifyServiceRequest::setPortMappings(const std::vector& portMappings) +{ + portMappings_ = portMappings; + for(int dep1 = 0; dep1!= portMappings.size(); dep1++) { + auto portMappingsObj = portMappings.at(dep1); + std::string portMappingsObjStr = "PortMappings." + std::to_string(dep1 + 1); + setParameter(portMappingsObjStr + ".Protocol", portMappingsObj.protocol); + setParameter(portMappingsObjStr + ".Port", std::to_string(portMappingsObj.port)); + setParameter(portMappingsObjStr + ".Name", portMappingsObj.name); + setParameter(portMappingsObjStr + ".NodePort", std::to_string(portMappingsObj.nodePort)); + setParameter(portMappingsObjStr + ".TargetPort", portMappingsObj.targetPort); + } +} + +long ModifyServiceRequest::getServiceId()const +{ + return serviceId_; +} + +void ModifyServiceRequest::setServiceId(long serviceId) +{ + serviceId_ = serviceId; + setParameter("ServiceId", std::to_string(serviceId)); +} + diff --git a/retailcloud/src/model/ModifyServiceResult.cc b/retailcloud/src/model/ModifyServiceResult.cc new file mode 100644 index 000000000..ea6d3a787 --- /dev/null +++ b/retailcloud/src/model/ModifyServiceResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ModifyServiceResult::ModifyServiceResult() : + ServiceResult() +{} + +ModifyServiceResult::ModifyServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyServiceResult::~ModifyServiceResult() +{} + +void ModifyServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ModifyServiceResult::getErrMsg()const +{ + return errMsg_; +} + +int ModifyServiceResult::getCode()const +{ + return code_; +} + +bool ModifyServiceResult::getSuccess()const +{ + return success_; +} + diff --git a/retailcloud/src/model/ModifySlbAPRequest.cc b/retailcloud/src/model/ModifySlbAPRequest.cc new file mode 100644 index 000000000..81f0d7199 --- /dev/null +++ b/retailcloud/src/model/ModifySlbAPRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ModifySlbAPRequest; + +ModifySlbAPRequest::ModifySlbAPRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ModifySlbAP") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifySlbAPRequest::~ModifySlbAPRequest() +{} + +std::string ModifySlbAPRequest::getSslCertId()const +{ + return sslCertId_; +} + +void ModifySlbAPRequest::setSslCertId(const std::string& sslCertId) +{ + sslCertId_ = sslCertId; + setParameter("SslCertId", sslCertId); +} + +int ModifySlbAPRequest::getEstablishedTimeout()const +{ + return establishedTimeout_; +} + +void ModifySlbAPRequest::setEstablishedTimeout(int establishedTimeout) +{ + establishedTimeout_ = establishedTimeout; + setParameter("EstablishedTimeout", std::to_string(establishedTimeout)); +} + +int ModifySlbAPRequest::getRealServerPort()const +{ + return realServerPort_; +} + +void ModifySlbAPRequest::setRealServerPort(int realServerPort) +{ + realServerPort_ = realServerPort; + setParameter("RealServerPort", std::to_string(realServerPort)); +} + +int ModifySlbAPRequest::getStickySession()const +{ + return stickySession_; +} + +void ModifySlbAPRequest::setStickySession(int stickySession) +{ + stickySession_ = stickySession; + setParameter("StickySession", std::to_string(stickySession)); +} + +int ModifySlbAPRequest::getCookieTimeout()const +{ + return cookieTimeout_; +} + +void ModifySlbAPRequest::setCookieTimeout(int cookieTimeout) +{ + cookieTimeout_ = cookieTimeout; + setParameter("CookieTimeout", std::to_string(cookieTimeout)); +} + +std::string ModifySlbAPRequest::getName()const +{ + return name_; +} + +void ModifySlbAPRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +long ModifySlbAPRequest::getSlbAPId()const +{ + return slbAPId_; +} + +void ModifySlbAPRequest::setSlbAPId(long slbAPId) +{ + slbAPId_ = slbAPId; + setParameter("SlbAPId", std::to_string(slbAPId)); +} + diff --git a/retailcloud/src/model/ModifySlbAPResult.cc b/retailcloud/src/model/ModifySlbAPResult.cc new file mode 100644 index 000000000..9fda7e41d --- /dev/null +++ b/retailcloud/src/model/ModifySlbAPResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ModifySlbAPResult::ModifySlbAPResult() : + ServiceResult() +{} + +ModifySlbAPResult::ModifySlbAPResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySlbAPResult::~ModifySlbAPResult() +{} + +void ModifySlbAPResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ModifySlbAPResult::getErrMsg()const +{ + return errMsg_; +} + +int ModifySlbAPResult::getCode()const +{ + return code_; +} + +bool ModifySlbAPResult::getSuccess()const +{ + return success_; +} + diff --git a/retailcloud/src/model/QueryClusterDetailRequest.cc b/retailcloud/src/model/QueryClusterDetailRequest.cc new file mode 100644 index 000000000..16cb6760b --- /dev/null +++ b/retailcloud/src/model/QueryClusterDetailRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::QueryClusterDetailRequest; + +QueryClusterDetailRequest::QueryClusterDetailRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "QueryClusterDetail") +{ + setMethod(HttpRequest::Method::Get); +} + +QueryClusterDetailRequest::~QueryClusterDetailRequest() +{} + +std::string QueryClusterDetailRequest::getClusterInstanceId()const +{ + return clusterInstanceId_; +} + +void QueryClusterDetailRequest::setClusterInstanceId(const std::string& clusterInstanceId) +{ + clusterInstanceId_ = clusterInstanceId; + setParameter("ClusterInstanceId", clusterInstanceId); +} + diff --git a/retailcloud/src/model/QueryClusterDetailResult.cc b/retailcloud/src/model/QueryClusterDetailResult.cc new file mode 100644 index 000000000..18422d719 --- /dev/null +++ b/retailcloud/src/model/QueryClusterDetailResult.cc @@ -0,0 +1,162 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +QueryClusterDetailResult::QueryClusterDetailResult() : + ServiceResult() +{} + +QueryClusterDetailResult::QueryClusterDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryClusterDetailResult::~QueryClusterDetailResult() +{} + +void QueryClusterDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + auto basicInfoNode = resultNode["BasicInfo"]; + if(!basicInfoNode["BusinessCode"].isNull()) + result_.basicInfo.businessCode = basicInfoNode["BusinessCode"].asString(); + if(!basicInfoNode["ClusterId"].isNull()) + result_.basicInfo.clusterId = std::stol(basicInfoNode["ClusterId"].asString()); + if(!basicInfoNode["ClusterInstanceId"].isNull()) + result_.basicInfo.clusterInstanceId = basicInfoNode["ClusterInstanceId"].asString(); + if(!basicInfoNode["ClusterName"].isNull()) + result_.basicInfo.clusterName = basicInfoNode["ClusterName"].asString(); + if(!basicInfoNode["EnvType"].isNull()) + result_.basicInfo.envType = basicInfoNode["EnvType"].asString(); + if(!basicInfoNode["HasInstallArmsPilot"].isNull()) + result_.basicInfo.hasInstallArmsPilot = basicInfoNode["HasInstallArmsPilot"].asString() == "true"; + if(!basicInfoNode["HasInstallLogController"].isNull()) + result_.basicInfo.hasInstallLogController = basicInfoNode["HasInstallLogController"].asString() == "true"; + if(!basicInfoNode["InstallArmsInProcess"].isNull()) + result_.basicInfo.installArmsInProcess = basicInfoNode["InstallArmsInProcess"].asString() == "true"; + if(!basicInfoNode["InstallLogInProcess"].isNull()) + result_.basicInfo.installLogInProcess = basicInfoNode["InstallLogInProcess"].asString() == "true"; + if(!basicInfoNode["MainUserId"].isNull()) + result_.basicInfo.mainUserId = basicInfoNode["MainUserId"].asString(); + if(!basicInfoNode["RegionId"].isNull()) + result_.basicInfo.regionId = basicInfoNode["RegionId"].asString(); + if(!basicInfoNode["RegionName"].isNull()) + result_.basicInfo.regionName = basicInfoNode["RegionName"].asString(); + if(!basicInfoNode["UserNick"].isNull()) + result_.basicInfo.userNick = basicInfoNode["UserNick"].asString(); + if(!basicInfoNode["VpcId"].isNull()) + result_.basicInfo.vpcId = basicInfoNode["VpcId"].asString(); + auto allEcsIds = basicInfoNode["EcsIds"]["String"]; + for (auto value : allEcsIds) + result_.basicInfo.ecsIds.push_back(value.asString()); + auto allVswitchs = basicInfoNode["Vswitchs"]["String"]; + for (auto value : allVswitchs) + result_.basicInfo.vswitchs.push_back(value.asString()); + auto instanceInfoNode = resultNode["InstanceInfo"]; + if(!instanceInfoNode["AllocatePodCount"].isNull()) + result_.instanceInfo.allocatePodCount = std::stoi(instanceInfoNode["AllocatePodCount"].asString()); + if(!instanceInfoNode["AppCount"].isNull()) + result_.instanceInfo.appCount = std::stoi(instanceInfoNode["AppCount"].asString()); + auto allAllocatedPodInfoList = instanceInfoNode["AllocatedPodInfoList"]["AllocatedPodInstanceInfo"]; + for (auto value : allAllocatedPodInfoList) + result_.instanceInfo.allocatedPodInfoList.push_back(value.asString()); + auto allAvailablePodInfoList = instanceInfoNode["AvailablePodInfoList"]["AvailablePodInstanceInfo"]; + for (auto value : allAvailablePodInfoList) + result_.instanceInfo.availablePodInfoList.push_back(value.asString()); + auto netInfoNode = resultNode["NetInfo"]; + if(!netInfoNode["NetPlugType"].isNull()) + result_.netInfo.netPlugType = netInfoNode["NetPlugType"].asString(); + if(!netInfoNode["ProdCIDR"].isNull()) + result_.netInfo.prodCIDR = netInfoNode["ProdCIDR"].asString(); + if(!netInfoNode["ServiceCIDR"].isNull()) + result_.netInfo.serviceCIDR = netInfoNode["ServiceCIDR"].asString(); + auto workLoadNode = resultNode["WorkLoad"]; + if(!workLoadNode["AllNodeCount"].isNull()) + result_.workLoad.allNodeCount = std::stoi(workLoadNode["AllNodeCount"].asString()); + if(!workLoadNode["AllocateAllPodCount"].isNull()) + result_.workLoad.allocateAllPodCount = std::stoi(workLoadNode["AllocateAllPodCount"].asString()); + if(!workLoadNode["AllocateAppPodCount"].isNull()) + result_.workLoad.allocateAppPodCount = std::stoi(workLoadNode["AllocateAppPodCount"].asString()); + if(!workLoadNode["CpuCapacityTotal"].isNull()) + result_.workLoad.cpuCapacityTotal = workLoadNode["CpuCapacityTotal"].asString(); + if(!workLoadNode["CpuLevel"].isNull()) + result_.workLoad.cpuLevel = workLoadNode["CpuLevel"].asString(); + if(!workLoadNode["CpuRequest"].isNull()) + result_.workLoad.cpuRequest = workLoadNode["CpuRequest"].asString(); + if(!workLoadNode["CpuRequestPercent"].isNull()) + result_.workLoad.cpuRequestPercent = workLoadNode["CpuRequestPercent"].asString(); + if(!workLoadNode["CpuTotal"].isNull()) + result_.workLoad.cpuTotal = workLoadNode["CpuTotal"].asString(); + if(!workLoadNode["CpuUse"].isNull()) + result_.workLoad.cpuUse = workLoadNode["CpuUse"].asString(); + if(!workLoadNode["CpuUsePercent"].isNull()) + result_.workLoad.cpuUsePercent = workLoadNode["CpuUsePercent"].asString(); + if(!workLoadNode["MemCapacityTotal"].isNull()) + result_.workLoad.memCapacityTotal = workLoadNode["MemCapacityTotal"].asString(); + if(!workLoadNode["MemLevel"].isNull()) + result_.workLoad.memLevel = workLoadNode["MemLevel"].asString(); + if(!workLoadNode["MemRequest"].isNull()) + result_.workLoad.memRequest = workLoadNode["MemRequest"].asString(); + if(!workLoadNode["MemRequestPercent"].isNull()) + result_.workLoad.memRequestPercent = workLoadNode["MemRequestPercent"].asString(); + if(!workLoadNode["MemTotal"].isNull()) + result_.workLoad.memTotal = workLoadNode["MemTotal"].asString(); + if(!workLoadNode["MemUse"].isNull()) + result_.workLoad.memUse = workLoadNode["MemUse"].asString(); + if(!workLoadNode["MemUsePercent"].isNull()) + result_.workLoad.memUsePercent = workLoadNode["MemUsePercent"].asString(); + auto allNodeWorkLoadList = resultNode["NodeWorkLoadList"]["ClusterNodeWorkLoad"]; + for (auto value : allNodeWorkLoadList) + result_.nodeWorkLoadList.push_back(value.asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string QueryClusterDetailResult::getErrMsg()const +{ + return errMsg_; +} + +int QueryClusterDetailResult::getCode()const +{ + return code_; +} + +bool QueryClusterDetailResult::getSuccess()const +{ + return success_; +} + +QueryClusterDetailResult::Result QueryClusterDetailResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/RemoveClusterNodeRequest.cc b/retailcloud/src/model/RemoveClusterNodeRequest.cc new file mode 100644 index 000000000..6c54bf1b5 --- /dev/null +++ b/retailcloud/src/model/RemoveClusterNodeRequest.cc @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::RemoveClusterNodeRequest; + +RemoveClusterNodeRequest::RemoveClusterNodeRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "RemoveClusterNode") +{ + setMethod(HttpRequest::Method::Post); +} + +RemoveClusterNodeRequest::~RemoveClusterNodeRequest() +{} + +std::vector RemoveClusterNodeRequest::getEcsInstanceIdList()const +{ + return ecsInstanceIdList_; +} + +void RemoveClusterNodeRequest::setEcsInstanceIdList(const std::vector& ecsInstanceIdList) +{ + ecsInstanceIdList_ = ecsInstanceIdList; + for(int dep1 = 0; dep1!= ecsInstanceIdList.size(); dep1++) { + setParameter("EcsInstanceIdList."+ std::to_string(dep1), ecsInstanceIdList.at(dep1)); + } +} + +std::string RemoveClusterNodeRequest::getClusterInstanceId()const +{ + return clusterInstanceId_; +} + +void RemoveClusterNodeRequest::setClusterInstanceId(const std::string& clusterInstanceId) +{ + clusterInstanceId_ = clusterInstanceId; + setParameter("ClusterInstanceId", clusterInstanceId); +} + diff --git a/retailcloud/src/model/RemoveClusterNodeResult.cc b/retailcloud/src/model/RemoveClusterNodeResult.cc new file mode 100644 index 000000000..8450d7f2b --- /dev/null +++ b/retailcloud/src/model/RemoveClusterNodeResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +RemoveClusterNodeResult::RemoveClusterNodeResult() : + ServiceResult() +{} + +RemoveClusterNodeResult::RemoveClusterNodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveClusterNodeResult::~RemoveClusterNodeResult() +{} + +void RemoveClusterNodeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Nonsense"].isNull()) + result_.nonsense = std::stoi(resultNode["Nonsense"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string RemoveClusterNodeResult::getErrMsg()const +{ + return errMsg_; +} + +int RemoveClusterNodeResult::getCode()const +{ + return code_; +} + +bool RemoveClusterNodeResult::getSuccess()const +{ + return success_; +} + +RemoveClusterNodeResult::Result RemoveClusterNodeResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/ResourceStatusNotifyRequest.cc b/retailcloud/src/model/ResourceStatusNotifyRequest.cc new file mode 100644 index 000000000..f915fc5ab --- /dev/null +++ b/retailcloud/src/model/ResourceStatusNotifyRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ResourceStatusNotifyRequest; + +ResourceStatusNotifyRequest::ResourceStatusNotifyRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ResourceStatusNotify") +{ + setMethod(HttpRequest::Method::Post); +} + +ResourceStatusNotifyRequest::~ResourceStatusNotifyRequest() +{} + +std::string ResourceStatusNotifyRequest::getData()const +{ + return data_; +} + +void ResourceStatusNotifyRequest::setData(const std::string& data) +{ + data_ = data; + setBodyParameter("Data", data); +} + diff --git a/retailcloud/src/model/ResourceStatusNotifyResult.cc b/retailcloud/src/model/ResourceStatusNotifyResult.cc new file mode 100644 index 000000000..524bd7aa8 --- /dev/null +++ b/retailcloud/src/model/ResourceStatusNotifyResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ResourceStatusNotifyResult::ResourceStatusNotifyResult() : + ServiceResult() +{} + +ResourceStatusNotifyResult::ResourceStatusNotifyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResourceStatusNotifyResult::~ResourceStatusNotifyResult() +{} + +void ResourceStatusNotifyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/retailcloud/src/model/ResumeDeployRequest.cc b/retailcloud/src/model/ResumeDeployRequest.cc new file mode 100644 index 000000000..e199b8bd1 --- /dev/null +++ b/retailcloud/src/model/ResumeDeployRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ResumeDeployRequest; + +ResumeDeployRequest::ResumeDeployRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ResumeDeploy") +{ + setMethod(HttpRequest::Method::Post); +} + +ResumeDeployRequest::~ResumeDeployRequest() +{} + +long ResumeDeployRequest::getDeployOrderId()const +{ + return deployOrderId_; +} + +void ResumeDeployRequest::setDeployOrderId(long deployOrderId) +{ + deployOrderId_ = deployOrderId; + setParameter("DeployOrderId", std::to_string(deployOrderId)); +} + diff --git a/retailcloud/src/model/ResumeDeployResult.cc b/retailcloud/src/model/ResumeDeployResult.cc new file mode 100644 index 000000000..609db4d02 --- /dev/null +++ b/retailcloud/src/model/ResumeDeployResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ResumeDeployResult::ResumeDeployResult() : + ServiceResult() +{} + +ResumeDeployResult::ResumeDeployResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResumeDeployResult::~ResumeDeployResult() +{} + +void ResumeDeployResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ResumeDeployResult::getErrMsg()const +{ + return errMsg_; +} + +int ResumeDeployResult::getCode()const +{ + return code_; +} + +bool ResumeDeployResult::getSuccess()const +{ + return success_; +} + diff --git a/retailcloud/src/model/ScaleAppRequest.cc b/retailcloud/src/model/ScaleAppRequest.cc new file mode 100644 index 000000000..3afcc992c --- /dev/null +++ b/retailcloud/src/model/ScaleAppRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::ScaleAppRequest; + +ScaleAppRequest::ScaleAppRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "ScaleApp") +{ + setMethod(HttpRequest::Method::Post); +} + +ScaleAppRequest::~ScaleAppRequest() +{} + +int ScaleAppRequest::getReplicas()const +{ + return replicas_; +} + +void ScaleAppRequest::setReplicas(int replicas) +{ + replicas_ = replicas; + setParameter("Replicas", std::to_string(replicas)); +} + +long ScaleAppRequest::getEnvId()const +{ + return envId_; +} + +void ScaleAppRequest::setEnvId(long envId) +{ + envId_ = envId; + setParameter("EnvId", std::to_string(envId)); +} + diff --git a/retailcloud/src/model/ScaleAppResult.cc b/retailcloud/src/model/ScaleAppResult.cc new file mode 100644 index 000000000..74acb8d02 --- /dev/null +++ b/retailcloud/src/model/ScaleAppResult.cc @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +ScaleAppResult::ScaleAppResult() : + ServiceResult() +{} + +ScaleAppResult::ScaleAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ScaleAppResult::~ScaleAppResult() +{} + +void ScaleAppResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Admitted"].isNull()) + result_.admitted = resultNode["Admitted"].asString() == "true"; + if(!resultNode["BusinessCode"].isNull()) + result_.businessCode = resultNode["BusinessCode"].asString(); + if(!resultNode["DeployOrderId"].isNull()) + result_.deployOrderId = std::stol(resultNode["DeployOrderId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ScaleAppResult::getErrMsg()const +{ + return errMsg_; +} + +int ScaleAppResult::getCode()const +{ + return code_; +} + +bool ScaleAppResult::getSuccess()const +{ + return success_; +} + +ScaleAppResult::Result ScaleAppResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/SetDeployPauseTypeRequest.cc b/retailcloud/src/model/SetDeployPauseTypeRequest.cc new file mode 100644 index 000000000..7fe7aa8a9 --- /dev/null +++ b/retailcloud/src/model/SetDeployPauseTypeRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::SetDeployPauseTypeRequest; + +SetDeployPauseTypeRequest::SetDeployPauseTypeRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "SetDeployPauseType") +{ + setMethod(HttpRequest::Method::Post); +} + +SetDeployPauseTypeRequest::~SetDeployPauseTypeRequest() +{} + +std::string SetDeployPauseTypeRequest::getDeployPauseType()const +{ + return deployPauseType_; +} + +void SetDeployPauseTypeRequest::setDeployPauseType(const std::string& deployPauseType) +{ + deployPauseType_ = deployPauseType; + setParameter("DeployPauseType", deployPauseType); +} + +long SetDeployPauseTypeRequest::getDeployOrderId()const +{ + return deployOrderId_; +} + +void SetDeployPauseTypeRequest::setDeployOrderId(long deployOrderId) +{ + deployOrderId_ = deployOrderId; + setParameter("DeployOrderId", std::to_string(deployOrderId)); +} + diff --git a/retailcloud/src/model/SetDeployPauseTypeResult.cc b/retailcloud/src/model/SetDeployPauseTypeResult.cc new file mode 100644 index 000000000..417f6a468 --- /dev/null +++ b/retailcloud/src/model/SetDeployPauseTypeResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +SetDeployPauseTypeResult::SetDeployPauseTypeResult() : + ServiceResult() +{} + +SetDeployPauseTypeResult::SetDeployPauseTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetDeployPauseTypeResult::~SetDeployPauseTypeResult() +{} + +void SetDeployPauseTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string SetDeployPauseTypeResult::getErrMsg()const +{ + return errMsg_; +} + +int SetDeployPauseTypeResult::getCode()const +{ + return code_; +} + +bool SetDeployPauseTypeResult::getSuccess()const +{ + return success_; +} + diff --git a/retailcloud/src/model/UnbindNodeLabelRequest.cc b/retailcloud/src/model/UnbindNodeLabelRequest.cc new file mode 100644 index 000000000..3dc8e14ee --- /dev/null +++ b/retailcloud/src/model/UnbindNodeLabelRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::UnbindNodeLabelRequest; + +UnbindNodeLabelRequest::UnbindNodeLabelRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "UnbindNodeLabel") +{ + setMethod(HttpRequest::Method::Post); +} + +UnbindNodeLabelRequest::~UnbindNodeLabelRequest() +{} + +std::string UnbindNodeLabelRequest::getInstanceId()const +{ + return instanceId_; +} + +void UnbindNodeLabelRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string UnbindNodeLabelRequest::getLabelKey()const +{ + return labelKey_; +} + +void UnbindNodeLabelRequest::setLabelKey(const std::string& labelKey) +{ + labelKey_ = labelKey; + setParameter("LabelKey", labelKey); +} + +std::string UnbindNodeLabelRequest::getLabelValue()const +{ + return labelValue_; +} + +void UnbindNodeLabelRequest::setLabelValue(const std::string& labelValue) +{ + labelValue_ = labelValue; + setParameter("LabelValue", labelValue); +} + +std::string UnbindNodeLabelRequest::getClusterId()const +{ + return clusterId_; +} + +void UnbindNodeLabelRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + diff --git a/retailcloud/src/model/UnbindNodeLabelResult.cc b/retailcloud/src/model/UnbindNodeLabelResult.cc new file mode 100644 index 000000000..10aa2f75b --- /dev/null +++ b/retailcloud/src/model/UnbindNodeLabelResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +UnbindNodeLabelResult::UnbindNodeLabelResult() : + ServiceResult() +{} + +UnbindNodeLabelResult::UnbindNodeLabelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnbindNodeLabelResult::~UnbindNodeLabelResult() +{} + +void UnbindNodeLabelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UnbindNodeLabelResult::getErrMsg()const +{ + return errMsg_; +} + +int UnbindNodeLabelResult::getCode()const +{ + return code_; +} + +bool UnbindNodeLabelResult::getSuccess()const +{ + return success_; +} + diff --git a/retailcloud/src/model/UpdateAppRequest.cc b/retailcloud/src/model/UpdateAppRequest.cc new file mode 100644 index 000000000..4af8c31dc --- /dev/null +++ b/retailcloud/src/model/UpdateAppRequest.cc @@ -0,0 +1,125 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::UpdateAppRequest; + +UpdateAppRequest::UpdateAppRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "UpdateApp") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateAppRequest::~UpdateAppRequest() +{} + +std::string UpdateAppRequest::getBizTitle()const +{ + return bizTitle_; +} + +void UpdateAppRequest::setBizTitle(const std::string& bizTitle) +{ + bizTitle_ = bizTitle; + setBodyParameter("BizTitle", bizTitle); +} + +std::string UpdateAppRequest::getServiceType()const +{ + return serviceType_; +} + +void UpdateAppRequest::setServiceType(const std::string& serviceType) +{ + serviceType_ = serviceType; + setBodyParameter("ServiceType", serviceType); +} + +std::vector UpdateAppRequest::getUserRoles()const +{ + return userRoles_; +} + +void UpdateAppRequest::setUserRoles(const std::vector& userRoles) +{ + userRoles_ = userRoles; + for(int dep1 = 0; dep1!= userRoles.size(); dep1++) { + auto userRolesObj = userRoles.at(dep1); + std::string userRolesObjStr = "UserRoles." + std::to_string(dep1 + 1); + setParameter(userRolesObjStr + ".RoleName", userRolesObj.roleName); + setParameter(userRolesObjStr + ".UserType", userRolesObj.userType); + setParameter(userRolesObjStr + ".UserId", userRolesObj.userId); + } +} + +long UpdateAppRequest::getAppId()const +{ + return appId_; +} + +void UpdateAppRequest::setAppId(long appId) +{ + appId_ = appId; + setBodyParameter("AppId", std::to_string(appId)); +} + +std::string UpdateAppRequest::getOperatingSystem()const +{ + return operatingSystem_; +} + +void UpdateAppRequest::setOperatingSystem(const std::string& operatingSystem) +{ + operatingSystem_ = operatingSystem; + setBodyParameter("OperatingSystem", operatingSystem); +} + +std::string UpdateAppRequest::getDescription()const +{ + return description_; +} + +void UpdateAppRequest::setDescription(const std::string& description) +{ + description_ = description; + setBodyParameter("Description", description); +} + +std::string UpdateAppRequest::getLanguage()const +{ + return language_; +} + +void UpdateAppRequest::setLanguage(const std::string& language) +{ + language_ = language; + setBodyParameter("Language", language); +} + +std::vector UpdateAppRequest::getMiddleWareIdList()const +{ + return middleWareIdList_; +} + +void UpdateAppRequest::setMiddleWareIdList(const std::vector& middleWareIdList) +{ + middleWareIdList_ = middleWareIdList; + for(int dep1 = 0; dep1!= middleWareIdList.size(); dep1++) { + setBodyParameter("MiddleWareIdList."+ std::to_string(dep1), std::to_string(middleWareIdList.at(dep1))); + } +} + diff --git a/retailcloud/src/model/UpdateAppResult.cc b/retailcloud/src/model/UpdateAppResult.cc new file mode 100644 index 000000000..bd0668842 --- /dev/null +++ b/retailcloud/src/model/UpdateAppResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +UpdateAppResult::UpdateAppResult() : + ServiceResult() +{} + +UpdateAppResult::UpdateAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAppResult::~UpdateAppResult() +{} + +void UpdateAppResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Success"].isNull()) + result_.success = resultNode["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string UpdateAppResult::getErrMsg()const +{ + return errMsg_; +} + +int UpdateAppResult::getCode()const +{ + return code_; +} + +UpdateAppResult::Result UpdateAppResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/UpdateDeployConfigRequest.cc b/retailcloud/src/model/UpdateDeployConfigRequest.cc new file mode 100644 index 000000000..96b712b82 --- /dev/null +++ b/retailcloud/src/model/UpdateDeployConfigRequest.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 + +using AlibabaCloud::Retailcloud::Model::UpdateDeployConfigRequest; + +UpdateDeployConfigRequest::UpdateDeployConfigRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "UpdateDeployConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateDeployConfigRequest::~UpdateDeployConfigRequest() +{} + +std::string UpdateDeployConfigRequest::getCodePath()const +{ + return codePath_; +} + +void UpdateDeployConfigRequest::setCodePath(const std::string& codePath) +{ + codePath_ = codePath; + setParameter("CodePath", codePath); +} + +std::vector UpdateDeployConfigRequest::getConfigMapList()const +{ + return configMapList_; +} + +void UpdateDeployConfigRequest::setConfigMapList(const std::vector& configMapList) +{ + configMapList_ = configMapList; + for(int dep1 = 0; dep1!= configMapList.size(); dep1++) { + setParameter("ConfigMapList."+ std::to_string(dep1), configMapList.at(dep1)); + } +} + +std::string UpdateDeployConfigRequest::getConfigMap()const +{ + return configMap_; +} + +void UpdateDeployConfigRequest::setConfigMap(const std::string& configMap) +{ + configMap_ = configMap; + setParameter("ConfigMap", configMap); +} + +std::string UpdateDeployConfigRequest::getStatefulSet()const +{ + return statefulSet_; +} + +void UpdateDeployConfigRequest::setStatefulSet(const std::string& statefulSet) +{ + statefulSet_ = statefulSet; + setParameter("StatefulSet", statefulSet); +} + +long UpdateDeployConfigRequest::getAppId()const +{ + return appId_; +} + +void UpdateDeployConfigRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +std::vector UpdateDeployConfigRequest::getSecretList()const +{ + return secretList_; +} + +void UpdateDeployConfigRequest::setSecretList(const std::vector& secretList) +{ + secretList_ = secretList; + for(int dep1 = 0; dep1!= secretList.size(); dep1++) { + setParameter("SecretList."+ std::to_string(dep1), secretList.at(dep1)); + } +} + +long UpdateDeployConfigRequest::getId()const +{ + return id_; +} + +void UpdateDeployConfigRequest::setId(long id) +{ + id_ = id; + setParameter("Id", std::to_string(id)); +} + +std::string UpdateDeployConfigRequest::getDeployment()const +{ + return deployment_; +} + +void UpdateDeployConfigRequest::setDeployment(const std::string& deployment) +{ + deployment_ = deployment; + setParameter("Deployment", deployment); +} + diff --git a/retailcloud/src/model/UpdateDeployConfigResult.cc b/retailcloud/src/model/UpdateDeployConfigResult.cc new file mode 100644 index 000000000..1909d9a94 --- /dev/null +++ b/retailcloud/src/model/UpdateDeployConfigResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +UpdateDeployConfigResult::UpdateDeployConfigResult() : + ServiceResult() +{} + +UpdateDeployConfigResult::UpdateDeployConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateDeployConfigResult::~UpdateDeployConfigResult() +{} + +void UpdateDeployConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Success"].isNull()) + result_.success = resultNode["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string UpdateDeployConfigResult::getErrMsg()const +{ + return errMsg_; +} + +int UpdateDeployConfigResult::getCode()const +{ + return code_; +} + +UpdateDeployConfigResult::Result UpdateDeployConfigResult::getResult()const +{ + return result_; +} + diff --git a/retailcloud/src/model/UpdateEnvironmentRequest.cc b/retailcloud/src/model/UpdateEnvironmentRequest.cc new file mode 100644 index 000000000..381be5b5c --- /dev/null +++ b/retailcloud/src/model/UpdateEnvironmentRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Retailcloud::Model::UpdateEnvironmentRequest; + +UpdateEnvironmentRequest::UpdateEnvironmentRequest() : + RpcServiceRequest("retailcloud", "2018-03-13", "UpdateEnvironment") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateEnvironmentRequest::~UpdateEnvironmentRequest() +{} + +int UpdateEnvironmentRequest::getReplicas()const +{ + return replicas_; +} + +void UpdateEnvironmentRequest::setReplicas(int replicas) +{ + replicas_ = replicas; + setParameter("Replicas", std::to_string(replicas)); +} + +long UpdateEnvironmentRequest::getAppId()const +{ + return appId_; +} + +void UpdateEnvironmentRequest::setAppId(long appId) +{ + appId_ = appId; + setParameter("AppId", std::to_string(appId)); +} + +long UpdateEnvironmentRequest::getAppSchemaId()const +{ + return appSchemaId_; +} + +void UpdateEnvironmentRequest::setAppSchemaId(long appSchemaId) +{ + appSchemaId_ = appSchemaId; + setParameter("AppSchemaId", std::to_string(appSchemaId)); +} + +long UpdateEnvironmentRequest::getAppEnvId()const +{ + return appEnvId_; +} + +void UpdateEnvironmentRequest::setAppEnvId(long appEnvId) +{ + appEnvId_ = appEnvId; + setParameter("AppEnvId", std::to_string(appEnvId)); +} + diff --git a/retailcloud/src/model/UpdateEnvironmentResult.cc b/retailcloud/src/model/UpdateEnvironmentResult.cc new file mode 100644 index 000000000..a096a3459 --- /dev/null +++ b/retailcloud/src/model/UpdateEnvironmentResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Retailcloud; +using namespace AlibabaCloud::Retailcloud::Model; + +UpdateEnvironmentResult::UpdateEnvironmentResult() : + ServiceResult() +{} + +UpdateEnvironmentResult::UpdateEnvironmentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateEnvironmentResult::~UpdateEnvironmentResult() +{} + +void UpdateEnvironmentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Success"].isNull()) + result_.success = resultNode["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ErrMsg"].isNull()) + errMsg_ = value["ErrMsg"].asString(); + +} + +std::string UpdateEnvironmentResult::getErrMsg()const +{ + return errMsg_; +} + +int UpdateEnvironmentResult::getCode()const +{ + return code_; +} + +UpdateEnvironmentResult::Result UpdateEnvironmentResult::getResult()const +{ + return result_; +} +