diff --git a/CHANGELOG b/CHANGELOG index 914944d04..6dc050617 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-06-30 Version: 1.36.1164 +- CreateMigrationJob SDK. + 2022-06-30 Version: 1.36.1163 - Update ListFaceDbs. diff --git a/VERSION b/VERSION index e5c6c6479..b68e44f6d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1163 \ No newline at end of file +1.36.1164 \ No newline at end of file diff --git a/apds/CMakeLists.txt b/apds/CMakeLists.txt new file mode 100644 index 000000000..03f9e4900 --- /dev/null +++ b/apds/CMakeLists.txt @@ -0,0 +1,202 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(apds_public_header + include/alibabacloud/apds/ApdsClient.h + include/alibabacloud/apds/ApdsExport.h ) + +set(apds_public_header_model + include/alibabacloud/apds/model/CreateFileJobRequest.h + include/alibabacloud/apds/model/CreateFileJobResult.h + include/alibabacloud/apds/model/CreateMigrationGroupRequest.h + include/alibabacloud/apds/model/CreateMigrationGroupResult.h + include/alibabacloud/apds/model/CreateMigrationJobRequest.h + include/alibabacloud/apds/model/CreateMigrationJobResult.h + include/alibabacloud/apds/model/CreateSurveyJobRequest.h + include/alibabacloud/apds/model/CreateSurveyJobResult.h + include/alibabacloud/apds/model/CreateSurveyJobOfflineRequest.h + include/alibabacloud/apds/model/CreateSurveyJobOfflineResult.h + include/alibabacloud/apds/model/DeleteMigrationGroupRequest.h + include/alibabacloud/apds/model/DeleteMigrationGroupResult.h + include/alibabacloud/apds/model/DeleteMigrationJobRequest.h + include/alibabacloud/apds/model/DeleteMigrationJobResult.h + include/alibabacloud/apds/model/DeleteOssFileRequest.h + include/alibabacloud/apds/model/DeleteOssFileResult.h + include/alibabacloud/apds/model/DeleteSurveyJobRequest.h + include/alibabacloud/apds/model/DeleteSurveyJobResult.h + include/alibabacloud/apds/model/DeleteSurveyResourcesRequest.h + include/alibabacloud/apds/model/DeleteSurveyResourcesResult.h + include/alibabacloud/apds/model/DescribeMigrationJobConfigRequest.h + include/alibabacloud/apds/model/DescribeMigrationJobConfigResult.h + include/alibabacloud/apds/model/DescribeMigrationJobCountRequest.h + include/alibabacloud/apds/model/DescribeMigrationJobCountResult.h + include/alibabacloud/apds/model/DescribeOssStsRequest.h + include/alibabacloud/apds/model/DescribeOssStsResult.h + include/alibabacloud/apds/model/DescribeSummaryByStatusRequest.h + include/alibabacloud/apds/model/DescribeSummaryByStatusResult.h + include/alibabacloud/apds/model/DescribeSummaryByStatusAndGroupRequest.h + include/alibabacloud/apds/model/DescribeSummaryByStatusAndGroupResult.h + include/alibabacloud/apds/model/DescribeSurveyJobRequest.h + include/alibabacloud/apds/model/DescribeSurveyJobResult.h + include/alibabacloud/apds/model/DescribeSurveyJobCountRequest.h + include/alibabacloud/apds/model/DescribeSurveyJobCountResult.h + include/alibabacloud/apds/model/DescribeSurveyResourceTagRequest.h + include/alibabacloud/apds/model/DescribeSurveyResourceTagResult.h + include/alibabacloud/apds/model/DescribeSurveyTemplateRequest.h + include/alibabacloud/apds/model/DescribeSurveyTemplateResult.h + include/alibabacloud/apds/model/ListMigrationJobsRequest.h + include/alibabacloud/apds/model/ListMigrationJobsResult.h + include/alibabacloud/apds/model/ListRegionsRequest.h + include/alibabacloud/apds/model/ListRegionsResult.h + include/alibabacloud/apds/model/ListSurveyJobDownLoadJobsRequest.h + include/alibabacloud/apds/model/ListSurveyJobDownLoadJobsResult.h + include/alibabacloud/apds/model/ListSurveyJobsRequest.h + include/alibabacloud/apds/model/ListSurveyJobsResult.h + include/alibabacloud/apds/model/ListSurveyResourceByMigrationGroupsRequest.h + include/alibabacloud/apds/model/ListSurveyResourceByMigrationGroupsResult.h + include/alibabacloud/apds/model/ListSurveyResourceConnectionsRequest.h + include/alibabacloud/apds/model/ListSurveyResourceConnectionsResult.h + include/alibabacloud/apds/model/ListSurveyResourceTypesRequest.h + include/alibabacloud/apds/model/ListSurveyResourceTypesResult.h + include/alibabacloud/apds/model/ListSurveyResourcesDetailRequest.h + include/alibabacloud/apds/model/ListSurveyResourcesDetailResult.h + include/alibabacloud/apds/model/RecoverMigrationJobRequest.h + include/alibabacloud/apds/model/RecoverMigrationJobResult.h + include/alibabacloud/apds/model/StopSyncMigrationJobRequest.h + include/alibabacloud/apds/model/StopSyncMigrationJobResult.h + include/alibabacloud/apds/model/SyncMigrationJobRequest.h + include/alibabacloud/apds/model/SyncMigrationJobResult.h ) + +set(apds_src + src/ApdsClient.cc + src/model/CreateFileJobRequest.cc + src/model/CreateFileJobResult.cc + src/model/CreateMigrationGroupRequest.cc + src/model/CreateMigrationGroupResult.cc + src/model/CreateMigrationJobRequest.cc + src/model/CreateMigrationJobResult.cc + src/model/CreateSurveyJobRequest.cc + src/model/CreateSurveyJobResult.cc + src/model/CreateSurveyJobOfflineRequest.cc + src/model/CreateSurveyJobOfflineResult.cc + src/model/DeleteMigrationGroupRequest.cc + src/model/DeleteMigrationGroupResult.cc + src/model/DeleteMigrationJobRequest.cc + src/model/DeleteMigrationJobResult.cc + src/model/DeleteOssFileRequest.cc + src/model/DeleteOssFileResult.cc + src/model/DeleteSurveyJobRequest.cc + src/model/DeleteSurveyJobResult.cc + src/model/DeleteSurveyResourcesRequest.cc + src/model/DeleteSurveyResourcesResult.cc + src/model/DescribeMigrationJobConfigRequest.cc + src/model/DescribeMigrationJobConfigResult.cc + src/model/DescribeMigrationJobCountRequest.cc + src/model/DescribeMigrationJobCountResult.cc + src/model/DescribeOssStsRequest.cc + src/model/DescribeOssStsResult.cc + src/model/DescribeSummaryByStatusRequest.cc + src/model/DescribeSummaryByStatusResult.cc + src/model/DescribeSummaryByStatusAndGroupRequest.cc + src/model/DescribeSummaryByStatusAndGroupResult.cc + src/model/DescribeSurveyJobRequest.cc + src/model/DescribeSurveyJobResult.cc + src/model/DescribeSurveyJobCountRequest.cc + src/model/DescribeSurveyJobCountResult.cc + src/model/DescribeSurveyResourceTagRequest.cc + src/model/DescribeSurveyResourceTagResult.cc + src/model/DescribeSurveyTemplateRequest.cc + src/model/DescribeSurveyTemplateResult.cc + src/model/ListMigrationJobsRequest.cc + src/model/ListMigrationJobsResult.cc + src/model/ListRegionsRequest.cc + src/model/ListRegionsResult.cc + src/model/ListSurveyJobDownLoadJobsRequest.cc + src/model/ListSurveyJobDownLoadJobsResult.cc + src/model/ListSurveyJobsRequest.cc + src/model/ListSurveyJobsResult.cc + src/model/ListSurveyResourceByMigrationGroupsRequest.cc + src/model/ListSurveyResourceByMigrationGroupsResult.cc + src/model/ListSurveyResourceConnectionsRequest.cc + src/model/ListSurveyResourceConnectionsResult.cc + src/model/ListSurveyResourceTypesRequest.cc + src/model/ListSurveyResourceTypesResult.cc + src/model/ListSurveyResourcesDetailRequest.cc + src/model/ListSurveyResourcesDetailResult.cc + src/model/RecoverMigrationJobRequest.cc + src/model/RecoverMigrationJobResult.cc + src/model/StopSyncMigrationJobRequest.cc + src/model/StopSyncMigrationJobResult.cc + src/model/SyncMigrationJobRequest.cc + src/model/SyncMigrationJobResult.cc ) + +add_library(apds ${LIB_TYPE} + ${apds_public_header} + ${apds_public_header_model} + ${apds_src}) + +set_target_properties(apds + 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}apds + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(apds + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_APDS_LIBRARY) +endif() + +target_include_directories(apds + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(apds + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(apds + jsoncpp) + target_include_directories(apds + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(apds + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(apds + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(apds + PRIVATE /usr/include/jsoncpp) + target_link_libraries(apds + jsoncpp) +endif() + +install(FILES ${apds_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/apds) +install(FILES ${apds_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/apds/model) +install(TARGETS apds + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/ApdsClient.h b/apds/include/alibabacloud/apds/ApdsClient.h new file mode 100644 index 000000000..e9551d17a --- /dev/null +++ b/apds/include/alibabacloud/apds/ApdsClient.h @@ -0,0 +1,286 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_APDSCLIENT_H_ +#define ALIBABACLOUD_APDS_APDSCLIENT_H_ + +#include +#include +#include +#include +#include "ApdsExport.h" +#include "model/CreateFileJobRequest.h" +#include "model/CreateFileJobResult.h" +#include "model/CreateMigrationGroupRequest.h" +#include "model/CreateMigrationGroupResult.h" +#include "model/CreateMigrationJobRequest.h" +#include "model/CreateMigrationJobResult.h" +#include "model/CreateSurveyJobRequest.h" +#include "model/CreateSurveyJobResult.h" +#include "model/CreateSurveyJobOfflineRequest.h" +#include "model/CreateSurveyJobOfflineResult.h" +#include "model/DeleteMigrationGroupRequest.h" +#include "model/DeleteMigrationGroupResult.h" +#include "model/DeleteMigrationJobRequest.h" +#include "model/DeleteMigrationJobResult.h" +#include "model/DeleteOssFileRequest.h" +#include "model/DeleteOssFileResult.h" +#include "model/DeleteSurveyJobRequest.h" +#include "model/DeleteSurveyJobResult.h" +#include "model/DeleteSurveyResourcesRequest.h" +#include "model/DeleteSurveyResourcesResult.h" +#include "model/DescribeMigrationJobConfigRequest.h" +#include "model/DescribeMigrationJobConfigResult.h" +#include "model/DescribeMigrationJobCountRequest.h" +#include "model/DescribeMigrationJobCountResult.h" +#include "model/DescribeOssStsRequest.h" +#include "model/DescribeOssStsResult.h" +#include "model/DescribeSummaryByStatusRequest.h" +#include "model/DescribeSummaryByStatusResult.h" +#include "model/DescribeSummaryByStatusAndGroupRequest.h" +#include "model/DescribeSummaryByStatusAndGroupResult.h" +#include "model/DescribeSurveyJobRequest.h" +#include "model/DescribeSurveyJobResult.h" +#include "model/DescribeSurveyJobCountRequest.h" +#include "model/DescribeSurveyJobCountResult.h" +#include "model/DescribeSurveyResourceTagRequest.h" +#include "model/DescribeSurveyResourceTagResult.h" +#include "model/DescribeSurveyTemplateRequest.h" +#include "model/DescribeSurveyTemplateResult.h" +#include "model/ListMigrationJobsRequest.h" +#include "model/ListMigrationJobsResult.h" +#include "model/ListRegionsRequest.h" +#include "model/ListRegionsResult.h" +#include "model/ListSurveyJobDownLoadJobsRequest.h" +#include "model/ListSurveyJobDownLoadJobsResult.h" +#include "model/ListSurveyJobsRequest.h" +#include "model/ListSurveyJobsResult.h" +#include "model/ListSurveyResourceByMigrationGroupsRequest.h" +#include "model/ListSurveyResourceByMigrationGroupsResult.h" +#include "model/ListSurveyResourceConnectionsRequest.h" +#include "model/ListSurveyResourceConnectionsResult.h" +#include "model/ListSurveyResourceTypesRequest.h" +#include "model/ListSurveyResourceTypesResult.h" +#include "model/ListSurveyResourcesDetailRequest.h" +#include "model/ListSurveyResourcesDetailResult.h" +#include "model/RecoverMigrationJobRequest.h" +#include "model/RecoverMigrationJobResult.h" +#include "model/StopSyncMigrationJobRequest.h" +#include "model/StopSyncMigrationJobResult.h" +#include "model/SyncMigrationJobRequest.h" +#include "model/SyncMigrationJobResult.h" + + +namespace AlibabaCloud +{ + namespace Apds + { + class ALIBABACLOUD_APDS_EXPORT ApdsClient : public RoaServiceClient + { + public: + typedef Outcome CreateFileJobOutcome; + typedef std::future CreateFileJobOutcomeCallable; + typedef std::function&)> CreateFileJobAsyncHandler; + typedef Outcome CreateMigrationGroupOutcome; + typedef std::future CreateMigrationGroupOutcomeCallable; + typedef std::function&)> CreateMigrationGroupAsyncHandler; + typedef Outcome CreateMigrationJobOutcome; + typedef std::future CreateMigrationJobOutcomeCallable; + typedef std::function&)> CreateMigrationJobAsyncHandler; + typedef Outcome CreateSurveyJobOutcome; + typedef std::future CreateSurveyJobOutcomeCallable; + typedef std::function&)> CreateSurveyJobAsyncHandler; + typedef Outcome CreateSurveyJobOfflineOutcome; + typedef std::future CreateSurveyJobOfflineOutcomeCallable; + typedef std::function&)> CreateSurveyJobOfflineAsyncHandler; + typedef Outcome DeleteMigrationGroupOutcome; + typedef std::future DeleteMigrationGroupOutcomeCallable; + typedef std::function&)> DeleteMigrationGroupAsyncHandler; + typedef Outcome DeleteMigrationJobOutcome; + typedef std::future DeleteMigrationJobOutcomeCallable; + typedef std::function&)> DeleteMigrationJobAsyncHandler; + typedef Outcome DeleteOssFileOutcome; + typedef std::future DeleteOssFileOutcomeCallable; + typedef std::function&)> DeleteOssFileAsyncHandler; + typedef Outcome DeleteSurveyJobOutcome; + typedef std::future DeleteSurveyJobOutcomeCallable; + typedef std::function&)> DeleteSurveyJobAsyncHandler; + typedef Outcome DeleteSurveyResourcesOutcome; + typedef std::future DeleteSurveyResourcesOutcomeCallable; + typedef std::function&)> DeleteSurveyResourcesAsyncHandler; + typedef Outcome DescribeMigrationJobConfigOutcome; + typedef std::future DescribeMigrationJobConfigOutcomeCallable; + typedef std::function&)> DescribeMigrationJobConfigAsyncHandler; + typedef Outcome DescribeMigrationJobCountOutcome; + typedef std::future DescribeMigrationJobCountOutcomeCallable; + typedef std::function&)> DescribeMigrationJobCountAsyncHandler; + typedef Outcome DescribeOssStsOutcome; + typedef std::future DescribeOssStsOutcomeCallable; + typedef std::function&)> DescribeOssStsAsyncHandler; + typedef Outcome DescribeSummaryByStatusOutcome; + typedef std::future DescribeSummaryByStatusOutcomeCallable; + typedef std::function&)> DescribeSummaryByStatusAsyncHandler; + typedef Outcome DescribeSummaryByStatusAndGroupOutcome; + typedef std::future DescribeSummaryByStatusAndGroupOutcomeCallable; + typedef std::function&)> DescribeSummaryByStatusAndGroupAsyncHandler; + typedef Outcome DescribeSurveyJobOutcome; + typedef std::future DescribeSurveyJobOutcomeCallable; + typedef std::function&)> DescribeSurveyJobAsyncHandler; + typedef Outcome DescribeSurveyJobCountOutcome; + typedef std::future DescribeSurveyJobCountOutcomeCallable; + typedef std::function&)> DescribeSurveyJobCountAsyncHandler; + typedef Outcome DescribeSurveyResourceTagOutcome; + typedef std::future DescribeSurveyResourceTagOutcomeCallable; + typedef std::function&)> DescribeSurveyResourceTagAsyncHandler; + typedef Outcome DescribeSurveyTemplateOutcome; + typedef std::future DescribeSurveyTemplateOutcomeCallable; + typedef std::function&)> DescribeSurveyTemplateAsyncHandler; + typedef Outcome ListMigrationJobsOutcome; + typedef std::future ListMigrationJobsOutcomeCallable; + typedef std::function&)> ListMigrationJobsAsyncHandler; + typedef Outcome ListRegionsOutcome; + typedef std::future ListRegionsOutcomeCallable; + typedef std::function&)> ListRegionsAsyncHandler; + typedef Outcome ListSurveyJobDownLoadJobsOutcome; + typedef std::future ListSurveyJobDownLoadJobsOutcomeCallable; + typedef std::function&)> ListSurveyJobDownLoadJobsAsyncHandler; + typedef Outcome ListSurveyJobsOutcome; + typedef std::future ListSurveyJobsOutcomeCallable; + typedef std::function&)> ListSurveyJobsAsyncHandler; + typedef Outcome ListSurveyResourceByMigrationGroupsOutcome; + typedef std::future ListSurveyResourceByMigrationGroupsOutcomeCallable; + typedef std::function&)> ListSurveyResourceByMigrationGroupsAsyncHandler; + typedef Outcome ListSurveyResourceConnectionsOutcome; + typedef std::future ListSurveyResourceConnectionsOutcomeCallable; + typedef std::function&)> ListSurveyResourceConnectionsAsyncHandler; + typedef Outcome ListSurveyResourceTypesOutcome; + typedef std::future ListSurveyResourceTypesOutcomeCallable; + typedef std::function&)> ListSurveyResourceTypesAsyncHandler; + typedef Outcome ListSurveyResourcesDetailOutcome; + typedef std::future ListSurveyResourcesDetailOutcomeCallable; + typedef std::function&)> ListSurveyResourcesDetailAsyncHandler; + typedef Outcome RecoverMigrationJobOutcome; + typedef std::future RecoverMigrationJobOutcomeCallable; + typedef std::function&)> RecoverMigrationJobAsyncHandler; + typedef Outcome StopSyncMigrationJobOutcome; + typedef std::future StopSyncMigrationJobOutcomeCallable; + typedef std::function&)> StopSyncMigrationJobAsyncHandler; + typedef Outcome SyncMigrationJobOutcome; + typedef std::future SyncMigrationJobOutcomeCallable; + typedef std::function&)> SyncMigrationJobAsyncHandler; + + ApdsClient(const Credentials &credentials, const ClientConfiguration &configuration); + ApdsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + ApdsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~ApdsClient(); + CreateFileJobOutcome createFileJob(const Model::CreateFileJobRequest &request)const; + void createFileJobAsync(const Model::CreateFileJobRequest& request, const CreateFileJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFileJobOutcomeCallable createFileJobCallable(const Model::CreateFileJobRequest& request) const; + CreateMigrationGroupOutcome createMigrationGroup(const Model::CreateMigrationGroupRequest &request)const; + void createMigrationGroupAsync(const Model::CreateMigrationGroupRequest& request, const CreateMigrationGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateMigrationGroupOutcomeCallable createMigrationGroupCallable(const Model::CreateMigrationGroupRequest& request) const; + CreateMigrationJobOutcome createMigrationJob(const Model::CreateMigrationJobRequest &request)const; + void createMigrationJobAsync(const Model::CreateMigrationJobRequest& request, const CreateMigrationJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateMigrationJobOutcomeCallable createMigrationJobCallable(const Model::CreateMigrationJobRequest& request) const; + CreateSurveyJobOutcome createSurveyJob(const Model::CreateSurveyJobRequest &request)const; + void createSurveyJobAsync(const Model::CreateSurveyJobRequest& request, const CreateSurveyJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSurveyJobOutcomeCallable createSurveyJobCallable(const Model::CreateSurveyJobRequest& request) const; + CreateSurveyJobOfflineOutcome createSurveyJobOffline(const Model::CreateSurveyJobOfflineRequest &request)const; + void createSurveyJobOfflineAsync(const Model::CreateSurveyJobOfflineRequest& request, const CreateSurveyJobOfflineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSurveyJobOfflineOutcomeCallable createSurveyJobOfflineCallable(const Model::CreateSurveyJobOfflineRequest& request) const; + DeleteMigrationGroupOutcome deleteMigrationGroup(const Model::DeleteMigrationGroupRequest &request)const; + void deleteMigrationGroupAsync(const Model::DeleteMigrationGroupRequest& request, const DeleteMigrationGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteMigrationGroupOutcomeCallable deleteMigrationGroupCallable(const Model::DeleteMigrationGroupRequest& request) const; + DeleteMigrationJobOutcome deleteMigrationJob(const Model::DeleteMigrationJobRequest &request)const; + void deleteMigrationJobAsync(const Model::DeleteMigrationJobRequest& request, const DeleteMigrationJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteMigrationJobOutcomeCallable deleteMigrationJobCallable(const Model::DeleteMigrationJobRequest& request) const; + DeleteOssFileOutcome deleteOssFile(const Model::DeleteOssFileRequest &request)const; + void deleteOssFileAsync(const Model::DeleteOssFileRequest& request, const DeleteOssFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteOssFileOutcomeCallable deleteOssFileCallable(const Model::DeleteOssFileRequest& request) const; + DeleteSurveyJobOutcome deleteSurveyJob(const Model::DeleteSurveyJobRequest &request)const; + void deleteSurveyJobAsync(const Model::DeleteSurveyJobRequest& request, const DeleteSurveyJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSurveyJobOutcomeCallable deleteSurveyJobCallable(const Model::DeleteSurveyJobRequest& request) const; + DeleteSurveyResourcesOutcome deleteSurveyResources(const Model::DeleteSurveyResourcesRequest &request)const; + void deleteSurveyResourcesAsync(const Model::DeleteSurveyResourcesRequest& request, const DeleteSurveyResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSurveyResourcesOutcomeCallable deleteSurveyResourcesCallable(const Model::DeleteSurveyResourcesRequest& request) const; + DescribeMigrationJobConfigOutcome describeMigrationJobConfig(const Model::DescribeMigrationJobConfigRequest &request)const; + void describeMigrationJobConfigAsync(const Model::DescribeMigrationJobConfigRequest& request, const DescribeMigrationJobConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMigrationJobConfigOutcomeCallable describeMigrationJobConfigCallable(const Model::DescribeMigrationJobConfigRequest& request) const; + DescribeMigrationJobCountOutcome describeMigrationJobCount(const Model::DescribeMigrationJobCountRequest &request)const; + void describeMigrationJobCountAsync(const Model::DescribeMigrationJobCountRequest& request, const DescribeMigrationJobCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMigrationJobCountOutcomeCallable describeMigrationJobCountCallable(const Model::DescribeMigrationJobCountRequest& request) const; + DescribeOssStsOutcome describeOssSts(const Model::DescribeOssStsRequest &request)const; + void describeOssStsAsync(const Model::DescribeOssStsRequest& request, const DescribeOssStsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOssStsOutcomeCallable describeOssStsCallable(const Model::DescribeOssStsRequest& request) const; + DescribeSummaryByStatusOutcome describeSummaryByStatus(const Model::DescribeSummaryByStatusRequest &request)const; + void describeSummaryByStatusAsync(const Model::DescribeSummaryByStatusRequest& request, const DescribeSummaryByStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSummaryByStatusOutcomeCallable describeSummaryByStatusCallable(const Model::DescribeSummaryByStatusRequest& request) const; + DescribeSummaryByStatusAndGroupOutcome describeSummaryByStatusAndGroup(const Model::DescribeSummaryByStatusAndGroupRequest &request)const; + void describeSummaryByStatusAndGroupAsync(const Model::DescribeSummaryByStatusAndGroupRequest& request, const DescribeSummaryByStatusAndGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSummaryByStatusAndGroupOutcomeCallable describeSummaryByStatusAndGroupCallable(const Model::DescribeSummaryByStatusAndGroupRequest& request) const; + DescribeSurveyJobOutcome describeSurveyJob(const Model::DescribeSurveyJobRequest &request)const; + void describeSurveyJobAsync(const Model::DescribeSurveyJobRequest& request, const DescribeSurveyJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSurveyJobOutcomeCallable describeSurveyJobCallable(const Model::DescribeSurveyJobRequest& request) const; + DescribeSurveyJobCountOutcome describeSurveyJobCount(const Model::DescribeSurveyJobCountRequest &request)const; + void describeSurveyJobCountAsync(const Model::DescribeSurveyJobCountRequest& request, const DescribeSurveyJobCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSurveyJobCountOutcomeCallable describeSurveyJobCountCallable(const Model::DescribeSurveyJobCountRequest& request) const; + DescribeSurveyResourceTagOutcome describeSurveyResourceTag(const Model::DescribeSurveyResourceTagRequest &request)const; + void describeSurveyResourceTagAsync(const Model::DescribeSurveyResourceTagRequest& request, const DescribeSurveyResourceTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSurveyResourceTagOutcomeCallable describeSurveyResourceTagCallable(const Model::DescribeSurveyResourceTagRequest& request) const; + DescribeSurveyTemplateOutcome describeSurveyTemplate(const Model::DescribeSurveyTemplateRequest &request)const; + void describeSurveyTemplateAsync(const Model::DescribeSurveyTemplateRequest& request, const DescribeSurveyTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSurveyTemplateOutcomeCallable describeSurveyTemplateCallable(const Model::DescribeSurveyTemplateRequest& request) const; + ListMigrationJobsOutcome listMigrationJobs(const Model::ListMigrationJobsRequest &request)const; + void listMigrationJobsAsync(const Model::ListMigrationJobsRequest& request, const ListMigrationJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListMigrationJobsOutcomeCallable listMigrationJobsCallable(const Model::ListMigrationJobsRequest& request) const; + ListRegionsOutcome listRegions(const Model::ListRegionsRequest &request)const; + void listRegionsAsync(const Model::ListRegionsRequest& request, const ListRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRegionsOutcomeCallable listRegionsCallable(const Model::ListRegionsRequest& request) const; + ListSurveyJobDownLoadJobsOutcome listSurveyJobDownLoadJobs(const Model::ListSurveyJobDownLoadJobsRequest &request)const; + void listSurveyJobDownLoadJobsAsync(const Model::ListSurveyJobDownLoadJobsRequest& request, const ListSurveyJobDownLoadJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSurveyJobDownLoadJobsOutcomeCallable listSurveyJobDownLoadJobsCallable(const Model::ListSurveyJobDownLoadJobsRequest& request) const; + ListSurveyJobsOutcome listSurveyJobs(const Model::ListSurveyJobsRequest &request)const; + void listSurveyJobsAsync(const Model::ListSurveyJobsRequest& request, const ListSurveyJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSurveyJobsOutcomeCallable listSurveyJobsCallable(const Model::ListSurveyJobsRequest& request) const; + ListSurveyResourceByMigrationGroupsOutcome listSurveyResourceByMigrationGroups(const Model::ListSurveyResourceByMigrationGroupsRequest &request)const; + void listSurveyResourceByMigrationGroupsAsync(const Model::ListSurveyResourceByMigrationGroupsRequest& request, const ListSurveyResourceByMigrationGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSurveyResourceByMigrationGroupsOutcomeCallable listSurveyResourceByMigrationGroupsCallable(const Model::ListSurveyResourceByMigrationGroupsRequest& request) const; + ListSurveyResourceConnectionsOutcome listSurveyResourceConnections(const Model::ListSurveyResourceConnectionsRequest &request)const; + void listSurveyResourceConnectionsAsync(const Model::ListSurveyResourceConnectionsRequest& request, const ListSurveyResourceConnectionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSurveyResourceConnectionsOutcomeCallable listSurveyResourceConnectionsCallable(const Model::ListSurveyResourceConnectionsRequest& request) const; + ListSurveyResourceTypesOutcome listSurveyResourceTypes(const Model::ListSurveyResourceTypesRequest &request)const; + void listSurveyResourceTypesAsync(const Model::ListSurveyResourceTypesRequest& request, const ListSurveyResourceTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSurveyResourceTypesOutcomeCallable listSurveyResourceTypesCallable(const Model::ListSurveyResourceTypesRequest& request) const; + ListSurveyResourcesDetailOutcome listSurveyResourcesDetail(const Model::ListSurveyResourcesDetailRequest &request)const; + void listSurveyResourcesDetailAsync(const Model::ListSurveyResourcesDetailRequest& request, const ListSurveyResourcesDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSurveyResourcesDetailOutcomeCallable listSurveyResourcesDetailCallable(const Model::ListSurveyResourcesDetailRequest& request) const; + RecoverMigrationJobOutcome recoverMigrationJob(const Model::RecoverMigrationJobRequest &request)const; + void recoverMigrationJobAsync(const Model::RecoverMigrationJobRequest& request, const RecoverMigrationJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RecoverMigrationJobOutcomeCallable recoverMigrationJobCallable(const Model::RecoverMigrationJobRequest& request) const; + StopSyncMigrationJobOutcome stopSyncMigrationJob(const Model::StopSyncMigrationJobRequest &request)const; + void stopSyncMigrationJobAsync(const Model::StopSyncMigrationJobRequest& request, const StopSyncMigrationJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopSyncMigrationJobOutcomeCallable stopSyncMigrationJobCallable(const Model::StopSyncMigrationJobRequest& request) const; + SyncMigrationJobOutcome syncMigrationJob(const Model::SyncMigrationJobRequest &request)const; + void syncMigrationJobAsync(const Model::SyncMigrationJobRequest& request, const SyncMigrationJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SyncMigrationJobOutcomeCallable syncMigrationJobCallable(const Model::SyncMigrationJobRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_APDS_APDSCLIENT_H_ diff --git a/apds/include/alibabacloud/apds/ApdsExport.h b/apds/include/alibabacloud/apds/ApdsExport.h new file mode 100644 index 000000000..b0acbb2ac --- /dev/null +++ b/apds/include/alibabacloud/apds/ApdsExport.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_APDS_APDSEXPORT_H_ +#define ALIBABACLOUD_APDS_APDSEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_APDS_LIBRARY) +# define ALIBABACLOUD_APDS_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_APDS_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_APDS_EXPORT +#endif + +#endif // !ALIBABACLOUD_APDS_APDSEXPORT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/CreateFileJobRequest.h b/apds/include/alibabacloud/apds/model/CreateFileJobRequest.h new file mode 100644 index 000000000..3f73d4bb4 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/CreateFileJobRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_CREATEFILEJOBREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_CREATEFILEJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT CreateFileJobRequest : public RoaServiceRequest { +public: + CreateFileJobRequest(); + ~CreateFileJobRequest(); + std::string getBody() const; + void setBody(const std::string &body); + string getRegionId() const; + void setRegionId(string regionId); + +private: + std::string body_; + string regionId_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_CREATEFILEJOBREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/CreateFileJobResult.h b/apds/include/alibabacloud/apds/model/CreateFileJobResult.h new file mode 100644 index 000000000..87594e72f --- /dev/null +++ b/apds/include/alibabacloud/apds/model/CreateFileJobResult.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_APDS_MODEL_CREATEFILEJOBRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_CREATEFILEJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT CreateFileJobResult : public ServiceResult + { + public: + + + CreateFileJobResult(); + explicit CreateFileJobResult(const std::string &payload); + ~CreateFileJobResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_CREATEFILEJOBRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/CreateMigrationGroupRequest.h b/apds/include/alibabacloud/apds/model/CreateMigrationGroupRequest.h new file mode 100644 index 000000000..9974e6bbd --- /dev/null +++ b/apds/include/alibabacloud/apds/model/CreateMigrationGroupRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_CREATEMIGRATIONGROUPREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_CREATEMIGRATIONGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT CreateMigrationGroupRequest : public RoaServiceRequest { +public: + CreateMigrationGroupRequest(); + ~CreateMigrationGroupRequest(); + std::string getBody() const; + void setBody(const std::string &body); + string getRegionId() const; + void setRegionId(string regionId); + +private: + std::string body_; + string regionId_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_CREATEMIGRATIONGROUPREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/CreateMigrationGroupResult.h b/apds/include/alibabacloud/apds/model/CreateMigrationGroupResult.h new file mode 100644 index 000000000..a76b3bb6e --- /dev/null +++ b/apds/include/alibabacloud/apds/model/CreateMigrationGroupResult.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_APDS_MODEL_CREATEMIGRATIONGROUPRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_CREATEMIGRATIONGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT CreateMigrationGroupResult : public ServiceResult + { + public: + + + CreateMigrationGroupResult(); + explicit CreateMigrationGroupResult(const std::string &payload); + ~CreateMigrationGroupResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_CREATEMIGRATIONGROUPRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/CreateMigrationJobRequest.h b/apds/include/alibabacloud/apds/model/CreateMigrationJobRequest.h new file mode 100644 index 000000000..52a13e062 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/CreateMigrationJobRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_CREATEMIGRATIONJOBREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_CREATEMIGRATIONJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT CreateMigrationJobRequest : public RoaServiceRequest { +public: + CreateMigrationJobRequest(); + ~CreateMigrationJobRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_CREATEMIGRATIONJOBREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/CreateMigrationJobResult.h b/apds/include/alibabacloud/apds/model/CreateMigrationJobResult.h new file mode 100644 index 000000000..49a11e533 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/CreateMigrationJobResult.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_APDS_MODEL_CREATEMIGRATIONJOBRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_CREATEMIGRATIONJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT CreateMigrationJobResult : public ServiceResult + { + public: + + + CreateMigrationJobResult(); + explicit CreateMigrationJobResult(const std::string &payload); + ~CreateMigrationJobResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_CREATEMIGRATIONJOBRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/CreateSurveyJobOfflineRequest.h b/apds/include/alibabacloud/apds/model/CreateSurveyJobOfflineRequest.h new file mode 100644 index 000000000..d939e5c56 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/CreateSurveyJobOfflineRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_CREATESURVEYJOBOFFLINEREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_CREATESURVEYJOBOFFLINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT CreateSurveyJobOfflineRequest : public RoaServiceRequest { +public: + CreateSurveyJobOfflineRequest(); + ~CreateSurveyJobOfflineRequest(); + std::string getBody() const; + void setBody(const std::string &body); + string getRegionId() const; + void setRegionId(string regionId); + +private: + std::string body_; + string regionId_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_CREATESURVEYJOBOFFLINEREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/CreateSurveyJobOfflineResult.h b/apds/include/alibabacloud/apds/model/CreateSurveyJobOfflineResult.h new file mode 100644 index 000000000..1d4c56b1e --- /dev/null +++ b/apds/include/alibabacloud/apds/model/CreateSurveyJobOfflineResult.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_APDS_MODEL_CREATESURVEYJOBOFFLINERESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_CREATESURVEYJOBOFFLINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT CreateSurveyJobOfflineResult : public ServiceResult + { + public: + + + CreateSurveyJobOfflineResult(); + explicit CreateSurveyJobOfflineResult(const std::string &payload); + ~CreateSurveyJobOfflineResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_CREATESURVEYJOBOFFLINERESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/CreateSurveyJobRequest.h b/apds/include/alibabacloud/apds/model/CreateSurveyJobRequest.h new file mode 100644 index 000000000..de62330fe --- /dev/null +++ b/apds/include/alibabacloud/apds/model/CreateSurveyJobRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_CREATESURVEYJOBREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_CREATESURVEYJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT CreateSurveyJobRequest : public RoaServiceRequest { +public: + CreateSurveyJobRequest(); + ~CreateSurveyJobRequest(); + std::string getBody() const; + void setBody(const std::string &body); + string getRegionId() const; + void setRegionId(string regionId); + +private: + std::string body_; + string regionId_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_CREATESURVEYJOBREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/CreateSurveyJobResult.h b/apds/include/alibabacloud/apds/model/CreateSurveyJobResult.h new file mode 100644 index 000000000..1906cc636 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/CreateSurveyJobResult.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_APDS_MODEL_CREATESURVEYJOBRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_CREATESURVEYJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT CreateSurveyJobResult : public ServiceResult + { + public: + + + CreateSurveyJobResult(); + explicit CreateSurveyJobResult(const std::string &payload); + ~CreateSurveyJobResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_CREATESURVEYJOBRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/DeleteMigrationGroupRequest.h b/apds/include/alibabacloud/apds/model/DeleteMigrationGroupRequest.h new file mode 100644 index 000000000..5a95a7f90 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DeleteMigrationGroupRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_DELETEMIGRATIONGROUPREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_DELETEMIGRATIONGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT DeleteMigrationGroupRequest : public RoaServiceRequest { +public: + DeleteMigrationGroupRequest(); + ~DeleteMigrationGroupRequest(); + integer getId() const; + void setId(integer id); + +private: + integer id_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_DELETEMIGRATIONGROUPREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/DeleteMigrationGroupResult.h b/apds/include/alibabacloud/apds/model/DeleteMigrationGroupResult.h new file mode 100644 index 000000000..13ef2c445 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DeleteMigrationGroupResult.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_APDS_MODEL_DELETEMIGRATIONGROUPRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_DELETEMIGRATIONGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT DeleteMigrationGroupResult : public ServiceResult + { + public: + + + DeleteMigrationGroupResult(); + explicit DeleteMigrationGroupResult(const std::string &payload); + ~DeleteMigrationGroupResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_DELETEMIGRATIONGROUPRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/DeleteMigrationJobRequest.h b/apds/include/alibabacloud/apds/model/DeleteMigrationJobRequest.h new file mode 100644 index 000000000..e2be10701 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DeleteMigrationJobRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_DELETEMIGRATIONJOBREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_DELETEMIGRATIONJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT DeleteMigrationJobRequest : public RoaServiceRequest { +public: + DeleteMigrationJobRequest(); + ~DeleteMigrationJobRequest(); + integer getId() const; + void setId(integer id); + +private: + integer id_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_DELETEMIGRATIONJOBREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/DeleteMigrationJobResult.h b/apds/include/alibabacloud/apds/model/DeleteMigrationJobResult.h new file mode 100644 index 000000000..83faba96d --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DeleteMigrationJobResult.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_APDS_MODEL_DELETEMIGRATIONJOBRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_DELETEMIGRATIONJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT DeleteMigrationJobResult : public ServiceResult + { + public: + + + DeleteMigrationJobResult(); + explicit DeleteMigrationJobResult(const std::string &payload); + ~DeleteMigrationJobResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_DELETEMIGRATIONJOBRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/DeleteOssFileRequest.h b/apds/include/alibabacloud/apds/model/DeleteOssFileRequest.h new file mode 100644 index 000000000..9fecec31e --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DeleteOssFileRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_DELETEOSSFILEREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_DELETEOSSFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT DeleteOssFileRequest : public RoaServiceRequest { +public: + DeleteOssFileRequest(); + ~DeleteOssFileRequest(); + string getObjectName() const; + void setObjectName(string objectName); + string getRegionId() const; + void setRegionId(string regionId); + +private: + string objectName_; + string regionId_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_DELETEOSSFILEREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/DeleteOssFileResult.h b/apds/include/alibabacloud/apds/model/DeleteOssFileResult.h new file mode 100644 index 000000000..089e3cb4f --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DeleteOssFileResult.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_APDS_MODEL_DELETEOSSFILERESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_DELETEOSSFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT DeleteOssFileResult : public ServiceResult + { + public: + + + DeleteOssFileResult(); + explicit DeleteOssFileResult(const std::string &payload); + ~DeleteOssFileResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_DELETEOSSFILERESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/DeleteSurveyJobRequest.h b/apds/include/alibabacloud/apds/model/DeleteSurveyJobRequest.h new file mode 100644 index 000000000..d21a70916 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DeleteSurveyJobRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_DELETESURVEYJOBREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_DELETESURVEYJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT DeleteSurveyJobRequest : public RoaServiceRequest { +public: + DeleteSurveyJobRequest(); + ~DeleteSurveyJobRequest(); + integer getId() const; + void setId(integer id); + +private: + integer id_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_DELETESURVEYJOBREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/DeleteSurveyJobResult.h b/apds/include/alibabacloud/apds/model/DeleteSurveyJobResult.h new file mode 100644 index 000000000..5f63e5680 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DeleteSurveyJobResult.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_APDS_MODEL_DELETESURVEYJOBRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_DELETESURVEYJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT DeleteSurveyJobResult : public ServiceResult + { + public: + + + DeleteSurveyJobResult(); + explicit DeleteSurveyJobResult(const std::string &payload); + ~DeleteSurveyJobResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_DELETESURVEYJOBRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/DeleteSurveyResourcesRequest.h b/apds/include/alibabacloud/apds/model/DeleteSurveyResourcesRequest.h new file mode 100644 index 000000000..cd428f612 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DeleteSurveyResourcesRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_DELETESURVEYRESOURCESREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_DELETESURVEYRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT DeleteSurveyResourcesRequest : public RoaServiceRequest { +public: + DeleteSurveyResourcesRequest(); + ~DeleteSurveyResourcesRequest(); + string getIds() const; + void setIds(string ids); + +private: + string ids_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_DELETESURVEYRESOURCESREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/DeleteSurveyResourcesResult.h b/apds/include/alibabacloud/apds/model/DeleteSurveyResourcesResult.h new file mode 100644 index 000000000..558a0a1b7 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DeleteSurveyResourcesResult.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_APDS_MODEL_DELETESURVEYRESOURCESRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_DELETESURVEYRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT DeleteSurveyResourcesResult : public ServiceResult + { + public: + + + DeleteSurveyResourcesResult(); + explicit DeleteSurveyResourcesResult(const std::string &payload); + ~DeleteSurveyResourcesResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_DELETESURVEYRESOURCESRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/DescribeMigrationJobConfigRequest.h b/apds/include/alibabacloud/apds/model/DescribeMigrationJobConfigRequest.h new file mode 100644 index 000000000..4f4c09a16 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DescribeMigrationJobConfigRequest.h @@ -0,0 +1,39 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_DESCRIBEMIGRATIONJOBCONFIGREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_DESCRIBEMIGRATIONJOBCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT DescribeMigrationJobConfigRequest : public RoaServiceRequest { +public: + DescribeMigrationJobConfigRequest(); + ~DescribeMigrationJobConfigRequest(); + +private: +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_DESCRIBEMIGRATIONJOBCONFIGREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/DescribeMigrationJobConfigResult.h b/apds/include/alibabacloud/apds/model/DescribeMigrationJobConfigResult.h new file mode 100644 index 000000000..9c6cbc1ca --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DescribeMigrationJobConfigResult.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_APDS_MODEL_DESCRIBEMIGRATIONJOBCONFIGRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_DESCRIBEMIGRATIONJOBCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT DescribeMigrationJobConfigResult : public ServiceResult + { + public: + + + DescribeMigrationJobConfigResult(); + explicit DescribeMigrationJobConfigResult(const std::string &payload); + ~DescribeMigrationJobConfigResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_DESCRIBEMIGRATIONJOBCONFIGRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/DescribeMigrationJobCountRequest.h b/apds/include/alibabacloud/apds/model/DescribeMigrationJobCountRequest.h new file mode 100644 index 000000000..1f90170f8 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DescribeMigrationJobCountRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_DESCRIBEMIGRATIONJOBCOUNTREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_DESCRIBEMIGRATIONJOBCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT DescribeMigrationJobCountRequest : public RoaServiceRequest { +public: + DescribeMigrationJobCountRequest(); + ~DescribeMigrationJobCountRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_DESCRIBEMIGRATIONJOBCOUNTREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/DescribeMigrationJobCountResult.h b/apds/include/alibabacloud/apds/model/DescribeMigrationJobCountResult.h new file mode 100644 index 000000000..2d6db9401 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DescribeMigrationJobCountResult.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_APDS_MODEL_DESCRIBEMIGRATIONJOBCOUNTRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_DESCRIBEMIGRATIONJOBCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT DescribeMigrationJobCountResult : public ServiceResult + { + public: + + + DescribeMigrationJobCountResult(); + explicit DescribeMigrationJobCountResult(const std::string &payload); + ~DescribeMigrationJobCountResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_DESCRIBEMIGRATIONJOBCOUNTRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/DescribeOssStsRequest.h b/apds/include/alibabacloud/apds/model/DescribeOssStsRequest.h new file mode 100644 index 000000000..f1d9900c3 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DescribeOssStsRequest.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_APDS_MODEL_DESCRIBEOSSSTSREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_DESCRIBEOSSSTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT DescribeOssStsRequest : public RoaServiceRequest { +public: + DescribeOssStsRequest(); + ~DescribeOssStsRequest(); + string getCloudType() const; + void setCloudType(string cloudType); + string getAk() const; + void setAk(string ak); + string getRegionId() const; + void setRegionId(string regionId); + string getSk() const; + void setSk(string sk); + string getTenantId() const; + void setTenantId(string tenantId); + string getRegion() const; + void setRegion(string region); + +private: + string cloudType_; + string ak_; + string regionId_; + string sk_; + string tenantId_; + string region_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_DESCRIBEOSSSTSREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/DescribeOssStsResult.h b/apds/include/alibabacloud/apds/model/DescribeOssStsResult.h new file mode 100644 index 000000000..e1655d6c4 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DescribeOssStsResult.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_APDS_MODEL_DESCRIBEOSSSTSRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_DESCRIBEOSSSTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT DescribeOssStsResult : public ServiceResult + { + public: + + + DescribeOssStsResult(); + explicit DescribeOssStsResult(const std::string &payload); + ~DescribeOssStsResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_DESCRIBEOSSSTSRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/DescribeSummaryByStatusAndGroupRequest.h b/apds/include/alibabacloud/apds/model/DescribeSummaryByStatusAndGroupRequest.h new file mode 100644 index 000000000..f7e87b036 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DescribeSummaryByStatusAndGroupRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_DESCRIBESUMMARYBYSTATUSANDGROUPREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_DESCRIBESUMMARYBYSTATUSANDGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT DescribeSummaryByStatusAndGroupRequest : public RoaServiceRequest { +public: + DescribeSummaryByStatusAndGroupRequest(); + ~DescribeSummaryByStatusAndGroupRequest(); + string getRegionId() const; + void setRegionId(string regionId); + +private: + string regionId_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_DESCRIBESUMMARYBYSTATUSANDGROUPREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/DescribeSummaryByStatusAndGroupResult.h b/apds/include/alibabacloud/apds/model/DescribeSummaryByStatusAndGroupResult.h new file mode 100644 index 000000000..2cf6419aa --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DescribeSummaryByStatusAndGroupResult.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_APDS_MODEL_DESCRIBESUMMARYBYSTATUSANDGROUPRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_DESCRIBESUMMARYBYSTATUSANDGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT DescribeSummaryByStatusAndGroupResult : public ServiceResult + { + public: + + + DescribeSummaryByStatusAndGroupResult(); + explicit DescribeSummaryByStatusAndGroupResult(const std::string &payload); + ~DescribeSummaryByStatusAndGroupResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_DESCRIBESUMMARYBYSTATUSANDGROUPRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/DescribeSummaryByStatusRequest.h b/apds/include/alibabacloud/apds/model/DescribeSummaryByStatusRequest.h new file mode 100644 index 000000000..8a2cfc8e1 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DescribeSummaryByStatusRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_DESCRIBESUMMARYBYSTATUSREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_DESCRIBESUMMARYBYSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT DescribeSummaryByStatusRequest : public RoaServiceRequest { +public: + DescribeSummaryByStatusRequest(); + ~DescribeSummaryByStatusRequest(); + string getRegionId() const; + void setRegionId(string regionId); + +private: + string regionId_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_DESCRIBESUMMARYBYSTATUSREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/DescribeSummaryByStatusResult.h b/apds/include/alibabacloud/apds/model/DescribeSummaryByStatusResult.h new file mode 100644 index 000000000..a8deaedee --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DescribeSummaryByStatusResult.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_APDS_MODEL_DESCRIBESUMMARYBYSTATUSRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_DESCRIBESUMMARYBYSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT DescribeSummaryByStatusResult : public ServiceResult + { + public: + + + DescribeSummaryByStatusResult(); + explicit DescribeSummaryByStatusResult(const std::string &payload); + ~DescribeSummaryByStatusResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_DESCRIBESUMMARYBYSTATUSRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/DescribeSurveyJobCountRequest.h b/apds/include/alibabacloud/apds/model/DescribeSurveyJobCountRequest.h new file mode 100644 index 000000000..f7a180e04 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DescribeSurveyJobCountRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_DESCRIBESURVEYJOBCOUNTREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_DESCRIBESURVEYJOBCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT DescribeSurveyJobCountRequest : public RoaServiceRequest { +public: + DescribeSurveyJobCountRequest(); + ~DescribeSurveyJobCountRequest(); + string getRegionId() const; + void setRegionId(string regionId); + +private: + string regionId_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_DESCRIBESURVEYJOBCOUNTREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/DescribeSurveyJobCountResult.h b/apds/include/alibabacloud/apds/model/DescribeSurveyJobCountResult.h new file mode 100644 index 000000000..92e318ff1 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DescribeSurveyJobCountResult.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_APDS_MODEL_DESCRIBESURVEYJOBCOUNTRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_DESCRIBESURVEYJOBCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT DescribeSurveyJobCountResult : public ServiceResult + { + public: + + + DescribeSurveyJobCountResult(); + explicit DescribeSurveyJobCountResult(const std::string &payload); + ~DescribeSurveyJobCountResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_DESCRIBESURVEYJOBCOUNTRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/DescribeSurveyJobRequest.h b/apds/include/alibabacloud/apds/model/DescribeSurveyJobRequest.h new file mode 100644 index 000000000..3f154b1bf --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DescribeSurveyJobRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_DESCRIBESURVEYJOBREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_DESCRIBESURVEYJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT DescribeSurveyJobRequest : public RoaServiceRequest { +public: + DescribeSurveyJobRequest(); + ~DescribeSurveyJobRequest(); + string getRegionId() const; + void setRegionId(string regionId); + integer getId() const; + void setId(integer id); + +private: + string regionId_; + integer id_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_DESCRIBESURVEYJOBREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/DescribeSurveyJobResult.h b/apds/include/alibabacloud/apds/model/DescribeSurveyJobResult.h new file mode 100644 index 000000000..77420c341 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DescribeSurveyJobResult.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_APDS_MODEL_DESCRIBESURVEYJOBRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_DESCRIBESURVEYJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT DescribeSurveyJobResult : public ServiceResult + { + public: + + + DescribeSurveyJobResult(); + explicit DescribeSurveyJobResult(const std::string &payload); + ~DescribeSurveyJobResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_DESCRIBESURVEYJOBRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/DescribeSurveyResourceTagRequest.h b/apds/include/alibabacloud/apds/model/DescribeSurveyResourceTagRequest.h new file mode 100644 index 000000000..9b39150dc --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DescribeSurveyResourceTagRequest.h @@ -0,0 +1,39 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_DESCRIBESURVEYRESOURCETAGREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_DESCRIBESURVEYRESOURCETAGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT DescribeSurveyResourceTagRequest : public RoaServiceRequest { +public: + DescribeSurveyResourceTagRequest(); + ~DescribeSurveyResourceTagRequest(); + +private: +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_DESCRIBESURVEYRESOURCETAGREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/DescribeSurveyResourceTagResult.h b/apds/include/alibabacloud/apds/model/DescribeSurveyResourceTagResult.h new file mode 100644 index 000000000..cb21d1900 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DescribeSurveyResourceTagResult.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_APDS_MODEL_DESCRIBESURVEYRESOURCETAGRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_DESCRIBESURVEYRESOURCETAGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT DescribeSurveyResourceTagResult : public ServiceResult + { + public: + + + DescribeSurveyResourceTagResult(); + explicit DescribeSurveyResourceTagResult(const std::string &payload); + ~DescribeSurveyResourceTagResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_DESCRIBESURVEYRESOURCETAGRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/DescribeSurveyTemplateRequest.h b/apds/include/alibabacloud/apds/model/DescribeSurveyTemplateRequest.h new file mode 100644 index 000000000..6f81e6f9d --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DescribeSurveyTemplateRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_DESCRIBESURVEYTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_DESCRIBESURVEYTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT DescribeSurveyTemplateRequest : public RoaServiceRequest { +public: + DescribeSurveyTemplateRequest(); + ~DescribeSurveyTemplateRequest(); + string getResourceType() const; + void setResourceType(string resourceType); + +private: + string resourceType_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_DESCRIBESURVEYTEMPLATEREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/DescribeSurveyTemplateResult.h b/apds/include/alibabacloud/apds/model/DescribeSurveyTemplateResult.h new file mode 100644 index 000000000..80de74400 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/DescribeSurveyTemplateResult.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_APDS_MODEL_DESCRIBESURVEYTEMPLATERESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_DESCRIBESURVEYTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT DescribeSurveyTemplateResult : public ServiceResult + { + public: + + + DescribeSurveyTemplateResult(); + explicit DescribeSurveyTemplateResult(const std::string &payload); + ~DescribeSurveyTemplateResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_DESCRIBESURVEYTEMPLATERESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/ListMigrationJobsRequest.h b/apds/include/alibabacloud/apds/model/ListMigrationJobsRequest.h new file mode 100644 index 000000000..dc5809c51 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/ListMigrationJobsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_LISTMIGRATIONJOBSREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_LISTMIGRATIONJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT ListMigrationJobsRequest : public RoaServiceRequest { +public: + ListMigrationJobsRequest(); + ~ListMigrationJobsRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_LISTMIGRATIONJOBSREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/ListMigrationJobsResult.h b/apds/include/alibabacloud/apds/model/ListMigrationJobsResult.h new file mode 100644 index 000000000..2cf6d013b --- /dev/null +++ b/apds/include/alibabacloud/apds/model/ListMigrationJobsResult.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_APDS_MODEL_LISTMIGRATIONJOBSRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_LISTMIGRATIONJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT ListMigrationJobsResult : public ServiceResult + { + public: + + + ListMigrationJobsResult(); + explicit ListMigrationJobsResult(const std::string &payload); + ~ListMigrationJobsResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_LISTMIGRATIONJOBSRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/ListRegionsRequest.h b/apds/include/alibabacloud/apds/model/ListRegionsRequest.h new file mode 100644 index 000000000..d3b8f77aa --- /dev/null +++ b/apds/include/alibabacloud/apds/model/ListRegionsRequest.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_APDS_MODEL_LISTREGIONSREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_LISTREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT ListRegionsRequest : public RoaServiceRequest { +public: + ListRegionsRequest(); + ~ListRegionsRequest(); + string getCloudType() const; + void setCloudType(string cloudType); + string getAk() const; + void setAk(string ak); + string getRegionId() const; + void setRegionId(string regionId); + string getSk() const; + void setSk(string sk); + string getTenantId() const; + void setTenantId(string tenantId); + string getRegion() const; + void setRegion(string region); + +private: + string cloudType_; + string ak_; + string regionId_; + string sk_; + string tenantId_; + string region_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_LISTREGIONSREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/ListRegionsResult.h b/apds/include/alibabacloud/apds/model/ListRegionsResult.h new file mode 100644 index 000000000..d95c9e977 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/ListRegionsResult.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_APDS_MODEL_LISTREGIONSRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_LISTREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT ListRegionsResult : public ServiceResult + { + public: + + + ListRegionsResult(); + explicit ListRegionsResult(const std::string &payload); + ~ListRegionsResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_LISTREGIONSRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/ListSurveyJobDownLoadJobsRequest.h b/apds/include/alibabacloud/apds/model/ListSurveyJobDownLoadJobsRequest.h new file mode 100644 index 000000000..592020c69 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/ListSurveyJobDownLoadJobsRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_LISTSURVEYJOBDOWNLOADJOBSREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_LISTSURVEYJOBDOWNLOADJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT ListSurveyJobDownLoadJobsRequest : public RoaServiceRequest { +public: + ListSurveyJobDownLoadJobsRequest(); + ~ListSurveyJobDownLoadJobsRequest(); + std::string getBody() const; + void setBody(const std::string &body); + string getRegionId() const; + void setRegionId(string regionId); + +private: + std::string body_; + string regionId_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_LISTSURVEYJOBDOWNLOADJOBSREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/ListSurveyJobDownLoadJobsResult.h b/apds/include/alibabacloud/apds/model/ListSurveyJobDownLoadJobsResult.h new file mode 100644 index 000000000..572192b48 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/ListSurveyJobDownLoadJobsResult.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_APDS_MODEL_LISTSURVEYJOBDOWNLOADJOBSRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_LISTSURVEYJOBDOWNLOADJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT ListSurveyJobDownLoadJobsResult : public ServiceResult + { + public: + + + ListSurveyJobDownLoadJobsResult(); + explicit ListSurveyJobDownLoadJobsResult(const std::string &payload); + ~ListSurveyJobDownLoadJobsResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_LISTSURVEYJOBDOWNLOADJOBSRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/ListSurveyJobsRequest.h b/apds/include/alibabacloud/apds/model/ListSurveyJobsRequest.h new file mode 100644 index 000000000..22442cd8d --- /dev/null +++ b/apds/include/alibabacloud/apds/model/ListSurveyJobsRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_LISTSURVEYJOBSREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_LISTSURVEYJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT ListSurveyJobsRequest : public RoaServiceRequest { +public: + ListSurveyJobsRequest(); + ~ListSurveyJobsRequest(); + std::string getBody() const; + void setBody(const std::string &body); + string getRegionId() const; + void setRegionId(string regionId); + +private: + std::string body_; + string regionId_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_LISTSURVEYJOBSREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/ListSurveyJobsResult.h b/apds/include/alibabacloud/apds/model/ListSurveyJobsResult.h new file mode 100644 index 000000000..9e9b3e859 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/ListSurveyJobsResult.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_APDS_MODEL_LISTSURVEYJOBSRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_LISTSURVEYJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT ListSurveyJobsResult : public ServiceResult + { + public: + + + ListSurveyJobsResult(); + explicit ListSurveyJobsResult(const std::string &payload); + ~ListSurveyJobsResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_LISTSURVEYJOBSRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/ListSurveyResourceByMigrationGroupsRequest.h b/apds/include/alibabacloud/apds/model/ListSurveyResourceByMigrationGroupsRequest.h new file mode 100644 index 000000000..f0a13c7bc --- /dev/null +++ b/apds/include/alibabacloud/apds/model/ListSurveyResourceByMigrationGroupsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_LISTSURVEYRESOURCEBYMIGRATIONGROUPSREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_LISTSURVEYRESOURCEBYMIGRATIONGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT ListSurveyResourceByMigrationGroupsRequest : public RoaServiceRequest { +public: + ListSurveyResourceByMigrationGroupsRequest(); + ~ListSurveyResourceByMigrationGroupsRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_LISTSURVEYRESOURCEBYMIGRATIONGROUPSREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/ListSurveyResourceByMigrationGroupsResult.h b/apds/include/alibabacloud/apds/model/ListSurveyResourceByMigrationGroupsResult.h new file mode 100644 index 000000000..782c3d558 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/ListSurveyResourceByMigrationGroupsResult.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_APDS_MODEL_LISTSURVEYRESOURCEBYMIGRATIONGROUPSRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_LISTSURVEYRESOURCEBYMIGRATIONGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT ListSurveyResourceByMigrationGroupsResult : public ServiceResult + { + public: + + + ListSurveyResourceByMigrationGroupsResult(); + explicit ListSurveyResourceByMigrationGroupsResult(const std::string &payload); + ~ListSurveyResourceByMigrationGroupsResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_LISTSURVEYRESOURCEBYMIGRATIONGROUPSRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/ListSurveyResourceConnectionsRequest.h b/apds/include/alibabacloud/apds/model/ListSurveyResourceConnectionsRequest.h new file mode 100644 index 000000000..606b63a9b --- /dev/null +++ b/apds/include/alibabacloud/apds/model/ListSurveyResourceConnectionsRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_LISTSURVEYRESOURCECONNECTIONSREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_LISTSURVEYRESOURCECONNECTIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT ListSurveyResourceConnectionsRequest : public RoaServiceRequest { +public: + ListSurveyResourceConnectionsRequest(); + ~ListSurveyResourceConnectionsRequest(); + std::string getBody() const; + void setBody(const std::string &body); + string getRegionId() const; + void setRegionId(string regionId); + +private: + std::string body_; + string regionId_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_LISTSURVEYRESOURCECONNECTIONSREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/ListSurveyResourceConnectionsResult.h b/apds/include/alibabacloud/apds/model/ListSurveyResourceConnectionsResult.h new file mode 100644 index 000000000..45f01b251 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/ListSurveyResourceConnectionsResult.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_APDS_MODEL_LISTSURVEYRESOURCECONNECTIONSRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_LISTSURVEYRESOURCECONNECTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT ListSurveyResourceConnectionsResult : public ServiceResult + { + public: + + + ListSurveyResourceConnectionsResult(); + explicit ListSurveyResourceConnectionsResult(const std::string &payload); + ~ListSurveyResourceConnectionsResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_LISTSURVEYRESOURCECONNECTIONSRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/ListSurveyResourceTypesRequest.h b/apds/include/alibabacloud/apds/model/ListSurveyResourceTypesRequest.h new file mode 100644 index 000000000..53b70f141 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/ListSurveyResourceTypesRequest.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_APDS_MODEL_LISTSURVEYRESOURCETYPESREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_LISTSURVEYRESOURCETYPESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT ListSurveyResourceTypesRequest : public RoaServiceRequest { +public: + ListSurveyResourceTypesRequest(); + ~ListSurveyResourceTypesRequest(); + string getCloudType() const; + void setCloudType(string cloudType); + string getAk() const; + void setAk(string ak); + string getRegionId() const; + void setRegionId(string regionId); + string getSk() const; + void setSk(string sk); + string getRegion() const; + void setRegion(string region); + +private: + string cloudType_; + string ak_; + string regionId_; + string sk_; + string region_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_LISTSURVEYRESOURCETYPESREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/ListSurveyResourceTypesResult.h b/apds/include/alibabacloud/apds/model/ListSurveyResourceTypesResult.h new file mode 100644 index 000000000..85742e934 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/ListSurveyResourceTypesResult.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_APDS_MODEL_LISTSURVEYRESOURCETYPESRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_LISTSURVEYRESOURCETYPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT ListSurveyResourceTypesResult : public ServiceResult + { + public: + + + ListSurveyResourceTypesResult(); + explicit ListSurveyResourceTypesResult(const std::string &payload); + ~ListSurveyResourceTypesResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_LISTSURVEYRESOURCETYPESRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/ListSurveyResourcesDetailRequest.h b/apds/include/alibabacloud/apds/model/ListSurveyResourcesDetailRequest.h new file mode 100644 index 000000000..307a6bd69 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/ListSurveyResourcesDetailRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_LISTSURVEYRESOURCESDETAILREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_LISTSURVEYRESOURCESDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT ListSurveyResourcesDetailRequest : public RoaServiceRequest { +public: + ListSurveyResourcesDetailRequest(); + ~ListSurveyResourcesDetailRequest(); + std::string getBody() const; + void setBody(const std::string &body); + string getRegionId() const; + void setRegionId(string regionId); + +private: + std::string body_; + string regionId_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_LISTSURVEYRESOURCESDETAILREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/ListSurveyResourcesDetailResult.h b/apds/include/alibabacloud/apds/model/ListSurveyResourcesDetailResult.h new file mode 100644 index 000000000..cc30c6a4c --- /dev/null +++ b/apds/include/alibabacloud/apds/model/ListSurveyResourcesDetailResult.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_APDS_MODEL_LISTSURVEYRESOURCESDETAILRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_LISTSURVEYRESOURCESDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT ListSurveyResourcesDetailResult : public ServiceResult + { + public: + + + ListSurveyResourcesDetailResult(); + explicit ListSurveyResourcesDetailResult(const std::string &payload); + ~ListSurveyResourcesDetailResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_LISTSURVEYRESOURCESDETAILRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/RecoverMigrationJobRequest.h b/apds/include/alibabacloud/apds/model/RecoverMigrationJobRequest.h new file mode 100644 index 000000000..97abc8e34 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/RecoverMigrationJobRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_RECOVERMIGRATIONJOBREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_RECOVERMIGRATIONJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT RecoverMigrationJobRequest : public RoaServiceRequest { +public: + RecoverMigrationJobRequest(); + ~RecoverMigrationJobRequest(); + integer getId() const; + void setId(integer id); + +private: + integer id_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_RECOVERMIGRATIONJOBREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/RecoverMigrationJobResult.h b/apds/include/alibabacloud/apds/model/RecoverMigrationJobResult.h new file mode 100644 index 000000000..b4a1d3f3c --- /dev/null +++ b/apds/include/alibabacloud/apds/model/RecoverMigrationJobResult.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_APDS_MODEL_RECOVERMIGRATIONJOBRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_RECOVERMIGRATIONJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT RecoverMigrationJobResult : public ServiceResult + { + public: + + + RecoverMigrationJobResult(); + explicit RecoverMigrationJobResult(const std::string &payload); + ~RecoverMigrationJobResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_RECOVERMIGRATIONJOBRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/StopSyncMigrationJobRequest.h b/apds/include/alibabacloud/apds/model/StopSyncMigrationJobRequest.h new file mode 100644 index 000000000..7ae8d8379 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/StopSyncMigrationJobRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_APDS_MODEL_STOPSYNCMIGRATIONJOBREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_STOPSYNCMIGRATIONJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT StopSyncMigrationJobRequest : public RoaServiceRequest { +public: + StopSyncMigrationJobRequest(); + ~StopSyncMigrationJobRequest(); + string getJobType() const; + void setJobType(string jobType); + string getRegionId() const; + void setRegionId(string regionId); + +private: + string jobType_; + string regionId_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_STOPSYNCMIGRATIONJOBREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/StopSyncMigrationJobResult.h b/apds/include/alibabacloud/apds/model/StopSyncMigrationJobResult.h new file mode 100644 index 000000000..b5b3c829e --- /dev/null +++ b/apds/include/alibabacloud/apds/model/StopSyncMigrationJobResult.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_APDS_MODEL_STOPSYNCMIGRATIONJOBRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_STOPSYNCMIGRATIONJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT StopSyncMigrationJobResult : public ServiceResult + { + public: + + + StopSyncMigrationJobResult(); + explicit StopSyncMigrationJobResult(const std::string &payload); + ~StopSyncMigrationJobResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_STOPSYNCMIGRATIONJOBRESULT_H_ \ No newline at end of file diff --git a/apds/include/alibabacloud/apds/model/SyncMigrationJobRequest.h b/apds/include/alibabacloud/apds/model/SyncMigrationJobRequest.h new file mode 100644 index 000000000..0980d0bb7 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/SyncMigrationJobRequest.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_APDS_MODEL_SYNCMIGRATIONJOBREQUEST_H_ +#define ALIBABACLOUD_APDS_MODEL_SYNCMIGRATIONJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Apds { +namespace Model { +class ALIBABACLOUD_APDS_EXPORT SyncMigrationJobRequest : public RoaServiceRequest { +public: + SyncMigrationJobRequest(); + ~SyncMigrationJobRequest(); + string getRegions() const; + void setRegions(string regions); + string getJobType() const; + void setJobType(string jobType); + string getRegionId() const; + void setRegionId(string regionId); + +private: + string regions_; + string jobType_; + string regionId_; +}; +} // namespace Model +} // namespace Apds +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_APDS_MODEL_SYNCMIGRATIONJOBREQUEST_H_ diff --git a/apds/include/alibabacloud/apds/model/SyncMigrationJobResult.h b/apds/include/alibabacloud/apds/model/SyncMigrationJobResult.h new file mode 100644 index 000000000..58f163a85 --- /dev/null +++ b/apds/include/alibabacloud/apds/model/SyncMigrationJobResult.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_APDS_MODEL_SYNCMIGRATIONJOBRESULT_H_ +#define ALIBABACLOUD_APDS_MODEL_SYNCMIGRATIONJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Apds + { + namespace Model + { + class ALIBABACLOUD_APDS_EXPORT SyncMigrationJobResult : public ServiceResult + { + public: + + + SyncMigrationJobResult(); + explicit SyncMigrationJobResult(const std::string &payload); + ~SyncMigrationJobResult(); + std::string getError()const; + ObjectOfAny getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string error_; + ObjectOfAny data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_APDS_MODEL_SYNCMIGRATIONJOBRESULT_H_ \ No newline at end of file diff --git a/apds/src/ApdsClient.cc b/apds/src/ApdsClient.cc new file mode 100644 index 000000000..d4fbb5a6c --- /dev/null +++ b/apds/src/ApdsClient.cc @@ -0,0 +1,1133 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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::Apds; +using namespace AlibabaCloud::Apds::Model; + +namespace +{ + const std::string SERVICE_NAME = "apds"; +} + +ApdsClient::ApdsClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RoaServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +ApdsClient::ApdsClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +ApdsClient::ApdsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RoaServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +ApdsClient::~ApdsClient() +{} + +ApdsClient::CreateFileJobOutcome ApdsClient::createFileJob(const CreateFileJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFileJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFileJobOutcome(CreateFileJobResult(outcome.result())); + else + return CreateFileJobOutcome(outcome.error()); +} + +void ApdsClient::createFileJobAsync(const CreateFileJobRequest& request, const CreateFileJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFileJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::CreateFileJobOutcomeCallable ApdsClient::createFileJobCallable(const CreateFileJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFileJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::CreateMigrationGroupOutcome ApdsClient::createMigrationGroup(const CreateMigrationGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateMigrationGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateMigrationGroupOutcome(CreateMigrationGroupResult(outcome.result())); + else + return CreateMigrationGroupOutcome(outcome.error()); +} + +void ApdsClient::createMigrationGroupAsync(const CreateMigrationGroupRequest& request, const CreateMigrationGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createMigrationGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::CreateMigrationGroupOutcomeCallable ApdsClient::createMigrationGroupCallable(const CreateMigrationGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createMigrationGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::CreateMigrationJobOutcome ApdsClient::createMigrationJob(const CreateMigrationJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateMigrationJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateMigrationJobOutcome(CreateMigrationJobResult(outcome.result())); + else + return CreateMigrationJobOutcome(outcome.error()); +} + +void ApdsClient::createMigrationJobAsync(const CreateMigrationJobRequest& request, const CreateMigrationJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createMigrationJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::CreateMigrationJobOutcomeCallable ApdsClient::createMigrationJobCallable(const CreateMigrationJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createMigrationJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::CreateSurveyJobOutcome ApdsClient::createSurveyJob(const CreateSurveyJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSurveyJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSurveyJobOutcome(CreateSurveyJobResult(outcome.result())); + else + return CreateSurveyJobOutcome(outcome.error()); +} + +void ApdsClient::createSurveyJobAsync(const CreateSurveyJobRequest& request, const CreateSurveyJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSurveyJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::CreateSurveyJobOutcomeCallable ApdsClient::createSurveyJobCallable(const CreateSurveyJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSurveyJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::CreateSurveyJobOfflineOutcome ApdsClient::createSurveyJobOffline(const CreateSurveyJobOfflineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSurveyJobOfflineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSurveyJobOfflineOutcome(CreateSurveyJobOfflineResult(outcome.result())); + else + return CreateSurveyJobOfflineOutcome(outcome.error()); +} + +void ApdsClient::createSurveyJobOfflineAsync(const CreateSurveyJobOfflineRequest& request, const CreateSurveyJobOfflineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSurveyJobOffline(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::CreateSurveyJobOfflineOutcomeCallable ApdsClient::createSurveyJobOfflineCallable(const CreateSurveyJobOfflineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSurveyJobOffline(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::DeleteMigrationGroupOutcome ApdsClient::deleteMigrationGroup(const DeleteMigrationGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteMigrationGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteMigrationGroupOutcome(DeleteMigrationGroupResult(outcome.result())); + else + return DeleteMigrationGroupOutcome(outcome.error()); +} + +void ApdsClient::deleteMigrationGroupAsync(const DeleteMigrationGroupRequest& request, const DeleteMigrationGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteMigrationGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::DeleteMigrationGroupOutcomeCallable ApdsClient::deleteMigrationGroupCallable(const DeleteMigrationGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteMigrationGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::DeleteMigrationJobOutcome ApdsClient::deleteMigrationJob(const DeleteMigrationJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteMigrationJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteMigrationJobOutcome(DeleteMigrationJobResult(outcome.result())); + else + return DeleteMigrationJobOutcome(outcome.error()); +} + +void ApdsClient::deleteMigrationJobAsync(const DeleteMigrationJobRequest& request, const DeleteMigrationJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteMigrationJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::DeleteMigrationJobOutcomeCallable ApdsClient::deleteMigrationJobCallable(const DeleteMigrationJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteMigrationJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::DeleteOssFileOutcome ApdsClient::deleteOssFile(const DeleteOssFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteOssFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteOssFileOutcome(DeleteOssFileResult(outcome.result())); + else + return DeleteOssFileOutcome(outcome.error()); +} + +void ApdsClient::deleteOssFileAsync(const DeleteOssFileRequest& request, const DeleteOssFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteOssFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::DeleteOssFileOutcomeCallable ApdsClient::deleteOssFileCallable(const DeleteOssFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteOssFile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::DeleteSurveyJobOutcome ApdsClient::deleteSurveyJob(const DeleteSurveyJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSurveyJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSurveyJobOutcome(DeleteSurveyJobResult(outcome.result())); + else + return DeleteSurveyJobOutcome(outcome.error()); +} + +void ApdsClient::deleteSurveyJobAsync(const DeleteSurveyJobRequest& request, const DeleteSurveyJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSurveyJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::DeleteSurveyJobOutcomeCallable ApdsClient::deleteSurveyJobCallable(const DeleteSurveyJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSurveyJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::DeleteSurveyResourcesOutcome ApdsClient::deleteSurveyResources(const DeleteSurveyResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSurveyResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSurveyResourcesOutcome(DeleteSurveyResourcesResult(outcome.result())); + else + return DeleteSurveyResourcesOutcome(outcome.error()); +} + +void ApdsClient::deleteSurveyResourcesAsync(const DeleteSurveyResourcesRequest& request, const DeleteSurveyResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSurveyResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::DeleteSurveyResourcesOutcomeCallable ApdsClient::deleteSurveyResourcesCallable(const DeleteSurveyResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSurveyResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::DescribeMigrationJobConfigOutcome ApdsClient::describeMigrationJobConfig(const DescribeMigrationJobConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMigrationJobConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMigrationJobConfigOutcome(DescribeMigrationJobConfigResult(outcome.result())); + else + return DescribeMigrationJobConfigOutcome(outcome.error()); +} + +void ApdsClient::describeMigrationJobConfigAsync(const DescribeMigrationJobConfigRequest& request, const DescribeMigrationJobConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMigrationJobConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::DescribeMigrationJobConfigOutcomeCallable ApdsClient::describeMigrationJobConfigCallable(const DescribeMigrationJobConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMigrationJobConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::DescribeMigrationJobCountOutcome ApdsClient::describeMigrationJobCount(const DescribeMigrationJobCountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMigrationJobCountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMigrationJobCountOutcome(DescribeMigrationJobCountResult(outcome.result())); + else + return DescribeMigrationJobCountOutcome(outcome.error()); +} + +void ApdsClient::describeMigrationJobCountAsync(const DescribeMigrationJobCountRequest& request, const DescribeMigrationJobCountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMigrationJobCount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::DescribeMigrationJobCountOutcomeCallable ApdsClient::describeMigrationJobCountCallable(const DescribeMigrationJobCountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMigrationJobCount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::DescribeOssStsOutcome ApdsClient::describeOssSts(const DescribeOssStsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOssStsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOssStsOutcome(DescribeOssStsResult(outcome.result())); + else + return DescribeOssStsOutcome(outcome.error()); +} + +void ApdsClient::describeOssStsAsync(const DescribeOssStsRequest& request, const DescribeOssStsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOssSts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::DescribeOssStsOutcomeCallable ApdsClient::describeOssStsCallable(const DescribeOssStsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOssSts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::DescribeSummaryByStatusOutcome ApdsClient::describeSummaryByStatus(const DescribeSummaryByStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSummaryByStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSummaryByStatusOutcome(DescribeSummaryByStatusResult(outcome.result())); + else + return DescribeSummaryByStatusOutcome(outcome.error()); +} + +void ApdsClient::describeSummaryByStatusAsync(const DescribeSummaryByStatusRequest& request, const DescribeSummaryByStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSummaryByStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::DescribeSummaryByStatusOutcomeCallable ApdsClient::describeSummaryByStatusCallable(const DescribeSummaryByStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSummaryByStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::DescribeSummaryByStatusAndGroupOutcome ApdsClient::describeSummaryByStatusAndGroup(const DescribeSummaryByStatusAndGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSummaryByStatusAndGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSummaryByStatusAndGroupOutcome(DescribeSummaryByStatusAndGroupResult(outcome.result())); + else + return DescribeSummaryByStatusAndGroupOutcome(outcome.error()); +} + +void ApdsClient::describeSummaryByStatusAndGroupAsync(const DescribeSummaryByStatusAndGroupRequest& request, const DescribeSummaryByStatusAndGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSummaryByStatusAndGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::DescribeSummaryByStatusAndGroupOutcomeCallable ApdsClient::describeSummaryByStatusAndGroupCallable(const DescribeSummaryByStatusAndGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSummaryByStatusAndGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::DescribeSurveyJobOutcome ApdsClient::describeSurveyJob(const DescribeSurveyJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSurveyJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSurveyJobOutcome(DescribeSurveyJobResult(outcome.result())); + else + return DescribeSurveyJobOutcome(outcome.error()); +} + +void ApdsClient::describeSurveyJobAsync(const DescribeSurveyJobRequest& request, const DescribeSurveyJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSurveyJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::DescribeSurveyJobOutcomeCallable ApdsClient::describeSurveyJobCallable(const DescribeSurveyJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSurveyJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::DescribeSurveyJobCountOutcome ApdsClient::describeSurveyJobCount(const DescribeSurveyJobCountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSurveyJobCountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSurveyJobCountOutcome(DescribeSurveyJobCountResult(outcome.result())); + else + return DescribeSurveyJobCountOutcome(outcome.error()); +} + +void ApdsClient::describeSurveyJobCountAsync(const DescribeSurveyJobCountRequest& request, const DescribeSurveyJobCountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSurveyJobCount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::DescribeSurveyJobCountOutcomeCallable ApdsClient::describeSurveyJobCountCallable(const DescribeSurveyJobCountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSurveyJobCount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::DescribeSurveyResourceTagOutcome ApdsClient::describeSurveyResourceTag(const DescribeSurveyResourceTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSurveyResourceTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSurveyResourceTagOutcome(DescribeSurveyResourceTagResult(outcome.result())); + else + return DescribeSurveyResourceTagOutcome(outcome.error()); +} + +void ApdsClient::describeSurveyResourceTagAsync(const DescribeSurveyResourceTagRequest& request, const DescribeSurveyResourceTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSurveyResourceTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::DescribeSurveyResourceTagOutcomeCallable ApdsClient::describeSurveyResourceTagCallable(const DescribeSurveyResourceTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSurveyResourceTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::DescribeSurveyTemplateOutcome ApdsClient::describeSurveyTemplate(const DescribeSurveyTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSurveyTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSurveyTemplateOutcome(DescribeSurveyTemplateResult(outcome.result())); + else + return DescribeSurveyTemplateOutcome(outcome.error()); +} + +void ApdsClient::describeSurveyTemplateAsync(const DescribeSurveyTemplateRequest& request, const DescribeSurveyTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSurveyTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::DescribeSurveyTemplateOutcomeCallable ApdsClient::describeSurveyTemplateCallable(const DescribeSurveyTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSurveyTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::ListMigrationJobsOutcome ApdsClient::listMigrationJobs(const ListMigrationJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListMigrationJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListMigrationJobsOutcome(ListMigrationJobsResult(outcome.result())); + else + return ListMigrationJobsOutcome(outcome.error()); +} + +void ApdsClient::listMigrationJobsAsync(const ListMigrationJobsRequest& request, const ListMigrationJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listMigrationJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::ListMigrationJobsOutcomeCallable ApdsClient::listMigrationJobsCallable(const ListMigrationJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listMigrationJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::ListRegionsOutcome ApdsClient::listRegions(const ListRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRegionsOutcome(ListRegionsResult(outcome.result())); + else + return ListRegionsOutcome(outcome.error()); +} + +void ApdsClient::listRegionsAsync(const ListRegionsRequest& request, const ListRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::ListRegionsOutcomeCallable ApdsClient::listRegionsCallable(const ListRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::ListSurveyJobDownLoadJobsOutcome ApdsClient::listSurveyJobDownLoadJobs(const ListSurveyJobDownLoadJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSurveyJobDownLoadJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSurveyJobDownLoadJobsOutcome(ListSurveyJobDownLoadJobsResult(outcome.result())); + else + return ListSurveyJobDownLoadJobsOutcome(outcome.error()); +} + +void ApdsClient::listSurveyJobDownLoadJobsAsync(const ListSurveyJobDownLoadJobsRequest& request, const ListSurveyJobDownLoadJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSurveyJobDownLoadJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::ListSurveyJobDownLoadJobsOutcomeCallable ApdsClient::listSurveyJobDownLoadJobsCallable(const ListSurveyJobDownLoadJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSurveyJobDownLoadJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::ListSurveyJobsOutcome ApdsClient::listSurveyJobs(const ListSurveyJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSurveyJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSurveyJobsOutcome(ListSurveyJobsResult(outcome.result())); + else + return ListSurveyJobsOutcome(outcome.error()); +} + +void ApdsClient::listSurveyJobsAsync(const ListSurveyJobsRequest& request, const ListSurveyJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSurveyJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::ListSurveyJobsOutcomeCallable ApdsClient::listSurveyJobsCallable(const ListSurveyJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSurveyJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::ListSurveyResourceByMigrationGroupsOutcome ApdsClient::listSurveyResourceByMigrationGroups(const ListSurveyResourceByMigrationGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSurveyResourceByMigrationGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSurveyResourceByMigrationGroupsOutcome(ListSurveyResourceByMigrationGroupsResult(outcome.result())); + else + return ListSurveyResourceByMigrationGroupsOutcome(outcome.error()); +} + +void ApdsClient::listSurveyResourceByMigrationGroupsAsync(const ListSurveyResourceByMigrationGroupsRequest& request, const ListSurveyResourceByMigrationGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSurveyResourceByMigrationGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::ListSurveyResourceByMigrationGroupsOutcomeCallable ApdsClient::listSurveyResourceByMigrationGroupsCallable(const ListSurveyResourceByMigrationGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSurveyResourceByMigrationGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::ListSurveyResourceConnectionsOutcome ApdsClient::listSurveyResourceConnections(const ListSurveyResourceConnectionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSurveyResourceConnectionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSurveyResourceConnectionsOutcome(ListSurveyResourceConnectionsResult(outcome.result())); + else + return ListSurveyResourceConnectionsOutcome(outcome.error()); +} + +void ApdsClient::listSurveyResourceConnectionsAsync(const ListSurveyResourceConnectionsRequest& request, const ListSurveyResourceConnectionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSurveyResourceConnections(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::ListSurveyResourceConnectionsOutcomeCallable ApdsClient::listSurveyResourceConnectionsCallable(const ListSurveyResourceConnectionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSurveyResourceConnections(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::ListSurveyResourceTypesOutcome ApdsClient::listSurveyResourceTypes(const ListSurveyResourceTypesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSurveyResourceTypesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSurveyResourceTypesOutcome(ListSurveyResourceTypesResult(outcome.result())); + else + return ListSurveyResourceTypesOutcome(outcome.error()); +} + +void ApdsClient::listSurveyResourceTypesAsync(const ListSurveyResourceTypesRequest& request, const ListSurveyResourceTypesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSurveyResourceTypes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::ListSurveyResourceTypesOutcomeCallable ApdsClient::listSurveyResourceTypesCallable(const ListSurveyResourceTypesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSurveyResourceTypes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::ListSurveyResourcesDetailOutcome ApdsClient::listSurveyResourcesDetail(const ListSurveyResourcesDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSurveyResourcesDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSurveyResourcesDetailOutcome(ListSurveyResourcesDetailResult(outcome.result())); + else + return ListSurveyResourcesDetailOutcome(outcome.error()); +} + +void ApdsClient::listSurveyResourcesDetailAsync(const ListSurveyResourcesDetailRequest& request, const ListSurveyResourcesDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSurveyResourcesDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::ListSurveyResourcesDetailOutcomeCallable ApdsClient::listSurveyResourcesDetailCallable(const ListSurveyResourcesDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSurveyResourcesDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::RecoverMigrationJobOutcome ApdsClient::recoverMigrationJob(const RecoverMigrationJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RecoverMigrationJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RecoverMigrationJobOutcome(RecoverMigrationJobResult(outcome.result())); + else + return RecoverMigrationJobOutcome(outcome.error()); +} + +void ApdsClient::recoverMigrationJobAsync(const RecoverMigrationJobRequest& request, const RecoverMigrationJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, recoverMigrationJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::RecoverMigrationJobOutcomeCallable ApdsClient::recoverMigrationJobCallable(const RecoverMigrationJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->recoverMigrationJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::StopSyncMigrationJobOutcome ApdsClient::stopSyncMigrationJob(const StopSyncMigrationJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopSyncMigrationJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopSyncMigrationJobOutcome(StopSyncMigrationJobResult(outcome.result())); + else + return StopSyncMigrationJobOutcome(outcome.error()); +} + +void ApdsClient::stopSyncMigrationJobAsync(const StopSyncMigrationJobRequest& request, const StopSyncMigrationJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopSyncMigrationJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::StopSyncMigrationJobOutcomeCallable ApdsClient::stopSyncMigrationJobCallable(const StopSyncMigrationJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopSyncMigrationJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ApdsClient::SyncMigrationJobOutcome ApdsClient::syncMigrationJob(const SyncMigrationJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SyncMigrationJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SyncMigrationJobOutcome(SyncMigrationJobResult(outcome.result())); + else + return SyncMigrationJobOutcome(outcome.error()); +} + +void ApdsClient::syncMigrationJobAsync(const SyncMigrationJobRequest& request, const SyncMigrationJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, syncMigrationJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ApdsClient::SyncMigrationJobOutcomeCallable ApdsClient::syncMigrationJobCallable(const SyncMigrationJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->syncMigrationJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/apds/src/model/CreateFileJobRequest.cc b/apds/src/model/CreateFileJobRequest.cc new file mode 100644 index 000000000..8f67b3e43 --- /dev/null +++ b/apds/src/model/CreateFileJobRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::CreateFileJobRequest; + +CreateFileJobRequest::CreateFileJobRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/file-job/create"}; + setMethod(HttpRequest::Method::Post); +} + +CreateFileJobRequest::~CreateFileJobRequest() {} + +std::string CreateFileJobRequest::getBody() const { + return body_; +} + +void CreateFileJobRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + +string CreateFileJobRequest::getRegionId() const { + return regionId_; +} + +void CreateFileJobRequest::setRegionId(string regionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), std::to_string(regionId)); +} + diff --git a/apds/src/model/CreateFileJobResult.cc b/apds/src/model/CreateFileJobResult.cc new file mode 100644 index 000000000..1a902f635 --- /dev/null +++ b/apds/src/model/CreateFileJobResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +CreateFileJobResult::CreateFileJobResult() : + ServiceResult() +{} + +CreateFileJobResult::CreateFileJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateFileJobResult::~CreateFileJobResult() +{} + +void CreateFileJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["error"].isNull()) + error_ = value["error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string CreateFileJobResult::getError()const +{ + return error_; +} + +ObjectOfAny CreateFileJobResult::getData()const +{ + return data_; +} + +std::string CreateFileJobResult::getCode()const +{ + return code_; +} + +bool CreateFileJobResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/CreateMigrationGroupRequest.cc b/apds/src/model/CreateMigrationGroupRequest.cc new file mode 100644 index 000000000..e9d3fce38 --- /dev/null +++ b/apds/src/model/CreateMigrationGroupRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::CreateMigrationGroupRequest; + +CreateMigrationGroupRequest::CreateMigrationGroupRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/migration-group/save-migration-group"}; + setMethod(HttpRequest::Method::Post); +} + +CreateMigrationGroupRequest::~CreateMigrationGroupRequest() {} + +std::string CreateMigrationGroupRequest::getBody() const { + return body_; +} + +void CreateMigrationGroupRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + +string CreateMigrationGroupRequest::getRegionId() const { + return regionId_; +} + +void CreateMigrationGroupRequest::setRegionId(string regionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), std::to_string(regionId)); +} + diff --git a/apds/src/model/CreateMigrationGroupResult.cc b/apds/src/model/CreateMigrationGroupResult.cc new file mode 100644 index 000000000..d3fd1b5d8 --- /dev/null +++ b/apds/src/model/CreateMigrationGroupResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +CreateMigrationGroupResult::CreateMigrationGroupResult() : + ServiceResult() +{} + +CreateMigrationGroupResult::CreateMigrationGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateMigrationGroupResult::~CreateMigrationGroupResult() +{} + +void CreateMigrationGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Error"].isNull()) + error_ = value["Error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string CreateMigrationGroupResult::getError()const +{ + return error_; +} + +ObjectOfAny CreateMigrationGroupResult::getData()const +{ + return data_; +} + +std::string CreateMigrationGroupResult::getCode()const +{ + return code_; +} + +bool CreateMigrationGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/CreateMigrationJobRequest.cc b/apds/src/model/CreateMigrationJobRequest.cc new file mode 100644 index 000000000..cf93ad461 --- /dev/null +++ b/apds/src/model/CreateMigrationJobRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::CreateMigrationJobRequest; + +CreateMigrationJobRequest::CreateMigrationJobRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/migration-job/create-migration-jobs"}; + setMethod(HttpRequest::Method::Post); +} + +CreateMigrationJobRequest::~CreateMigrationJobRequest() {} + +std::string CreateMigrationJobRequest::getBody() const { + return body_; +} + +void CreateMigrationJobRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/apds/src/model/CreateMigrationJobResult.cc b/apds/src/model/CreateMigrationJobResult.cc new file mode 100644 index 000000000..a011e294c --- /dev/null +++ b/apds/src/model/CreateMigrationJobResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +CreateMigrationJobResult::CreateMigrationJobResult() : + ServiceResult() +{} + +CreateMigrationJobResult::CreateMigrationJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateMigrationJobResult::~CreateMigrationJobResult() +{} + +void CreateMigrationJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Error"].isNull()) + error_ = value["Error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string CreateMigrationJobResult::getError()const +{ + return error_; +} + +ObjectOfAny CreateMigrationJobResult::getData()const +{ + return data_; +} + +std::string CreateMigrationJobResult::getCode()const +{ + return code_; +} + +bool CreateMigrationJobResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/CreateSurveyJobOfflineRequest.cc b/apds/src/model/CreateSurveyJobOfflineRequest.cc new file mode 100644 index 000000000..a5ed62b65 --- /dev/null +++ b/apds/src/model/CreateSurveyJobOfflineRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::CreateSurveyJobOfflineRequest; + +CreateSurveyJobOfflineRequest::CreateSurveyJobOfflineRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/winback/add-import-survey-job"}; + setMethod(HttpRequest::Method::Post); +} + +CreateSurveyJobOfflineRequest::~CreateSurveyJobOfflineRequest() {} + +std::string CreateSurveyJobOfflineRequest::getBody() const { + return body_; +} + +void CreateSurveyJobOfflineRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + +string CreateSurveyJobOfflineRequest::getRegionId() const { + return regionId_; +} + +void CreateSurveyJobOfflineRequest::setRegionId(string regionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), std::to_string(regionId)); +} + diff --git a/apds/src/model/CreateSurveyJobOfflineResult.cc b/apds/src/model/CreateSurveyJobOfflineResult.cc new file mode 100644 index 000000000..22da31418 --- /dev/null +++ b/apds/src/model/CreateSurveyJobOfflineResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +CreateSurveyJobOfflineResult::CreateSurveyJobOfflineResult() : + ServiceResult() +{} + +CreateSurveyJobOfflineResult::CreateSurveyJobOfflineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSurveyJobOfflineResult::~CreateSurveyJobOfflineResult() +{} + +void CreateSurveyJobOfflineResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["error"].isNull()) + error_ = value["error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string CreateSurveyJobOfflineResult::getError()const +{ + return error_; +} + +ObjectOfAny CreateSurveyJobOfflineResult::getData()const +{ + return data_; +} + +std::string CreateSurveyJobOfflineResult::getCode()const +{ + return code_; +} + +bool CreateSurveyJobOfflineResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/CreateSurveyJobRequest.cc b/apds/src/model/CreateSurveyJobRequest.cc new file mode 100644 index 000000000..853be1038 --- /dev/null +++ b/apds/src/model/CreateSurveyJobRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::CreateSurveyJobRequest; + +CreateSurveyJobRequest::CreateSurveyJobRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/winback/add-survey-job"}; + setMethod(HttpRequest::Method::Post); +} + +CreateSurveyJobRequest::~CreateSurveyJobRequest() {} + +std::string CreateSurveyJobRequest::getBody() const { + return body_; +} + +void CreateSurveyJobRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + +string CreateSurveyJobRequest::getRegionId() const { + return regionId_; +} + +void CreateSurveyJobRequest::setRegionId(string regionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), std::to_string(regionId)); +} + diff --git a/apds/src/model/CreateSurveyJobResult.cc b/apds/src/model/CreateSurveyJobResult.cc new file mode 100644 index 000000000..6aa852ec1 --- /dev/null +++ b/apds/src/model/CreateSurveyJobResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +CreateSurveyJobResult::CreateSurveyJobResult() : + ServiceResult() +{} + +CreateSurveyJobResult::CreateSurveyJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSurveyJobResult::~CreateSurveyJobResult() +{} + +void CreateSurveyJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["error"].isNull()) + error_ = value["error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string CreateSurveyJobResult::getError()const +{ + return error_; +} + +ObjectOfAny CreateSurveyJobResult::getData()const +{ + return data_; +} + +std::string CreateSurveyJobResult::getCode()const +{ + return code_; +} + +bool CreateSurveyJobResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/DeleteMigrationGroupRequest.cc b/apds/src/model/DeleteMigrationGroupRequest.cc new file mode 100644 index 000000000..15cb9274f --- /dev/null +++ b/apds/src/model/DeleteMigrationGroupRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::DeleteMigrationGroupRequest; + +DeleteMigrationGroupRequest::DeleteMigrationGroupRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/migration-group/remove-migration-group"}; + setMethod(HttpRequest::Method::Post); +} + +DeleteMigrationGroupRequest::~DeleteMigrationGroupRequest() {} + +integer DeleteMigrationGroupRequest::getId() const { + return id_; +} + +void DeleteMigrationGroupRequest::setId(integer id) { + id_ = id; + setParameter(std::string("id"), std::to_string(id)); +} + diff --git a/apds/src/model/DeleteMigrationGroupResult.cc b/apds/src/model/DeleteMigrationGroupResult.cc new file mode 100644 index 000000000..2fc80f1c4 --- /dev/null +++ b/apds/src/model/DeleteMigrationGroupResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +DeleteMigrationGroupResult::DeleteMigrationGroupResult() : + ServiceResult() +{} + +DeleteMigrationGroupResult::DeleteMigrationGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteMigrationGroupResult::~DeleteMigrationGroupResult() +{} + +void DeleteMigrationGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["error"].isNull()) + error_ = value["error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DeleteMigrationGroupResult::getError()const +{ + return error_; +} + +ObjectOfAny DeleteMigrationGroupResult::getData()const +{ + return data_; +} + +std::string DeleteMigrationGroupResult::getCode()const +{ + return code_; +} + +bool DeleteMigrationGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/DeleteMigrationJobRequest.cc b/apds/src/model/DeleteMigrationJobRequest.cc new file mode 100644 index 000000000..faed75769 --- /dev/null +++ b/apds/src/model/DeleteMigrationJobRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::DeleteMigrationJobRequest; + +DeleteMigrationJobRequest::DeleteMigrationJobRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/migration-job/remove-migration-job"}; + setMethod(HttpRequest::Method::Post); +} + +DeleteMigrationJobRequest::~DeleteMigrationJobRequest() {} + +integer DeleteMigrationJobRequest::getId() const { + return id_; +} + +void DeleteMigrationJobRequest::setId(integer id) { + id_ = id; + setParameter(std::string("id"), std::to_string(id)); +} + diff --git a/apds/src/model/DeleteMigrationJobResult.cc b/apds/src/model/DeleteMigrationJobResult.cc new file mode 100644 index 000000000..52ffd08b9 --- /dev/null +++ b/apds/src/model/DeleteMigrationJobResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +DeleteMigrationJobResult::DeleteMigrationJobResult() : + ServiceResult() +{} + +DeleteMigrationJobResult::DeleteMigrationJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteMigrationJobResult::~DeleteMigrationJobResult() +{} + +void DeleteMigrationJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["error"].isNull()) + error_ = value["error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DeleteMigrationJobResult::getError()const +{ + return error_; +} + +ObjectOfAny DeleteMigrationJobResult::getData()const +{ + return data_; +} + +std::string DeleteMigrationJobResult::getCode()const +{ + return code_; +} + +bool DeleteMigrationJobResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/DeleteOssFileRequest.cc b/apds/src/model/DeleteOssFileRequest.cc new file mode 100644 index 000000000..2fba1d22d --- /dev/null +++ b/apds/src/model/DeleteOssFileRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::DeleteOssFileRequest; + +DeleteOssFileRequest::DeleteOssFileRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/file-job/delete-file"}; + setMethod(HttpRequest::Method::Post); +} + +DeleteOssFileRequest::~DeleteOssFileRequest() {} + +string DeleteOssFileRequest::getObjectName() const { + return objectName_; +} + +void DeleteOssFileRequest::setObjectName(string objectName) { + objectName_ = objectName; + setParameter(std::string("objectName"), std::to_string(objectName)); +} + +string DeleteOssFileRequest::getRegionId() const { + return regionId_; +} + +void DeleteOssFileRequest::setRegionId(string regionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), std::to_string(regionId)); +} + diff --git a/apds/src/model/DeleteOssFileResult.cc b/apds/src/model/DeleteOssFileResult.cc new file mode 100644 index 000000000..d65e63d22 --- /dev/null +++ b/apds/src/model/DeleteOssFileResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +DeleteOssFileResult::DeleteOssFileResult() : + ServiceResult() +{} + +DeleteOssFileResult::DeleteOssFileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteOssFileResult::~DeleteOssFileResult() +{} + +void DeleteOssFileResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["error"].isNull()) + error_ = value["error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DeleteOssFileResult::getError()const +{ + return error_; +} + +ObjectOfAny DeleteOssFileResult::getData()const +{ + return data_; +} + +std::string DeleteOssFileResult::getCode()const +{ + return code_; +} + +bool DeleteOssFileResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/DeleteSurveyJobRequest.cc b/apds/src/model/DeleteSurveyJobRequest.cc new file mode 100644 index 000000000..f4012d2ca --- /dev/null +++ b/apds/src/model/DeleteSurveyJobRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::DeleteSurveyJobRequest; + +DeleteSurveyJobRequest::DeleteSurveyJobRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/winback/delete-survey-job"}; + setMethod(HttpRequest::Method::Post); +} + +DeleteSurveyJobRequest::~DeleteSurveyJobRequest() {} + +integer DeleteSurveyJobRequest::getId() const { + return id_; +} + +void DeleteSurveyJobRequest::setId(integer id) { + id_ = id; + setParameter(std::string("id"), std::to_string(id)); +} + diff --git a/apds/src/model/DeleteSurveyJobResult.cc b/apds/src/model/DeleteSurveyJobResult.cc new file mode 100644 index 000000000..3740950a2 --- /dev/null +++ b/apds/src/model/DeleteSurveyJobResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +DeleteSurveyJobResult::DeleteSurveyJobResult() : + ServiceResult() +{} + +DeleteSurveyJobResult::DeleteSurveyJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSurveyJobResult::~DeleteSurveyJobResult() +{} + +void DeleteSurveyJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["error"].isNull()) + error_ = value["error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DeleteSurveyJobResult::getError()const +{ + return error_; +} + +ObjectOfAny DeleteSurveyJobResult::getData()const +{ + return data_; +} + +std::string DeleteSurveyJobResult::getCode()const +{ + return code_; +} + +bool DeleteSurveyJobResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/DeleteSurveyResourcesRequest.cc b/apds/src/model/DeleteSurveyResourcesRequest.cc new file mode 100644 index 000000000..277e96d26 --- /dev/null +++ b/apds/src/model/DeleteSurveyResourcesRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::DeleteSurveyResourcesRequest; + +DeleteSurveyResourcesRequest::DeleteSurveyResourcesRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/confirm-resource/destroy"}; + setMethod(HttpRequest::Method::Post); +} + +DeleteSurveyResourcesRequest::~DeleteSurveyResourcesRequest() {} + +string DeleteSurveyResourcesRequest::getIds() const { + return ids_; +} + +void DeleteSurveyResourcesRequest::setIds(string ids) { + ids_ = ids; + setParameter(std::string("ids"), std::to_string(ids)); +} + diff --git a/apds/src/model/DeleteSurveyResourcesResult.cc b/apds/src/model/DeleteSurveyResourcesResult.cc new file mode 100644 index 000000000..97f374c70 --- /dev/null +++ b/apds/src/model/DeleteSurveyResourcesResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +DeleteSurveyResourcesResult::DeleteSurveyResourcesResult() : + ServiceResult() +{} + +DeleteSurveyResourcesResult::DeleteSurveyResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSurveyResourcesResult::~DeleteSurveyResourcesResult() +{} + +void DeleteSurveyResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Error"].isNull()) + error_ = value["Error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DeleteSurveyResourcesResult::getError()const +{ + return error_; +} + +ObjectOfAny DeleteSurveyResourcesResult::getData()const +{ + return data_; +} + +std::string DeleteSurveyResourcesResult::getCode()const +{ + return code_; +} + +bool DeleteSurveyResourcesResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/DescribeMigrationJobConfigRequest.cc b/apds/src/model/DescribeMigrationJobConfigRequest.cc new file mode 100644 index 000000000..ffce44dba --- /dev/null +++ b/apds/src/model/DescribeMigrationJobConfigRequest.cc @@ -0,0 +1,28 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::DescribeMigrationJobConfigRequest; + +DescribeMigrationJobConfigRequest::DescribeMigrationJobConfigRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/migration-job/describe-migration-job-config"}; + setMethod(HttpRequest::Method::Post); +} + +DescribeMigrationJobConfigRequest::~DescribeMigrationJobConfigRequest() {} + diff --git a/apds/src/model/DescribeMigrationJobConfigResult.cc b/apds/src/model/DescribeMigrationJobConfigResult.cc new file mode 100644 index 000000000..5fb9cdd45 --- /dev/null +++ b/apds/src/model/DescribeMigrationJobConfigResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +DescribeMigrationJobConfigResult::DescribeMigrationJobConfigResult() : + ServiceResult() +{} + +DescribeMigrationJobConfigResult::DescribeMigrationJobConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMigrationJobConfigResult::~DescribeMigrationJobConfigResult() +{} + +void DescribeMigrationJobConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["error"].isNull()) + error_ = value["error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DescribeMigrationJobConfigResult::getError()const +{ + return error_; +} + +ObjectOfAny DescribeMigrationJobConfigResult::getData()const +{ + return data_; +} + +std::string DescribeMigrationJobConfigResult::getCode()const +{ + return code_; +} + +bool DescribeMigrationJobConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/DescribeMigrationJobCountRequest.cc b/apds/src/model/DescribeMigrationJobCountRequest.cc new file mode 100644 index 000000000..2d22305b3 --- /dev/null +++ b/apds/src/model/DescribeMigrationJobCountRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::DescribeMigrationJobCountRequest; + +DescribeMigrationJobCountRequest::DescribeMigrationJobCountRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/migration-job/count-migration-jobs"}; + setMethod(HttpRequest::Method::Post); +} + +DescribeMigrationJobCountRequest::~DescribeMigrationJobCountRequest() {} + +std::string DescribeMigrationJobCountRequest::getBody() const { + return body_; +} + +void DescribeMigrationJobCountRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/apds/src/model/DescribeMigrationJobCountResult.cc b/apds/src/model/DescribeMigrationJobCountResult.cc new file mode 100644 index 000000000..6b91f98bc --- /dev/null +++ b/apds/src/model/DescribeMigrationJobCountResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +DescribeMigrationJobCountResult::DescribeMigrationJobCountResult() : + ServiceResult() +{} + +DescribeMigrationJobCountResult::DescribeMigrationJobCountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMigrationJobCountResult::~DescribeMigrationJobCountResult() +{} + +void DescribeMigrationJobCountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["error"].isNull()) + error_ = value["error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DescribeMigrationJobCountResult::getError()const +{ + return error_; +} + +ObjectOfAny DescribeMigrationJobCountResult::getData()const +{ + return data_; +} + +std::string DescribeMigrationJobCountResult::getCode()const +{ + return code_; +} + +bool DescribeMigrationJobCountResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/DescribeOssStsRequest.cc b/apds/src/model/DescribeOssStsRequest.cc new file mode 100644 index 000000000..2fa4c823a --- /dev/null +++ b/apds/src/model/DescribeOssStsRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::DescribeOssStsRequest; + +DescribeOssStsRequest::DescribeOssStsRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/file-job/sts"}; + setMethod(HttpRequest::Method::Post); +} + +DescribeOssStsRequest::~DescribeOssStsRequest() {} + +string DescribeOssStsRequest::getCloudType() const { + return cloudType_; +} + +void DescribeOssStsRequest::setCloudType(string cloudType) { + cloudType_ = cloudType; + setParameter(std::string("cloudType"), std::to_string(cloudType)); +} + +string DescribeOssStsRequest::getAk() const { + return ak_; +} + +void DescribeOssStsRequest::setAk(string ak) { + ak_ = ak; + setParameter(std::string("ak"), std::to_string(ak)); +} + +string DescribeOssStsRequest::getRegionId() const { + return regionId_; +} + +void DescribeOssStsRequest::setRegionId(string regionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), std::to_string(regionId)); +} + +string DescribeOssStsRequest::getSk() const { + return sk_; +} + +void DescribeOssStsRequest::setSk(string sk) { + sk_ = sk; + setParameter(std::string("sk"), std::to_string(sk)); +} + +string DescribeOssStsRequest::getTenantId() const { + return tenantId_; +} + +void DescribeOssStsRequest::setTenantId(string tenantId) { + tenantId_ = tenantId; + setParameter(std::string("tenantId"), std::to_string(tenantId)); +} + +string DescribeOssStsRequest::getRegion() const { + return region_; +} + +void DescribeOssStsRequest::setRegion(string region) { + region_ = region; + setParameter(std::string("region"), std::to_string(region)); +} + diff --git a/apds/src/model/DescribeOssStsResult.cc b/apds/src/model/DescribeOssStsResult.cc new file mode 100644 index 000000000..1562e5dcf --- /dev/null +++ b/apds/src/model/DescribeOssStsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +DescribeOssStsResult::DescribeOssStsResult() : + ServiceResult() +{} + +DescribeOssStsResult::DescribeOssStsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeOssStsResult::~DescribeOssStsResult() +{} + +void DescribeOssStsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["error"].isNull()) + error_ = value["error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DescribeOssStsResult::getError()const +{ + return error_; +} + +ObjectOfAny DescribeOssStsResult::getData()const +{ + return data_; +} + +std::string DescribeOssStsResult::getCode()const +{ + return code_; +} + +bool DescribeOssStsResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/DescribeSummaryByStatusAndGroupRequest.cc b/apds/src/model/DescribeSummaryByStatusAndGroupRequest.cc new file mode 100644 index 000000000..f11995d5b --- /dev/null +++ b/apds/src/model/DescribeSummaryByStatusAndGroupRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::DescribeSummaryByStatusAndGroupRequest; + +DescribeSummaryByStatusAndGroupRequest::DescribeSummaryByStatusAndGroupRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/summary/summary-by-status-and-region"}; + setMethod(HttpRequest::Method::Post); +} + +DescribeSummaryByStatusAndGroupRequest::~DescribeSummaryByStatusAndGroupRequest() {} + +string DescribeSummaryByStatusAndGroupRequest::getRegionId() const { + return regionId_; +} + +void DescribeSummaryByStatusAndGroupRequest::setRegionId(string regionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), std::to_string(regionId)); +} + diff --git a/apds/src/model/DescribeSummaryByStatusAndGroupResult.cc b/apds/src/model/DescribeSummaryByStatusAndGroupResult.cc new file mode 100644 index 000000000..3f71db2f0 --- /dev/null +++ b/apds/src/model/DescribeSummaryByStatusAndGroupResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +DescribeSummaryByStatusAndGroupResult::DescribeSummaryByStatusAndGroupResult() : + ServiceResult() +{} + +DescribeSummaryByStatusAndGroupResult::DescribeSummaryByStatusAndGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSummaryByStatusAndGroupResult::~DescribeSummaryByStatusAndGroupResult() +{} + +void DescribeSummaryByStatusAndGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Error"].isNull()) + error_ = value["Error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DescribeSummaryByStatusAndGroupResult::getError()const +{ + return error_; +} + +ObjectOfAny DescribeSummaryByStatusAndGroupResult::getData()const +{ + return data_; +} + +std::string DescribeSummaryByStatusAndGroupResult::getCode()const +{ + return code_; +} + +bool DescribeSummaryByStatusAndGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/DescribeSummaryByStatusRequest.cc b/apds/src/model/DescribeSummaryByStatusRequest.cc new file mode 100644 index 000000000..5bf9f3b2b --- /dev/null +++ b/apds/src/model/DescribeSummaryByStatusRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::DescribeSummaryByStatusRequest; + +DescribeSummaryByStatusRequest::DescribeSummaryByStatusRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/summary/summary-by-status"}; + setMethod(HttpRequest::Method::Post); +} + +DescribeSummaryByStatusRequest::~DescribeSummaryByStatusRequest() {} + +string DescribeSummaryByStatusRequest::getRegionId() const { + return regionId_; +} + +void DescribeSummaryByStatusRequest::setRegionId(string regionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), std::to_string(regionId)); +} + diff --git a/apds/src/model/DescribeSummaryByStatusResult.cc b/apds/src/model/DescribeSummaryByStatusResult.cc new file mode 100644 index 000000000..fa9e7742f --- /dev/null +++ b/apds/src/model/DescribeSummaryByStatusResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +DescribeSummaryByStatusResult::DescribeSummaryByStatusResult() : + ServiceResult() +{} + +DescribeSummaryByStatusResult::DescribeSummaryByStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSummaryByStatusResult::~DescribeSummaryByStatusResult() +{} + +void DescribeSummaryByStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Error"].isNull()) + error_ = value["Error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DescribeSummaryByStatusResult::getError()const +{ + return error_; +} + +ObjectOfAny DescribeSummaryByStatusResult::getData()const +{ + return data_; +} + +std::string DescribeSummaryByStatusResult::getCode()const +{ + return code_; +} + +bool DescribeSummaryByStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/DescribeSurveyJobCountRequest.cc b/apds/src/model/DescribeSurveyJobCountRequest.cc new file mode 100644 index 000000000..f722c8c30 --- /dev/null +++ b/apds/src/model/DescribeSurveyJobCountRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::DescribeSurveyJobCountRequest; + +DescribeSurveyJobCountRequest::DescribeSurveyJobCountRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/winback/count-survey-job"}; + setMethod(HttpRequest::Method::Post); +} + +DescribeSurveyJobCountRequest::~DescribeSurveyJobCountRequest() {} + +string DescribeSurveyJobCountRequest::getRegionId() const { + return regionId_; +} + +void DescribeSurveyJobCountRequest::setRegionId(string regionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), std::to_string(regionId)); +} + diff --git a/apds/src/model/DescribeSurveyJobCountResult.cc b/apds/src/model/DescribeSurveyJobCountResult.cc new file mode 100644 index 000000000..dfc77fd75 --- /dev/null +++ b/apds/src/model/DescribeSurveyJobCountResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +DescribeSurveyJobCountResult::DescribeSurveyJobCountResult() : + ServiceResult() +{} + +DescribeSurveyJobCountResult::DescribeSurveyJobCountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSurveyJobCountResult::~DescribeSurveyJobCountResult() +{} + +void DescribeSurveyJobCountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["error"].isNull()) + error_ = value["error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DescribeSurveyJobCountResult::getError()const +{ + return error_; +} + +ObjectOfAny DescribeSurveyJobCountResult::getData()const +{ + return data_; +} + +std::string DescribeSurveyJobCountResult::getCode()const +{ + return code_; +} + +bool DescribeSurveyJobCountResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/DescribeSurveyJobRequest.cc b/apds/src/model/DescribeSurveyJobRequest.cc new file mode 100644 index 000000000..d76ef6413 --- /dev/null +++ b/apds/src/model/DescribeSurveyJobRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::DescribeSurveyJobRequest; + +DescribeSurveyJobRequest::DescribeSurveyJobRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/winback/query-survey-job"}; + setMethod(HttpRequest::Method::Post); +} + +DescribeSurveyJobRequest::~DescribeSurveyJobRequest() {} + +string DescribeSurveyJobRequest::getRegionId() const { + return regionId_; +} + +void DescribeSurveyJobRequest::setRegionId(string regionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), std::to_string(regionId)); +} + +integer DescribeSurveyJobRequest::getId() const { + return id_; +} + +void DescribeSurveyJobRequest::setId(integer id) { + id_ = id; + setParameter(std::string("id"), std::to_string(id)); +} + diff --git a/apds/src/model/DescribeSurveyJobResult.cc b/apds/src/model/DescribeSurveyJobResult.cc new file mode 100644 index 000000000..b76d685cc --- /dev/null +++ b/apds/src/model/DescribeSurveyJobResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +DescribeSurveyJobResult::DescribeSurveyJobResult() : + ServiceResult() +{} + +DescribeSurveyJobResult::DescribeSurveyJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSurveyJobResult::~DescribeSurveyJobResult() +{} + +void DescribeSurveyJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["error"].isNull()) + error_ = value["error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DescribeSurveyJobResult::getError()const +{ + return error_; +} + +ObjectOfAny DescribeSurveyJobResult::getData()const +{ + return data_; +} + +std::string DescribeSurveyJobResult::getCode()const +{ + return code_; +} + +bool DescribeSurveyJobResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/DescribeSurveyResourceTagRequest.cc b/apds/src/model/DescribeSurveyResourceTagRequest.cc new file mode 100644 index 000000000..8007d5b3e --- /dev/null +++ b/apds/src/model/DescribeSurveyResourceTagRequest.cc @@ -0,0 +1,28 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::DescribeSurveyResourceTagRequest; + +DescribeSurveyResourceTagRequest::DescribeSurveyResourceTagRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/confirm-resource/get-resource-tag"}; + setMethod(HttpRequest::Method::Post); +} + +DescribeSurveyResourceTagRequest::~DescribeSurveyResourceTagRequest() {} + diff --git a/apds/src/model/DescribeSurveyResourceTagResult.cc b/apds/src/model/DescribeSurveyResourceTagResult.cc new file mode 100644 index 000000000..487ebabf9 --- /dev/null +++ b/apds/src/model/DescribeSurveyResourceTagResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +DescribeSurveyResourceTagResult::DescribeSurveyResourceTagResult() : + ServiceResult() +{} + +DescribeSurveyResourceTagResult::DescribeSurveyResourceTagResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSurveyResourceTagResult::~DescribeSurveyResourceTagResult() +{} + +void DescribeSurveyResourceTagResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Error"].isNull()) + error_ = value["Error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DescribeSurveyResourceTagResult::getError()const +{ + return error_; +} + +ObjectOfAny DescribeSurveyResourceTagResult::getData()const +{ + return data_; +} + +std::string DescribeSurveyResourceTagResult::getCode()const +{ + return code_; +} + +bool DescribeSurveyResourceTagResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/DescribeSurveyTemplateRequest.cc b/apds/src/model/DescribeSurveyTemplateRequest.cc new file mode 100644 index 000000000..f16cdd220 --- /dev/null +++ b/apds/src/model/DescribeSurveyTemplateRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::DescribeSurveyTemplateRequest; + +DescribeSurveyTemplateRequest::DescribeSurveyTemplateRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/survey-template/list"}; + setMethod(HttpRequest::Method::Post); +} + +DescribeSurveyTemplateRequest::~DescribeSurveyTemplateRequest() {} + +string DescribeSurveyTemplateRequest::getResourceType() const { + return resourceType_; +} + +void DescribeSurveyTemplateRequest::setResourceType(string resourceType) { + resourceType_ = resourceType; + setParameter(std::string("resourceType"), std::to_string(resourceType)); +} + diff --git a/apds/src/model/DescribeSurveyTemplateResult.cc b/apds/src/model/DescribeSurveyTemplateResult.cc new file mode 100644 index 000000000..a5ad21fe8 --- /dev/null +++ b/apds/src/model/DescribeSurveyTemplateResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +DescribeSurveyTemplateResult::DescribeSurveyTemplateResult() : + ServiceResult() +{} + +DescribeSurveyTemplateResult::DescribeSurveyTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSurveyTemplateResult::~DescribeSurveyTemplateResult() +{} + +void DescribeSurveyTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["error"].isNull()) + error_ = value["error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DescribeSurveyTemplateResult::getError()const +{ + return error_; +} + +ObjectOfAny DescribeSurveyTemplateResult::getData()const +{ + return data_; +} + +std::string DescribeSurveyTemplateResult::getCode()const +{ + return code_; +} + +bool DescribeSurveyTemplateResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/ListMigrationJobsRequest.cc b/apds/src/model/ListMigrationJobsRequest.cc new file mode 100644 index 000000000..f0d2fd043 --- /dev/null +++ b/apds/src/model/ListMigrationJobsRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::ListMigrationJobsRequest; + +ListMigrationJobsRequest::ListMigrationJobsRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/migration-job/describe-migration-jobs"}; + setMethod(HttpRequest::Method::Post); +} + +ListMigrationJobsRequest::~ListMigrationJobsRequest() {} + +std::string ListMigrationJobsRequest::getBody() const { + return body_; +} + +void ListMigrationJobsRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/apds/src/model/ListMigrationJobsResult.cc b/apds/src/model/ListMigrationJobsResult.cc new file mode 100644 index 000000000..1d550a13a --- /dev/null +++ b/apds/src/model/ListMigrationJobsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +ListMigrationJobsResult::ListMigrationJobsResult() : + ServiceResult() +{} + +ListMigrationJobsResult::ListMigrationJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListMigrationJobsResult::~ListMigrationJobsResult() +{} + +void ListMigrationJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["error"].isNull()) + error_ = value["error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string ListMigrationJobsResult::getError()const +{ + return error_; +} + +ObjectOfAny ListMigrationJobsResult::getData()const +{ + return data_; +} + +std::string ListMigrationJobsResult::getCode()const +{ + return code_; +} + +bool ListMigrationJobsResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/ListRegionsRequest.cc b/apds/src/model/ListRegionsRequest.cc new file mode 100644 index 000000000..a4b06a5f9 --- /dev/null +++ b/apds/src/model/ListRegionsRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::ListRegionsRequest; + +ListRegionsRequest::ListRegionsRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/winback/query-region"}; + setMethod(HttpRequest::Method::Post); +} + +ListRegionsRequest::~ListRegionsRequest() {} + +string ListRegionsRequest::getCloudType() const { + return cloudType_; +} + +void ListRegionsRequest::setCloudType(string cloudType) { + cloudType_ = cloudType; + setParameter(std::string("cloudType"), std::to_string(cloudType)); +} + +string ListRegionsRequest::getAk() const { + return ak_; +} + +void ListRegionsRequest::setAk(string ak) { + ak_ = ak; + setParameter(std::string("ak"), std::to_string(ak)); +} + +string ListRegionsRequest::getRegionId() const { + return regionId_; +} + +void ListRegionsRequest::setRegionId(string regionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), std::to_string(regionId)); +} + +string ListRegionsRequest::getSk() const { + return sk_; +} + +void ListRegionsRequest::setSk(string sk) { + sk_ = sk; + setParameter(std::string("sk"), std::to_string(sk)); +} + +string ListRegionsRequest::getTenantId() const { + return tenantId_; +} + +void ListRegionsRequest::setTenantId(string tenantId) { + tenantId_ = tenantId; + setParameter(std::string("tenantId"), std::to_string(tenantId)); +} + +string ListRegionsRequest::getRegion() const { + return region_; +} + +void ListRegionsRequest::setRegion(string region) { + region_ = region; + setParameter(std::string("region"), std::to_string(region)); +} + diff --git a/apds/src/model/ListRegionsResult.cc b/apds/src/model/ListRegionsResult.cc new file mode 100644 index 000000000..4d1add162 --- /dev/null +++ b/apds/src/model/ListRegionsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +ListRegionsResult::ListRegionsResult() : + ServiceResult() +{} + +ListRegionsResult::ListRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRegionsResult::~ListRegionsResult() +{} + +void ListRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["error"].isNull()) + error_ = value["error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string ListRegionsResult::getError()const +{ + return error_; +} + +ObjectOfAny ListRegionsResult::getData()const +{ + return data_; +} + +std::string ListRegionsResult::getCode()const +{ + return code_; +} + +bool ListRegionsResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/ListSurveyJobDownLoadJobsRequest.cc b/apds/src/model/ListSurveyJobDownLoadJobsRequest.cc new file mode 100644 index 000000000..b2613e29e --- /dev/null +++ b/apds/src/model/ListSurveyJobDownLoadJobsRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::ListSurveyJobDownLoadJobsRequest; + +ListSurveyJobDownLoadJobsRequest::ListSurveyJobDownLoadJobsRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/file-job/list"}; + setMethod(HttpRequest::Method::Post); +} + +ListSurveyJobDownLoadJobsRequest::~ListSurveyJobDownLoadJobsRequest() {} + +std::string ListSurveyJobDownLoadJobsRequest::getBody() const { + return body_; +} + +void ListSurveyJobDownLoadJobsRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + +string ListSurveyJobDownLoadJobsRequest::getRegionId() const { + return regionId_; +} + +void ListSurveyJobDownLoadJobsRequest::setRegionId(string regionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), std::to_string(regionId)); +} + diff --git a/apds/src/model/ListSurveyJobDownLoadJobsResult.cc b/apds/src/model/ListSurveyJobDownLoadJobsResult.cc new file mode 100644 index 000000000..973a65deb --- /dev/null +++ b/apds/src/model/ListSurveyJobDownLoadJobsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +ListSurveyJobDownLoadJobsResult::ListSurveyJobDownLoadJobsResult() : + ServiceResult() +{} + +ListSurveyJobDownLoadJobsResult::ListSurveyJobDownLoadJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSurveyJobDownLoadJobsResult::~ListSurveyJobDownLoadJobsResult() +{} + +void ListSurveyJobDownLoadJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["error"].isNull()) + error_ = value["error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string ListSurveyJobDownLoadJobsResult::getError()const +{ + return error_; +} + +ObjectOfAny ListSurveyJobDownLoadJobsResult::getData()const +{ + return data_; +} + +std::string ListSurveyJobDownLoadJobsResult::getCode()const +{ + return code_; +} + +bool ListSurveyJobDownLoadJobsResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/ListSurveyJobsRequest.cc b/apds/src/model/ListSurveyJobsRequest.cc new file mode 100644 index 000000000..85292decf --- /dev/null +++ b/apds/src/model/ListSurveyJobsRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::ListSurveyJobsRequest; + +ListSurveyJobsRequest::ListSurveyJobsRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/winback/query-survey-jobs"}; + setMethod(HttpRequest::Method::Post); +} + +ListSurveyJobsRequest::~ListSurveyJobsRequest() {} + +std::string ListSurveyJobsRequest::getBody() const { + return body_; +} + +void ListSurveyJobsRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + +string ListSurveyJobsRequest::getRegionId() const { + return regionId_; +} + +void ListSurveyJobsRequest::setRegionId(string regionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), std::to_string(regionId)); +} + diff --git a/apds/src/model/ListSurveyJobsResult.cc b/apds/src/model/ListSurveyJobsResult.cc new file mode 100644 index 000000000..8d0b58324 --- /dev/null +++ b/apds/src/model/ListSurveyJobsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +ListSurveyJobsResult::ListSurveyJobsResult() : + ServiceResult() +{} + +ListSurveyJobsResult::ListSurveyJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSurveyJobsResult::~ListSurveyJobsResult() +{} + +void ListSurveyJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["error"].isNull()) + error_ = value["error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string ListSurveyJobsResult::getError()const +{ + return error_; +} + +ObjectOfAny ListSurveyJobsResult::getData()const +{ + return data_; +} + +std::string ListSurveyJobsResult::getCode()const +{ + return code_; +} + +bool ListSurveyJobsResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/ListSurveyResourceByMigrationGroupsRequest.cc b/apds/src/model/ListSurveyResourceByMigrationGroupsRequest.cc new file mode 100644 index 000000000..3a60eb9b4 --- /dev/null +++ b/apds/src/model/ListSurveyResourceByMigrationGroupsRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::ListSurveyResourceByMigrationGroupsRequest; + +ListSurveyResourceByMigrationGroupsRequest::ListSurveyResourceByMigrationGroupsRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/migration-group/get-survey-resource"}; + setMethod(HttpRequest::Method::Post); +} + +ListSurveyResourceByMigrationGroupsRequest::~ListSurveyResourceByMigrationGroupsRequest() {} + +std::string ListSurveyResourceByMigrationGroupsRequest::getBody() const { + return body_; +} + +void ListSurveyResourceByMigrationGroupsRequest::setBody(const std::string &body) { + body_ = body; + setParameter(std::string("body"), body); +} + diff --git a/apds/src/model/ListSurveyResourceByMigrationGroupsResult.cc b/apds/src/model/ListSurveyResourceByMigrationGroupsResult.cc new file mode 100644 index 000000000..68c01716c --- /dev/null +++ b/apds/src/model/ListSurveyResourceByMigrationGroupsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +ListSurveyResourceByMigrationGroupsResult::ListSurveyResourceByMigrationGroupsResult() : + ServiceResult() +{} + +ListSurveyResourceByMigrationGroupsResult::ListSurveyResourceByMigrationGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSurveyResourceByMigrationGroupsResult::~ListSurveyResourceByMigrationGroupsResult() +{} + +void ListSurveyResourceByMigrationGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Error"].isNull()) + error_ = value["Error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string ListSurveyResourceByMigrationGroupsResult::getError()const +{ + return error_; +} + +ObjectOfAny ListSurveyResourceByMigrationGroupsResult::getData()const +{ + return data_; +} + +std::string ListSurveyResourceByMigrationGroupsResult::getCode()const +{ + return code_; +} + +bool ListSurveyResourceByMigrationGroupsResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/ListSurveyResourceConnectionsRequest.cc b/apds/src/model/ListSurveyResourceConnectionsRequest.cc new file mode 100644 index 000000000..84f3a8bdb --- /dev/null +++ b/apds/src/model/ListSurveyResourceConnectionsRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::ListSurveyResourceConnectionsRequest; + +ListSurveyResourceConnectionsRequest::ListSurveyResourceConnectionsRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/resource-connects"}; + setMethod(HttpRequest::Method::Post); +} + +ListSurveyResourceConnectionsRequest::~ListSurveyResourceConnectionsRequest() {} + +std::string ListSurveyResourceConnectionsRequest::getBody() const { + return body_; +} + +void ListSurveyResourceConnectionsRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + +string ListSurveyResourceConnectionsRequest::getRegionId() const { + return regionId_; +} + +void ListSurveyResourceConnectionsRequest::setRegionId(string regionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), std::to_string(regionId)); +} + diff --git a/apds/src/model/ListSurveyResourceConnectionsResult.cc b/apds/src/model/ListSurveyResourceConnectionsResult.cc new file mode 100644 index 000000000..21476c254 --- /dev/null +++ b/apds/src/model/ListSurveyResourceConnectionsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +ListSurveyResourceConnectionsResult::ListSurveyResourceConnectionsResult() : + ServiceResult() +{} + +ListSurveyResourceConnectionsResult::ListSurveyResourceConnectionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSurveyResourceConnectionsResult::~ListSurveyResourceConnectionsResult() +{} + +void ListSurveyResourceConnectionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Error"].isNull()) + error_ = value["Error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string ListSurveyResourceConnectionsResult::getError()const +{ + return error_; +} + +ObjectOfAny ListSurveyResourceConnectionsResult::getData()const +{ + return data_; +} + +std::string ListSurveyResourceConnectionsResult::getCode()const +{ + return code_; +} + +bool ListSurveyResourceConnectionsResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/ListSurveyResourceTypesRequest.cc b/apds/src/model/ListSurveyResourceTypesRequest.cc new file mode 100644 index 000000000..fd4396a7f --- /dev/null +++ b/apds/src/model/ListSurveyResourceTypesRequest.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::Apds::Model::ListSurveyResourceTypesRequest; + +ListSurveyResourceTypesRequest::ListSurveyResourceTypesRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/winback/query-resource-type"}; + setMethod(HttpRequest::Method::Post); +} + +ListSurveyResourceTypesRequest::~ListSurveyResourceTypesRequest() {} + +string ListSurveyResourceTypesRequest::getCloudType() const { + return cloudType_; +} + +void ListSurveyResourceTypesRequest::setCloudType(string cloudType) { + cloudType_ = cloudType; + setParameter(std::string("cloudType"), std::to_string(cloudType)); +} + +string ListSurveyResourceTypesRequest::getAk() const { + return ak_; +} + +void ListSurveyResourceTypesRequest::setAk(string ak) { + ak_ = ak; + setParameter(std::string("ak"), std::to_string(ak)); +} + +string ListSurveyResourceTypesRequest::getRegionId() const { + return regionId_; +} + +void ListSurveyResourceTypesRequest::setRegionId(string regionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), std::to_string(regionId)); +} + +string ListSurveyResourceTypesRequest::getSk() const { + return sk_; +} + +void ListSurveyResourceTypesRequest::setSk(string sk) { + sk_ = sk; + setParameter(std::string("sk"), std::to_string(sk)); +} + +string ListSurveyResourceTypesRequest::getRegion() const { + return region_; +} + +void ListSurveyResourceTypesRequest::setRegion(string region) { + region_ = region; + setParameter(std::string("region"), std::to_string(region)); +} + diff --git a/apds/src/model/ListSurveyResourceTypesResult.cc b/apds/src/model/ListSurveyResourceTypesResult.cc new file mode 100644 index 000000000..1cca2f705 --- /dev/null +++ b/apds/src/model/ListSurveyResourceTypesResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +ListSurveyResourceTypesResult::ListSurveyResourceTypesResult() : + ServiceResult() +{} + +ListSurveyResourceTypesResult::ListSurveyResourceTypesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSurveyResourceTypesResult::~ListSurveyResourceTypesResult() +{} + +void ListSurveyResourceTypesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["error"].isNull()) + error_ = value["error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string ListSurveyResourceTypesResult::getError()const +{ + return error_; +} + +ObjectOfAny ListSurveyResourceTypesResult::getData()const +{ + return data_; +} + +std::string ListSurveyResourceTypesResult::getCode()const +{ + return code_; +} + +bool ListSurveyResourceTypesResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/ListSurveyResourcesDetailRequest.cc b/apds/src/model/ListSurveyResourcesDetailRequest.cc new file mode 100644 index 000000000..c645f050b --- /dev/null +++ b/apds/src/model/ListSurveyResourcesDetailRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::ListSurveyResourcesDetailRequest; + +ListSurveyResourcesDetailRequest::ListSurveyResourcesDetailRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/survey-detail/query"}; + setMethod(HttpRequest::Method::Post); +} + +ListSurveyResourcesDetailRequest::~ListSurveyResourcesDetailRequest() {} + +std::string ListSurveyResourcesDetailRequest::getBody() const { + return body_; +} + +void ListSurveyResourcesDetailRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + +string ListSurveyResourcesDetailRequest::getRegionId() const { + return regionId_; +} + +void ListSurveyResourcesDetailRequest::setRegionId(string regionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), std::to_string(regionId)); +} + diff --git a/apds/src/model/ListSurveyResourcesDetailResult.cc b/apds/src/model/ListSurveyResourcesDetailResult.cc new file mode 100644 index 000000000..b213da305 --- /dev/null +++ b/apds/src/model/ListSurveyResourcesDetailResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +ListSurveyResourcesDetailResult::ListSurveyResourcesDetailResult() : + ServiceResult() +{} + +ListSurveyResourcesDetailResult::ListSurveyResourcesDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSurveyResourcesDetailResult::~ListSurveyResourcesDetailResult() +{} + +void ListSurveyResourcesDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["error"].isNull()) + error_ = value["error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string ListSurveyResourcesDetailResult::getError()const +{ + return error_; +} + +ObjectOfAny ListSurveyResourcesDetailResult::getData()const +{ + return data_; +} + +std::string ListSurveyResourcesDetailResult::getCode()const +{ + return code_; +} + +bool ListSurveyResourcesDetailResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/RecoverMigrationJobRequest.cc b/apds/src/model/RecoverMigrationJobRequest.cc new file mode 100644 index 000000000..24fd9838a --- /dev/null +++ b/apds/src/model/RecoverMigrationJobRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::RecoverMigrationJobRequest; + +RecoverMigrationJobRequest::RecoverMigrationJobRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/migration-job/recover-migration-job"}; + setMethod(HttpRequest::Method::Post); +} + +RecoverMigrationJobRequest::~RecoverMigrationJobRequest() {} + +integer RecoverMigrationJobRequest::getId() const { + return id_; +} + +void RecoverMigrationJobRequest::setId(integer id) { + id_ = id; + setParameter(std::string("id"), std::to_string(id)); +} + diff --git a/apds/src/model/RecoverMigrationJobResult.cc b/apds/src/model/RecoverMigrationJobResult.cc new file mode 100644 index 000000000..2f2486965 --- /dev/null +++ b/apds/src/model/RecoverMigrationJobResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +RecoverMigrationJobResult::RecoverMigrationJobResult() : + ServiceResult() +{} + +RecoverMigrationJobResult::RecoverMigrationJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RecoverMigrationJobResult::~RecoverMigrationJobResult() +{} + +void RecoverMigrationJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["error"].isNull()) + error_ = value["error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string RecoverMigrationJobResult::getError()const +{ + return error_; +} + +ObjectOfAny RecoverMigrationJobResult::getData()const +{ + return data_; +} + +std::string RecoverMigrationJobResult::getCode()const +{ + return code_; +} + +bool RecoverMigrationJobResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/StopSyncMigrationJobRequest.cc b/apds/src/model/StopSyncMigrationJobRequest.cc new file mode 100644 index 000000000..effcd4718 --- /dev/null +++ b/apds/src/model/StopSyncMigrationJobRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Apds::Model::StopSyncMigrationJobRequest; + +StopSyncMigrationJobRequest::StopSyncMigrationJobRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/migration-job/unsync-migration-job"}; + setMethod(HttpRequest::Method::Post); +} + +StopSyncMigrationJobRequest::~StopSyncMigrationJobRequest() {} + +string StopSyncMigrationJobRequest::getJobType() const { + return jobType_; +} + +void StopSyncMigrationJobRequest::setJobType(string jobType) { + jobType_ = jobType; + setParameter(std::string("jobType"), std::to_string(jobType)); +} + +string StopSyncMigrationJobRequest::getRegionId() const { + return regionId_; +} + +void StopSyncMigrationJobRequest::setRegionId(string regionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), std::to_string(regionId)); +} + diff --git a/apds/src/model/StopSyncMigrationJobResult.cc b/apds/src/model/StopSyncMigrationJobResult.cc new file mode 100644 index 000000000..e102617b9 --- /dev/null +++ b/apds/src/model/StopSyncMigrationJobResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +StopSyncMigrationJobResult::StopSyncMigrationJobResult() : + ServiceResult() +{} + +StopSyncMigrationJobResult::StopSyncMigrationJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopSyncMigrationJobResult::~StopSyncMigrationJobResult() +{} + +void StopSyncMigrationJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["error"].isNull()) + error_ = value["error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string StopSyncMigrationJobResult::getError()const +{ + return error_; +} + +ObjectOfAny StopSyncMigrationJobResult::getData()const +{ + return data_; +} + +std::string StopSyncMigrationJobResult::getCode()const +{ + return code_; +} + +bool StopSyncMigrationJobResult::getSuccess()const +{ + return success_; +} + diff --git a/apds/src/model/SyncMigrationJobRequest.cc b/apds/src/model/SyncMigrationJobRequest.cc new file mode 100644 index 000000000..b98be30df --- /dev/null +++ b/apds/src/model/SyncMigrationJobRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Apds::Model::SyncMigrationJobRequest; + +SyncMigrationJobRequest::SyncMigrationJobRequest() + : RoaServiceRequest("apds", "2022-03-31") { + setResourcePath("/okss-services/migration-job/sync-migration-job"}; + setMethod(HttpRequest::Method::Post); +} + +SyncMigrationJobRequest::~SyncMigrationJobRequest() {} + +string SyncMigrationJobRequest::getRegions() const { + return regions_; +} + +void SyncMigrationJobRequest::setRegions(string regions) { + regions_ = regions; + setParameter(std::string("regions"), std::to_string(regions)); +} + +string SyncMigrationJobRequest::getJobType() const { + return jobType_; +} + +void SyncMigrationJobRequest::setJobType(string jobType) { + jobType_ = jobType; + setParameter(std::string("jobType"), std::to_string(jobType)); +} + +string SyncMigrationJobRequest::getRegionId() const { + return regionId_; +} + +void SyncMigrationJobRequest::setRegionId(string regionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), std::to_string(regionId)); +} + diff --git a/apds/src/model/SyncMigrationJobResult.cc b/apds/src/model/SyncMigrationJobResult.cc new file mode 100644 index 000000000..33a053b45 --- /dev/null +++ b/apds/src/model/SyncMigrationJobResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Apds; +using namespace AlibabaCloud::Apds::Model; + +SyncMigrationJobResult::SyncMigrationJobResult() : + ServiceResult() +{} + +SyncMigrationJobResult::SyncMigrationJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SyncMigrationJobResult::~SyncMigrationJobResult() +{} + +void SyncMigrationJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["error"].isNull()) + error_ = value["error"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string SyncMigrationJobResult::getError()const +{ + return error_; +} + +ObjectOfAny SyncMigrationJobResult::getData()const +{ + return data_; +} + +std::string SyncMigrationJobResult::getCode()const +{ + return code_; +} + +bool SyncMigrationJobResult::getSuccess()const +{ + return success_; +} +