diff --git a/VERSION b/VERSION index 4f040dfde..8fd072ba7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1267 \ No newline at end of file +1.36.1268 \ No newline at end of file diff --git a/viapi-regen/CMakeLists.txt b/viapi-regen/CMakeLists.txt new file mode 100644 index 000000000..e9040127a --- /dev/null +++ b/viapi-regen/CMakeLists.txt @@ -0,0 +1,282 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(viapi-regen_public_header + include/alibabacloud/viapi-regen/Viapi_regenClient.h + include/alibabacloud/viapi-regen/Viapi_regenExport.h ) + +set(viapi-regen_public_header_model + include/alibabacloud/viapi-regen/model/CreateDatasetRequest.h + include/alibabacloud/viapi-regen/model/CreateDatasetResult.h + include/alibabacloud/viapi-regen/model/CreateLabelsetRequest.h + include/alibabacloud/viapi-regen/model/CreateLabelsetResult.h + include/alibabacloud/viapi-regen/model/CreateServiceRequest.h + include/alibabacloud/viapi-regen/model/CreateServiceResult.h + include/alibabacloud/viapi-regen/model/CreateTagTaskRequest.h + include/alibabacloud/viapi-regen/model/CreateTagTaskResult.h + include/alibabacloud/viapi-regen/model/CreateTrainTaskRequest.h + include/alibabacloud/viapi-regen/model/CreateTrainTaskResult.h + include/alibabacloud/viapi-regen/model/CreateWorkspaceRequest.h + include/alibabacloud/viapi-regen/model/CreateWorkspaceResult.h + include/alibabacloud/viapi-regen/model/CustomizeClassifyImageRequest.h + include/alibabacloud/viapi-regen/model/CustomizeClassifyImageResult.h + include/alibabacloud/viapi-regen/model/CustomizeDetectImageRequest.h + include/alibabacloud/viapi-regen/model/CustomizeDetectImageResult.h + include/alibabacloud/viapi-regen/model/CustomizeInstanceSegmentImageRequest.h + include/alibabacloud/viapi-regen/model/CustomizeInstanceSegmentImageResult.h + include/alibabacloud/viapi-regen/model/DebugServiceRequest.h + include/alibabacloud/viapi-regen/model/DebugServiceResult.h + include/alibabacloud/viapi-regen/model/DeleteDataReflowDataRequest.h + include/alibabacloud/viapi-regen/model/DeleteDataReflowDataResult.h + include/alibabacloud/viapi-regen/model/DeleteDatasetRequest.h + include/alibabacloud/viapi-regen/model/DeleteDatasetResult.h + include/alibabacloud/viapi-regen/model/DeleteLabelsetRequest.h + include/alibabacloud/viapi-regen/model/DeleteLabelsetResult.h + include/alibabacloud/viapi-regen/model/DeleteLabelsetDataRequest.h + include/alibabacloud/viapi-regen/model/DeleteLabelsetDataResult.h + include/alibabacloud/viapi-regen/model/DeleteServiceRequest.h + include/alibabacloud/viapi-regen/model/DeleteServiceResult.h + include/alibabacloud/viapi-regen/model/DeleteTrainTaskRequest.h + include/alibabacloud/viapi-regen/model/DeleteTrainTaskResult.h + include/alibabacloud/viapi-regen/model/DeleteWorkspaceRequest.h + include/alibabacloud/viapi-regen/model/DeleteWorkspaceResult.h + include/alibabacloud/viapi-regen/model/DisableDataReflowRequest.h + include/alibabacloud/viapi-regen/model/DisableDataReflowResult.h + include/alibabacloud/viapi-regen/model/DownloadFileNameListRequest.h + include/alibabacloud/viapi-regen/model/DownloadFileNameListResult.h + include/alibabacloud/viapi-regen/model/DownloadLabelFileRequest.h + include/alibabacloud/viapi-regen/model/DownloadLabelFileResult.h + include/alibabacloud/viapi-regen/model/EnableDataReflowRequest.h + include/alibabacloud/viapi-regen/model/EnableDataReflowResult.h + include/alibabacloud/viapi-regen/model/ExportDataReflowDataListRequest.h + include/alibabacloud/viapi-regen/model/ExportDataReflowDataListResult.h + include/alibabacloud/viapi-regen/model/GetDatasetRequest.h + include/alibabacloud/viapi-regen/model/GetDatasetResult.h + include/alibabacloud/viapi-regen/model/GetDiffCountLabelsetAndDatasetRequest.h + include/alibabacloud/viapi-regen/model/GetDiffCountLabelsetAndDatasetResult.h + include/alibabacloud/viapi-regen/model/GetLabelDetailRequest.h + include/alibabacloud/viapi-regen/model/GetLabelDetailResult.h + include/alibabacloud/viapi-regen/model/GetLabelsetRequest.h + include/alibabacloud/viapi-regen/model/GetLabelsetResult.h + include/alibabacloud/viapi-regen/model/GetServiceRequest.h + include/alibabacloud/viapi-regen/model/GetServiceResult.h + include/alibabacloud/viapi-regen/model/GetTrainModelRequest.h + include/alibabacloud/viapi-regen/model/GetTrainModelResult.h + include/alibabacloud/viapi-regen/model/GetTrainTaskRequest.h + include/alibabacloud/viapi-regen/model/GetTrainTaskResult.h + include/alibabacloud/viapi-regen/model/GetTrainTaskEstimatedTimeRequest.h + include/alibabacloud/viapi-regen/model/GetTrainTaskEstimatedTimeResult.h + include/alibabacloud/viapi-regen/model/GetUploadPolicyRequest.h + include/alibabacloud/viapi-regen/model/GetUploadPolicyResult.h + include/alibabacloud/viapi-regen/model/GetWorkspaceRequest.h + include/alibabacloud/viapi-regen/model/GetWorkspaceResult.h + include/alibabacloud/viapi-regen/model/ListDataReflowDatasRequest.h + include/alibabacloud/viapi-regen/model/ListDataReflowDatasResult.h + include/alibabacloud/viapi-regen/model/ListDatasetDatasRequest.h + include/alibabacloud/viapi-regen/model/ListDatasetDatasResult.h + include/alibabacloud/viapi-regen/model/ListDatasetsRequest.h + include/alibabacloud/viapi-regen/model/ListDatasetsResult.h + include/alibabacloud/viapi-regen/model/ListLabelsetDatasRequest.h + include/alibabacloud/viapi-regen/model/ListLabelsetDatasResult.h + include/alibabacloud/viapi-regen/model/ListLabelsetsRequest.h + include/alibabacloud/viapi-regen/model/ListLabelsetsResult.h + include/alibabacloud/viapi-regen/model/ListServicesRequest.h + include/alibabacloud/viapi-regen/model/ListServicesResult.h + include/alibabacloud/viapi-regen/model/ListTrainTasksRequest.h + include/alibabacloud/viapi-regen/model/ListTrainTasksResult.h + include/alibabacloud/viapi-regen/model/ListWorkspacesRequest.h + include/alibabacloud/viapi-regen/model/ListWorkspacesResult.h + include/alibabacloud/viapi-regen/model/SetDatasetUserOssPathRequest.h + include/alibabacloud/viapi-regen/model/SetDatasetUserOssPathResult.h + include/alibabacloud/viapi-regen/model/StartServiceRequest.h + include/alibabacloud/viapi-regen/model/StartServiceResult.h + include/alibabacloud/viapi-regen/model/StartTrainTaskRequest.h + include/alibabacloud/viapi-regen/model/StartTrainTaskResult.h + include/alibabacloud/viapi-regen/model/StopServiceRequest.h + include/alibabacloud/viapi-regen/model/StopServiceResult.h + include/alibabacloud/viapi-regen/model/StopTrainTaskRequest.h + include/alibabacloud/viapi-regen/model/StopTrainTaskResult.h + include/alibabacloud/viapi-regen/model/UpdateDatasetRequest.h + include/alibabacloud/viapi-regen/model/UpdateDatasetResult.h + include/alibabacloud/viapi-regen/model/UpdateLabelsetRequest.h + include/alibabacloud/viapi-regen/model/UpdateLabelsetResult.h + include/alibabacloud/viapi-regen/model/UpdateServiceRequest.h + include/alibabacloud/viapi-regen/model/UpdateServiceResult.h + include/alibabacloud/viapi-regen/model/UpdateTrainTaskRequest.h + include/alibabacloud/viapi-regen/model/UpdateTrainTaskResult.h + include/alibabacloud/viapi-regen/model/UpdateWorkspaceRequest.h + include/alibabacloud/viapi-regen/model/UpdateWorkspaceResult.h ) + +set(viapi-regen_src + src/Viapi-regenClient.cc + src/model/CreateDatasetRequest.cc + src/model/CreateDatasetResult.cc + src/model/CreateLabelsetRequest.cc + src/model/CreateLabelsetResult.cc + src/model/CreateServiceRequest.cc + src/model/CreateServiceResult.cc + src/model/CreateTagTaskRequest.cc + src/model/CreateTagTaskResult.cc + src/model/CreateTrainTaskRequest.cc + src/model/CreateTrainTaskResult.cc + src/model/CreateWorkspaceRequest.cc + src/model/CreateWorkspaceResult.cc + src/model/CustomizeClassifyImageRequest.cc + src/model/CustomizeClassifyImageResult.cc + src/model/CustomizeDetectImageRequest.cc + src/model/CustomizeDetectImageResult.cc + src/model/CustomizeInstanceSegmentImageRequest.cc + src/model/CustomizeInstanceSegmentImageResult.cc + src/model/DebugServiceRequest.cc + src/model/DebugServiceResult.cc + src/model/DeleteDataReflowDataRequest.cc + src/model/DeleteDataReflowDataResult.cc + src/model/DeleteDatasetRequest.cc + src/model/DeleteDatasetResult.cc + src/model/DeleteLabelsetRequest.cc + src/model/DeleteLabelsetResult.cc + src/model/DeleteLabelsetDataRequest.cc + src/model/DeleteLabelsetDataResult.cc + src/model/DeleteServiceRequest.cc + src/model/DeleteServiceResult.cc + src/model/DeleteTrainTaskRequest.cc + src/model/DeleteTrainTaskResult.cc + src/model/DeleteWorkspaceRequest.cc + src/model/DeleteWorkspaceResult.cc + src/model/DisableDataReflowRequest.cc + src/model/DisableDataReflowResult.cc + src/model/DownloadFileNameListRequest.cc + src/model/DownloadFileNameListResult.cc + src/model/DownloadLabelFileRequest.cc + src/model/DownloadLabelFileResult.cc + src/model/EnableDataReflowRequest.cc + src/model/EnableDataReflowResult.cc + src/model/ExportDataReflowDataListRequest.cc + src/model/ExportDataReflowDataListResult.cc + src/model/GetDatasetRequest.cc + src/model/GetDatasetResult.cc + src/model/GetDiffCountLabelsetAndDatasetRequest.cc + src/model/GetDiffCountLabelsetAndDatasetResult.cc + src/model/GetLabelDetailRequest.cc + src/model/GetLabelDetailResult.cc + src/model/GetLabelsetRequest.cc + src/model/GetLabelsetResult.cc + src/model/GetServiceRequest.cc + src/model/GetServiceResult.cc + src/model/GetTrainModelRequest.cc + src/model/GetTrainModelResult.cc + src/model/GetTrainTaskRequest.cc + src/model/GetTrainTaskResult.cc + src/model/GetTrainTaskEstimatedTimeRequest.cc + src/model/GetTrainTaskEstimatedTimeResult.cc + src/model/GetUploadPolicyRequest.cc + src/model/GetUploadPolicyResult.cc + src/model/GetWorkspaceRequest.cc + src/model/GetWorkspaceResult.cc + src/model/ListDataReflowDatasRequest.cc + src/model/ListDataReflowDatasResult.cc + src/model/ListDatasetDatasRequest.cc + src/model/ListDatasetDatasResult.cc + src/model/ListDatasetsRequest.cc + src/model/ListDatasetsResult.cc + src/model/ListLabelsetDatasRequest.cc + src/model/ListLabelsetDatasResult.cc + src/model/ListLabelsetsRequest.cc + src/model/ListLabelsetsResult.cc + src/model/ListServicesRequest.cc + src/model/ListServicesResult.cc + src/model/ListTrainTasksRequest.cc + src/model/ListTrainTasksResult.cc + src/model/ListWorkspacesRequest.cc + src/model/ListWorkspacesResult.cc + src/model/SetDatasetUserOssPathRequest.cc + src/model/SetDatasetUserOssPathResult.cc + src/model/StartServiceRequest.cc + src/model/StartServiceResult.cc + src/model/StartTrainTaskRequest.cc + src/model/StartTrainTaskResult.cc + src/model/StopServiceRequest.cc + src/model/StopServiceResult.cc + src/model/StopTrainTaskRequest.cc + src/model/StopTrainTaskResult.cc + src/model/UpdateDatasetRequest.cc + src/model/UpdateDatasetResult.cc + src/model/UpdateLabelsetRequest.cc + src/model/UpdateLabelsetResult.cc + src/model/UpdateServiceRequest.cc + src/model/UpdateServiceResult.cc + src/model/UpdateTrainTaskRequest.cc + src/model/UpdateTrainTaskResult.cc + src/model/UpdateWorkspaceRequest.cc + src/model/UpdateWorkspaceResult.cc ) + +add_library(viapi-regen ${LIB_TYPE} + ${viapi-regen_public_header} + ${viapi-regen_public_header_model} + ${viapi-regen_src}) + +set_target_properties(viapi-regen + 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}viapi-regen + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(viapi-regen + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_VIAPI_REGEN_LIBRARY) +endif() + +target_include_directories(viapi-regen + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(viapi-regen + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(viapi-regen + jsoncpp) + target_include_directories(viapi-regen + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(viapi-regen + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(viapi-regen + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(viapi-regen + PRIVATE /usr/include/jsoncpp) + target_link_libraries(viapi-regen + jsoncpp) +endif() + +install(FILES ${viapi-regen_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/viapi-regen) +install(FILES ${viapi-regen_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/viapi-regen/model) +install(TARGETS viapi-regen + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/Viapi_regenClient.h b/viapi-regen/include/alibabacloud/viapi-regen/Viapi_regenClient.h new file mode 100644 index 000000000..19b6b3d34 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/Viapi_regenClient.h @@ -0,0 +1,446 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_VIAPI_REGENCLIENT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_VIAPI_REGENCLIENT_H_ + +#include +#include +#include +#include +#include "Viapi_regenExport.h" +#include "model/CreateDatasetRequest.h" +#include "model/CreateDatasetResult.h" +#include "model/CreateLabelsetRequest.h" +#include "model/CreateLabelsetResult.h" +#include "model/CreateServiceRequest.h" +#include "model/CreateServiceResult.h" +#include "model/CreateTagTaskRequest.h" +#include "model/CreateTagTaskResult.h" +#include "model/CreateTrainTaskRequest.h" +#include "model/CreateTrainTaskResult.h" +#include "model/CreateWorkspaceRequest.h" +#include "model/CreateWorkspaceResult.h" +#include "model/CustomizeClassifyImageRequest.h" +#include "model/CustomizeClassifyImageResult.h" +#include "model/CustomizeDetectImageRequest.h" +#include "model/CustomizeDetectImageResult.h" +#include "model/CustomizeInstanceSegmentImageRequest.h" +#include "model/CustomizeInstanceSegmentImageResult.h" +#include "model/DebugServiceRequest.h" +#include "model/DebugServiceResult.h" +#include "model/DeleteDataReflowDataRequest.h" +#include "model/DeleteDataReflowDataResult.h" +#include "model/DeleteDatasetRequest.h" +#include "model/DeleteDatasetResult.h" +#include "model/DeleteLabelsetRequest.h" +#include "model/DeleteLabelsetResult.h" +#include "model/DeleteLabelsetDataRequest.h" +#include "model/DeleteLabelsetDataResult.h" +#include "model/DeleteServiceRequest.h" +#include "model/DeleteServiceResult.h" +#include "model/DeleteTrainTaskRequest.h" +#include "model/DeleteTrainTaskResult.h" +#include "model/DeleteWorkspaceRequest.h" +#include "model/DeleteWorkspaceResult.h" +#include "model/DisableDataReflowRequest.h" +#include "model/DisableDataReflowResult.h" +#include "model/DownloadFileNameListRequest.h" +#include "model/DownloadFileNameListResult.h" +#include "model/DownloadLabelFileRequest.h" +#include "model/DownloadLabelFileResult.h" +#include "model/EnableDataReflowRequest.h" +#include "model/EnableDataReflowResult.h" +#include "model/ExportDataReflowDataListRequest.h" +#include "model/ExportDataReflowDataListResult.h" +#include "model/GetDatasetRequest.h" +#include "model/GetDatasetResult.h" +#include "model/GetDiffCountLabelsetAndDatasetRequest.h" +#include "model/GetDiffCountLabelsetAndDatasetResult.h" +#include "model/GetLabelDetailRequest.h" +#include "model/GetLabelDetailResult.h" +#include "model/GetLabelsetRequest.h" +#include "model/GetLabelsetResult.h" +#include "model/GetServiceRequest.h" +#include "model/GetServiceResult.h" +#include "model/GetTrainModelRequest.h" +#include "model/GetTrainModelResult.h" +#include "model/GetTrainTaskRequest.h" +#include "model/GetTrainTaskResult.h" +#include "model/GetTrainTaskEstimatedTimeRequest.h" +#include "model/GetTrainTaskEstimatedTimeResult.h" +#include "model/GetUploadPolicyRequest.h" +#include "model/GetUploadPolicyResult.h" +#include "model/GetWorkspaceRequest.h" +#include "model/GetWorkspaceResult.h" +#include "model/ListDataReflowDatasRequest.h" +#include "model/ListDataReflowDatasResult.h" +#include "model/ListDatasetDatasRequest.h" +#include "model/ListDatasetDatasResult.h" +#include "model/ListDatasetsRequest.h" +#include "model/ListDatasetsResult.h" +#include "model/ListLabelsetDatasRequest.h" +#include "model/ListLabelsetDatasResult.h" +#include "model/ListLabelsetsRequest.h" +#include "model/ListLabelsetsResult.h" +#include "model/ListServicesRequest.h" +#include "model/ListServicesResult.h" +#include "model/ListTrainTasksRequest.h" +#include "model/ListTrainTasksResult.h" +#include "model/ListWorkspacesRequest.h" +#include "model/ListWorkspacesResult.h" +#include "model/SetDatasetUserOssPathRequest.h" +#include "model/SetDatasetUserOssPathResult.h" +#include "model/StartServiceRequest.h" +#include "model/StartServiceResult.h" +#include "model/StartTrainTaskRequest.h" +#include "model/StartTrainTaskResult.h" +#include "model/StopServiceRequest.h" +#include "model/StopServiceResult.h" +#include "model/StopTrainTaskRequest.h" +#include "model/StopTrainTaskResult.h" +#include "model/UpdateDatasetRequest.h" +#include "model/UpdateDatasetResult.h" +#include "model/UpdateLabelsetRequest.h" +#include "model/UpdateLabelsetResult.h" +#include "model/UpdateServiceRequest.h" +#include "model/UpdateServiceResult.h" +#include "model/UpdateTrainTaskRequest.h" +#include "model/UpdateTrainTaskResult.h" +#include "model/UpdateWorkspaceRequest.h" +#include "model/UpdateWorkspaceResult.h" + + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT Viapi_regenClient : public RpcServiceClient + { + public: + typedef Outcome CreateDatasetOutcome; + typedef std::future CreateDatasetOutcomeCallable; + typedef std::function&)> CreateDatasetAsyncHandler; + typedef Outcome CreateLabelsetOutcome; + typedef std::future CreateLabelsetOutcomeCallable; + typedef std::function&)> CreateLabelsetAsyncHandler; + typedef Outcome CreateServiceOutcome; + typedef std::future CreateServiceOutcomeCallable; + typedef std::function&)> CreateServiceAsyncHandler; + typedef Outcome CreateTagTaskOutcome; + typedef std::future CreateTagTaskOutcomeCallable; + typedef std::function&)> CreateTagTaskAsyncHandler; + typedef Outcome CreateTrainTaskOutcome; + typedef std::future CreateTrainTaskOutcomeCallable; + typedef std::function&)> CreateTrainTaskAsyncHandler; + typedef Outcome CreateWorkspaceOutcome; + typedef std::future CreateWorkspaceOutcomeCallable; + typedef std::function&)> CreateWorkspaceAsyncHandler; + typedef Outcome CustomizeClassifyImageOutcome; + typedef std::future CustomizeClassifyImageOutcomeCallable; + typedef std::function&)> CustomizeClassifyImageAsyncHandler; + typedef Outcome CustomizeDetectImageOutcome; + typedef std::future CustomizeDetectImageOutcomeCallable; + typedef std::function&)> CustomizeDetectImageAsyncHandler; + typedef Outcome CustomizeInstanceSegmentImageOutcome; + typedef std::future CustomizeInstanceSegmentImageOutcomeCallable; + typedef std::function&)> CustomizeInstanceSegmentImageAsyncHandler; + typedef Outcome DebugServiceOutcome; + typedef std::future DebugServiceOutcomeCallable; + typedef std::function&)> DebugServiceAsyncHandler; + typedef Outcome DeleteDataReflowDataOutcome; + typedef std::future DeleteDataReflowDataOutcomeCallable; + typedef std::function&)> DeleteDataReflowDataAsyncHandler; + typedef Outcome DeleteDatasetOutcome; + typedef std::future DeleteDatasetOutcomeCallable; + typedef std::function&)> DeleteDatasetAsyncHandler; + typedef Outcome DeleteLabelsetOutcome; + typedef std::future DeleteLabelsetOutcomeCallable; + typedef std::function&)> DeleteLabelsetAsyncHandler; + typedef Outcome DeleteLabelsetDataOutcome; + typedef std::future DeleteLabelsetDataOutcomeCallable; + typedef std::function&)> DeleteLabelsetDataAsyncHandler; + typedef Outcome DeleteServiceOutcome; + typedef std::future DeleteServiceOutcomeCallable; + typedef std::function&)> DeleteServiceAsyncHandler; + typedef Outcome DeleteTrainTaskOutcome; + typedef std::future DeleteTrainTaskOutcomeCallable; + typedef std::function&)> DeleteTrainTaskAsyncHandler; + typedef Outcome DeleteWorkspaceOutcome; + typedef std::future DeleteWorkspaceOutcomeCallable; + typedef std::function&)> DeleteWorkspaceAsyncHandler; + typedef Outcome DisableDataReflowOutcome; + typedef std::future DisableDataReflowOutcomeCallable; + typedef std::function&)> DisableDataReflowAsyncHandler; + typedef Outcome DownloadFileNameListOutcome; + typedef std::future DownloadFileNameListOutcomeCallable; + typedef std::function&)> DownloadFileNameListAsyncHandler; + typedef Outcome DownloadLabelFileOutcome; + typedef std::future DownloadLabelFileOutcomeCallable; + typedef std::function&)> DownloadLabelFileAsyncHandler; + typedef Outcome EnableDataReflowOutcome; + typedef std::future EnableDataReflowOutcomeCallable; + typedef std::function&)> EnableDataReflowAsyncHandler; + typedef Outcome ExportDataReflowDataListOutcome; + typedef std::future ExportDataReflowDataListOutcomeCallable; + typedef std::function&)> ExportDataReflowDataListAsyncHandler; + typedef Outcome GetDatasetOutcome; + typedef std::future GetDatasetOutcomeCallable; + typedef std::function&)> GetDatasetAsyncHandler; + typedef Outcome GetDiffCountLabelsetAndDatasetOutcome; + typedef std::future GetDiffCountLabelsetAndDatasetOutcomeCallable; + typedef std::function&)> GetDiffCountLabelsetAndDatasetAsyncHandler; + typedef Outcome GetLabelDetailOutcome; + typedef std::future GetLabelDetailOutcomeCallable; + typedef std::function&)> GetLabelDetailAsyncHandler; + typedef Outcome GetLabelsetOutcome; + typedef std::future GetLabelsetOutcomeCallable; + typedef std::function&)> GetLabelsetAsyncHandler; + typedef Outcome GetServiceOutcome; + typedef std::future GetServiceOutcomeCallable; + typedef std::function&)> GetServiceAsyncHandler; + typedef Outcome GetTrainModelOutcome; + typedef std::future GetTrainModelOutcomeCallable; + typedef std::function&)> GetTrainModelAsyncHandler; + typedef Outcome GetTrainTaskOutcome; + typedef std::future GetTrainTaskOutcomeCallable; + typedef std::function&)> GetTrainTaskAsyncHandler; + typedef Outcome GetTrainTaskEstimatedTimeOutcome; + typedef std::future GetTrainTaskEstimatedTimeOutcomeCallable; + typedef std::function&)> GetTrainTaskEstimatedTimeAsyncHandler; + typedef Outcome GetUploadPolicyOutcome; + typedef std::future GetUploadPolicyOutcomeCallable; + typedef std::function&)> GetUploadPolicyAsyncHandler; + typedef Outcome GetWorkspaceOutcome; + typedef std::future GetWorkspaceOutcomeCallable; + typedef std::function&)> GetWorkspaceAsyncHandler; + typedef Outcome ListDataReflowDatasOutcome; + typedef std::future ListDataReflowDatasOutcomeCallable; + typedef std::function&)> ListDataReflowDatasAsyncHandler; + typedef Outcome ListDatasetDatasOutcome; + typedef std::future ListDatasetDatasOutcomeCallable; + typedef std::function&)> ListDatasetDatasAsyncHandler; + typedef Outcome ListDatasetsOutcome; + typedef std::future ListDatasetsOutcomeCallable; + typedef std::function&)> ListDatasetsAsyncHandler; + typedef Outcome ListLabelsetDatasOutcome; + typedef std::future ListLabelsetDatasOutcomeCallable; + typedef std::function&)> ListLabelsetDatasAsyncHandler; + typedef Outcome ListLabelsetsOutcome; + typedef std::future ListLabelsetsOutcomeCallable; + typedef std::function&)> ListLabelsetsAsyncHandler; + typedef Outcome ListServicesOutcome; + typedef std::future ListServicesOutcomeCallable; + typedef std::function&)> ListServicesAsyncHandler; + typedef Outcome ListTrainTasksOutcome; + typedef std::future ListTrainTasksOutcomeCallable; + typedef std::function&)> ListTrainTasksAsyncHandler; + typedef Outcome ListWorkspacesOutcome; + typedef std::future ListWorkspacesOutcomeCallable; + typedef std::function&)> ListWorkspacesAsyncHandler; + typedef Outcome SetDatasetUserOssPathOutcome; + typedef std::future SetDatasetUserOssPathOutcomeCallable; + typedef std::function&)> SetDatasetUserOssPathAsyncHandler; + typedef Outcome StartServiceOutcome; + typedef std::future StartServiceOutcomeCallable; + typedef std::function&)> StartServiceAsyncHandler; + typedef Outcome StartTrainTaskOutcome; + typedef std::future StartTrainTaskOutcomeCallable; + typedef std::function&)> StartTrainTaskAsyncHandler; + typedef Outcome StopServiceOutcome; + typedef std::future StopServiceOutcomeCallable; + typedef std::function&)> StopServiceAsyncHandler; + typedef Outcome StopTrainTaskOutcome; + typedef std::future StopTrainTaskOutcomeCallable; + typedef std::function&)> StopTrainTaskAsyncHandler; + typedef Outcome UpdateDatasetOutcome; + typedef std::future UpdateDatasetOutcomeCallable; + typedef std::function&)> UpdateDatasetAsyncHandler; + typedef Outcome UpdateLabelsetOutcome; + typedef std::future UpdateLabelsetOutcomeCallable; + typedef std::function&)> UpdateLabelsetAsyncHandler; + typedef Outcome UpdateServiceOutcome; + typedef std::future UpdateServiceOutcomeCallable; + typedef std::function&)> UpdateServiceAsyncHandler; + typedef Outcome UpdateTrainTaskOutcome; + typedef std::future UpdateTrainTaskOutcomeCallable; + typedef std::function&)> UpdateTrainTaskAsyncHandler; + typedef Outcome UpdateWorkspaceOutcome; + typedef std::future UpdateWorkspaceOutcomeCallable; + typedef std::function&)> UpdateWorkspaceAsyncHandler; + + Viapi_regenClient(const Credentials &credentials, const ClientConfiguration &configuration); + Viapi_regenClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + Viapi_regenClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~Viapi_regenClient(); + CreateDatasetOutcome createDataset(const Model::CreateDatasetRequest &request)const; + void createDatasetAsync(const Model::CreateDatasetRequest& request, const CreateDatasetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDatasetOutcomeCallable createDatasetCallable(const Model::CreateDatasetRequest& request) const; + CreateLabelsetOutcome createLabelset(const Model::CreateLabelsetRequest &request)const; + void createLabelsetAsync(const Model::CreateLabelsetRequest& request, const CreateLabelsetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateLabelsetOutcomeCallable createLabelsetCallable(const Model::CreateLabelsetRequest& request) const; + CreateServiceOutcome createService(const Model::CreateServiceRequest &request)const; + void createServiceAsync(const Model::CreateServiceRequest& request, const CreateServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateServiceOutcomeCallable createServiceCallable(const Model::CreateServiceRequest& request) const; + CreateTagTaskOutcome createTagTask(const Model::CreateTagTaskRequest &request)const; + void createTagTaskAsync(const Model::CreateTagTaskRequest& request, const CreateTagTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTagTaskOutcomeCallable createTagTaskCallable(const Model::CreateTagTaskRequest& request) const; + CreateTrainTaskOutcome createTrainTask(const Model::CreateTrainTaskRequest &request)const; + void createTrainTaskAsync(const Model::CreateTrainTaskRequest& request, const CreateTrainTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTrainTaskOutcomeCallable createTrainTaskCallable(const Model::CreateTrainTaskRequest& request) const; + CreateWorkspaceOutcome createWorkspace(const Model::CreateWorkspaceRequest &request)const; + void createWorkspaceAsync(const Model::CreateWorkspaceRequest& request, const CreateWorkspaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateWorkspaceOutcomeCallable createWorkspaceCallable(const Model::CreateWorkspaceRequest& request) const; + CustomizeClassifyImageOutcome customizeClassifyImage(const Model::CustomizeClassifyImageRequest &request)const; + void customizeClassifyImageAsync(const Model::CustomizeClassifyImageRequest& request, const CustomizeClassifyImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CustomizeClassifyImageOutcomeCallable customizeClassifyImageCallable(const Model::CustomizeClassifyImageRequest& request) const; + CustomizeDetectImageOutcome customizeDetectImage(const Model::CustomizeDetectImageRequest &request)const; + void customizeDetectImageAsync(const Model::CustomizeDetectImageRequest& request, const CustomizeDetectImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CustomizeDetectImageOutcomeCallable customizeDetectImageCallable(const Model::CustomizeDetectImageRequest& request) const; + CustomizeInstanceSegmentImageOutcome customizeInstanceSegmentImage(const Model::CustomizeInstanceSegmentImageRequest &request)const; + void customizeInstanceSegmentImageAsync(const Model::CustomizeInstanceSegmentImageRequest& request, const CustomizeInstanceSegmentImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CustomizeInstanceSegmentImageOutcomeCallable customizeInstanceSegmentImageCallable(const Model::CustomizeInstanceSegmentImageRequest& request) const; + DebugServiceOutcome debugService(const Model::DebugServiceRequest &request)const; + void debugServiceAsync(const Model::DebugServiceRequest& request, const DebugServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DebugServiceOutcomeCallable debugServiceCallable(const Model::DebugServiceRequest& request) const; + DeleteDataReflowDataOutcome deleteDataReflowData(const Model::DeleteDataReflowDataRequest &request)const; + void deleteDataReflowDataAsync(const Model::DeleteDataReflowDataRequest& request, const DeleteDataReflowDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDataReflowDataOutcomeCallable deleteDataReflowDataCallable(const Model::DeleteDataReflowDataRequest& request) const; + DeleteDatasetOutcome deleteDataset(const Model::DeleteDatasetRequest &request)const; + void deleteDatasetAsync(const Model::DeleteDatasetRequest& request, const DeleteDatasetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDatasetOutcomeCallable deleteDatasetCallable(const Model::DeleteDatasetRequest& request) const; + DeleteLabelsetOutcome deleteLabelset(const Model::DeleteLabelsetRequest &request)const; + void deleteLabelsetAsync(const Model::DeleteLabelsetRequest& request, const DeleteLabelsetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteLabelsetOutcomeCallable deleteLabelsetCallable(const Model::DeleteLabelsetRequest& request) const; + DeleteLabelsetDataOutcome deleteLabelsetData(const Model::DeleteLabelsetDataRequest &request)const; + void deleteLabelsetDataAsync(const Model::DeleteLabelsetDataRequest& request, const DeleteLabelsetDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteLabelsetDataOutcomeCallable deleteLabelsetDataCallable(const Model::DeleteLabelsetDataRequest& request) const; + DeleteServiceOutcome deleteService(const Model::DeleteServiceRequest &request)const; + void deleteServiceAsync(const Model::DeleteServiceRequest& request, const DeleteServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteServiceOutcomeCallable deleteServiceCallable(const Model::DeleteServiceRequest& request) const; + DeleteTrainTaskOutcome deleteTrainTask(const Model::DeleteTrainTaskRequest &request)const; + void deleteTrainTaskAsync(const Model::DeleteTrainTaskRequest& request, const DeleteTrainTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTrainTaskOutcomeCallable deleteTrainTaskCallable(const Model::DeleteTrainTaskRequest& request) const; + DeleteWorkspaceOutcome deleteWorkspace(const Model::DeleteWorkspaceRequest &request)const; + void deleteWorkspaceAsync(const Model::DeleteWorkspaceRequest& request, const DeleteWorkspaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteWorkspaceOutcomeCallable deleteWorkspaceCallable(const Model::DeleteWorkspaceRequest& request) const; + DisableDataReflowOutcome disableDataReflow(const Model::DisableDataReflowRequest &request)const; + void disableDataReflowAsync(const Model::DisableDataReflowRequest& request, const DisableDataReflowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableDataReflowOutcomeCallable disableDataReflowCallable(const Model::DisableDataReflowRequest& request) const; + DownloadFileNameListOutcome downloadFileNameList(const Model::DownloadFileNameListRequest &request)const; + void downloadFileNameListAsync(const Model::DownloadFileNameListRequest& request, const DownloadFileNameListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DownloadFileNameListOutcomeCallable downloadFileNameListCallable(const Model::DownloadFileNameListRequest& request) const; + DownloadLabelFileOutcome downloadLabelFile(const Model::DownloadLabelFileRequest &request)const; + void downloadLabelFileAsync(const Model::DownloadLabelFileRequest& request, const DownloadLabelFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DownloadLabelFileOutcomeCallable downloadLabelFileCallable(const Model::DownloadLabelFileRequest& request) const; + EnableDataReflowOutcome enableDataReflow(const Model::EnableDataReflowRequest &request)const; + void enableDataReflowAsync(const Model::EnableDataReflowRequest& request, const EnableDataReflowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableDataReflowOutcomeCallable enableDataReflowCallable(const Model::EnableDataReflowRequest& request) const; + ExportDataReflowDataListOutcome exportDataReflowDataList(const Model::ExportDataReflowDataListRequest &request)const; + void exportDataReflowDataListAsync(const Model::ExportDataReflowDataListRequest& request, const ExportDataReflowDataListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExportDataReflowDataListOutcomeCallable exportDataReflowDataListCallable(const Model::ExportDataReflowDataListRequest& request) const; + GetDatasetOutcome getDataset(const Model::GetDatasetRequest &request)const; + void getDatasetAsync(const Model::GetDatasetRequest& request, const GetDatasetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDatasetOutcomeCallable getDatasetCallable(const Model::GetDatasetRequest& request) const; + GetDiffCountLabelsetAndDatasetOutcome getDiffCountLabelsetAndDataset(const Model::GetDiffCountLabelsetAndDatasetRequest &request)const; + void getDiffCountLabelsetAndDatasetAsync(const Model::GetDiffCountLabelsetAndDatasetRequest& request, const GetDiffCountLabelsetAndDatasetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDiffCountLabelsetAndDatasetOutcomeCallable getDiffCountLabelsetAndDatasetCallable(const Model::GetDiffCountLabelsetAndDatasetRequest& request) const; + GetLabelDetailOutcome getLabelDetail(const Model::GetLabelDetailRequest &request)const; + void getLabelDetailAsync(const Model::GetLabelDetailRequest& request, const GetLabelDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetLabelDetailOutcomeCallable getLabelDetailCallable(const Model::GetLabelDetailRequest& request) const; + GetLabelsetOutcome getLabelset(const Model::GetLabelsetRequest &request)const; + void getLabelsetAsync(const Model::GetLabelsetRequest& request, const GetLabelsetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetLabelsetOutcomeCallable getLabelsetCallable(const Model::GetLabelsetRequest& request) const; + GetServiceOutcome getService(const Model::GetServiceRequest &request)const; + void getServiceAsync(const Model::GetServiceRequest& request, const GetServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetServiceOutcomeCallable getServiceCallable(const Model::GetServiceRequest& request) const; + GetTrainModelOutcome getTrainModel(const Model::GetTrainModelRequest &request)const; + void getTrainModelAsync(const Model::GetTrainModelRequest& request, const GetTrainModelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTrainModelOutcomeCallable getTrainModelCallable(const Model::GetTrainModelRequest& request) const; + GetTrainTaskOutcome getTrainTask(const Model::GetTrainTaskRequest &request)const; + void getTrainTaskAsync(const Model::GetTrainTaskRequest& request, const GetTrainTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTrainTaskOutcomeCallable getTrainTaskCallable(const Model::GetTrainTaskRequest& request) const; + GetTrainTaskEstimatedTimeOutcome getTrainTaskEstimatedTime(const Model::GetTrainTaskEstimatedTimeRequest &request)const; + void getTrainTaskEstimatedTimeAsync(const Model::GetTrainTaskEstimatedTimeRequest& request, const GetTrainTaskEstimatedTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTrainTaskEstimatedTimeOutcomeCallable getTrainTaskEstimatedTimeCallable(const Model::GetTrainTaskEstimatedTimeRequest& request) const; + GetUploadPolicyOutcome getUploadPolicy(const Model::GetUploadPolicyRequest &request)const; + void getUploadPolicyAsync(const Model::GetUploadPolicyRequest& request, const GetUploadPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUploadPolicyOutcomeCallable getUploadPolicyCallable(const Model::GetUploadPolicyRequest& request) const; + GetWorkspaceOutcome getWorkspace(const Model::GetWorkspaceRequest &request)const; + void getWorkspaceAsync(const Model::GetWorkspaceRequest& request, const GetWorkspaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetWorkspaceOutcomeCallable getWorkspaceCallable(const Model::GetWorkspaceRequest& request) const; + ListDataReflowDatasOutcome listDataReflowDatas(const Model::ListDataReflowDatasRequest &request)const; + void listDataReflowDatasAsync(const Model::ListDataReflowDatasRequest& request, const ListDataReflowDatasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDataReflowDatasOutcomeCallable listDataReflowDatasCallable(const Model::ListDataReflowDatasRequest& request) const; + ListDatasetDatasOutcome listDatasetDatas(const Model::ListDatasetDatasRequest &request)const; + void listDatasetDatasAsync(const Model::ListDatasetDatasRequest& request, const ListDatasetDatasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDatasetDatasOutcomeCallable listDatasetDatasCallable(const Model::ListDatasetDatasRequest& request) const; + ListDatasetsOutcome listDatasets(const Model::ListDatasetsRequest &request)const; + void listDatasetsAsync(const Model::ListDatasetsRequest& request, const ListDatasetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDatasetsOutcomeCallable listDatasetsCallable(const Model::ListDatasetsRequest& request) const; + ListLabelsetDatasOutcome listLabelsetDatas(const Model::ListLabelsetDatasRequest &request)const; + void listLabelsetDatasAsync(const Model::ListLabelsetDatasRequest& request, const ListLabelsetDatasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListLabelsetDatasOutcomeCallable listLabelsetDatasCallable(const Model::ListLabelsetDatasRequest& request) const; + ListLabelsetsOutcome listLabelsets(const Model::ListLabelsetsRequest &request)const; + void listLabelsetsAsync(const Model::ListLabelsetsRequest& request, const ListLabelsetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListLabelsetsOutcomeCallable listLabelsetsCallable(const Model::ListLabelsetsRequest& request) const; + ListServicesOutcome listServices(const Model::ListServicesRequest &request)const; + void listServicesAsync(const Model::ListServicesRequest& request, const ListServicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListServicesOutcomeCallable listServicesCallable(const Model::ListServicesRequest& request) const; + ListTrainTasksOutcome listTrainTasks(const Model::ListTrainTasksRequest &request)const; + void listTrainTasksAsync(const Model::ListTrainTasksRequest& request, const ListTrainTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTrainTasksOutcomeCallable listTrainTasksCallable(const Model::ListTrainTasksRequest& request) const; + ListWorkspacesOutcome listWorkspaces(const Model::ListWorkspacesRequest &request)const; + void listWorkspacesAsync(const Model::ListWorkspacesRequest& request, const ListWorkspacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListWorkspacesOutcomeCallable listWorkspacesCallable(const Model::ListWorkspacesRequest& request) const; + SetDatasetUserOssPathOutcome setDatasetUserOssPath(const Model::SetDatasetUserOssPathRequest &request)const; + void setDatasetUserOssPathAsync(const Model::SetDatasetUserOssPathRequest& request, const SetDatasetUserOssPathAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetDatasetUserOssPathOutcomeCallable setDatasetUserOssPathCallable(const Model::SetDatasetUserOssPathRequest& request) const; + StartServiceOutcome startService(const Model::StartServiceRequest &request)const; + void startServiceAsync(const Model::StartServiceRequest& request, const StartServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartServiceOutcomeCallable startServiceCallable(const Model::StartServiceRequest& request) const; + StartTrainTaskOutcome startTrainTask(const Model::StartTrainTaskRequest &request)const; + void startTrainTaskAsync(const Model::StartTrainTaskRequest& request, const StartTrainTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartTrainTaskOutcomeCallable startTrainTaskCallable(const Model::StartTrainTaskRequest& request) const; + StopServiceOutcome stopService(const Model::StopServiceRequest &request)const; + void stopServiceAsync(const Model::StopServiceRequest& request, const StopServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopServiceOutcomeCallable stopServiceCallable(const Model::StopServiceRequest& request) const; + StopTrainTaskOutcome stopTrainTask(const Model::StopTrainTaskRequest &request)const; + void stopTrainTaskAsync(const Model::StopTrainTaskRequest& request, const StopTrainTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopTrainTaskOutcomeCallable stopTrainTaskCallable(const Model::StopTrainTaskRequest& request) const; + UpdateDatasetOutcome updateDataset(const Model::UpdateDatasetRequest &request)const; + void updateDatasetAsync(const Model::UpdateDatasetRequest& request, const UpdateDatasetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDatasetOutcomeCallable updateDatasetCallable(const Model::UpdateDatasetRequest& request) const; + UpdateLabelsetOutcome updateLabelset(const Model::UpdateLabelsetRequest &request)const; + void updateLabelsetAsync(const Model::UpdateLabelsetRequest& request, const UpdateLabelsetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateLabelsetOutcomeCallable updateLabelsetCallable(const Model::UpdateLabelsetRequest& request) const; + UpdateServiceOutcome updateService(const Model::UpdateServiceRequest &request)const; + void updateServiceAsync(const Model::UpdateServiceRequest& request, const UpdateServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateServiceOutcomeCallable updateServiceCallable(const Model::UpdateServiceRequest& request) const; + UpdateTrainTaskOutcome updateTrainTask(const Model::UpdateTrainTaskRequest &request)const; + void updateTrainTaskAsync(const Model::UpdateTrainTaskRequest& request, const UpdateTrainTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateTrainTaskOutcomeCallable updateTrainTaskCallable(const Model::UpdateTrainTaskRequest& request) const; + UpdateWorkspaceOutcome updateWorkspace(const Model::UpdateWorkspaceRequest &request)const; + void updateWorkspaceAsync(const Model::UpdateWorkspaceRequest& request, const UpdateWorkspaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateWorkspaceOutcomeCallable updateWorkspaceCallable(const Model::UpdateWorkspaceRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_VIAPI_REGEN_VIAPI_REGENCLIENT_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/Viapi_regenExport.h b/viapi-regen/include/alibabacloud/viapi-regen/Viapi_regenExport.h new file mode 100644 index 000000000..4ed7cc909 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/Viapi_regenExport.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_VIAPI_REGEN_VIAPI_REGENEXPORT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_VIAPI_REGENEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_VIAPI_REGEN_LIBRARY) +# define ALIBABACLOUD_VIAPI_REGEN_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_VIAPI_REGEN_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_VIAPI_REGEN_EXPORT +#endif + +#endif // !ALIBABACLOUD_VIAPI_REGEN_VIAPI_REGENEXPORT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/CreateDatasetRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateDatasetRequest.h new file mode 100644 index 000000000..5b41939a7 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateDatasetRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATEDATASETREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATEDATASETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT CreateDatasetRequest : public RpcServiceRequest { +public: + CreateDatasetRequest(); + ~CreateDatasetRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getType() const; + void setType(const std::string &type); + std::string getName() const; + void setName(const std::string &name); + long getWorkspaceId() const; + void setWorkspaceId(long workspaceId); + +private: + std::string description_; + std::string type_; + std::string name_; + long workspaceId_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATEDATASETREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/CreateDatasetResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateDatasetResult.h new file mode 100644 index 000000000..b7fe5e76a --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateDatasetResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATEDATASETRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATEDATASETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT CreateDatasetResult : public ServiceResult + { + public: + struct Data + { + long gmtCreate; + std::string description; + long id; + std::string name; + }; + + + CreateDatasetResult(); + explicit CreateDatasetResult(const std::string &payload); + ~CreateDatasetResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATEDATASETRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/CreateLabelsetRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateLabelsetRequest.h new file mode 100644 index 000000000..31e9dc2b8 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateLabelsetRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATELABELSETREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATELABELSETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT CreateLabelsetRequest : public RpcServiceRequest { +public: + CreateLabelsetRequest(); + ~CreateLabelsetRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getType() const; + void setType(const std::string &type); + long getPreLabelId() const; + void setPreLabelId(long preLabelId); + std::string getTagUserList() const; + void setTagUserList(const std::string &tagUserList); + std::string getUserOssUrl() const; + void setUserOssUrl(const std::string &userOssUrl); + std::string getObjectKey() const; + void setObjectKey(const std::string &objectKey); + std::string getName() const; + void setName(const std::string &name); + long getDatasetId() const; + void setDatasetId(long datasetId); + std::string getTagSettings() const; + void setTagSettings(const std::string &tagSettings); + +private: + std::string description_; + std::string type_; + long preLabelId_; + std::string tagUserList_; + std::string userOssUrl_; + std::string objectKey_; + std::string name_; + long datasetId_; + std::string tagSettings_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATELABELSETREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/CreateLabelsetResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateLabelsetResult.h new file mode 100644 index 000000000..4d7f45338 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateLabelsetResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATELABELSETRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATELABELSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT CreateLabelsetResult : public ServiceResult + { + public: + struct Data + { + std::string status; + long gmtCreate; + std::string description; + std::string labelType; + long id; + std::string name; + }; + + + CreateLabelsetResult(); + explicit CreateLabelsetResult(const std::string &payload); + ~CreateLabelsetResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATELABELSETRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/CreateServiceRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateServiceRequest.h new file mode 100644 index 000000000..6a40f84fc --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateServiceRequest.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_VIAPI_REGEN_MODEL_CREATESERVICEREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATESERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT CreateServiceRequest : public RpcServiceRequest { +public: + CreateServiceRequest(); + ~CreateServiceRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + long getTrainTaskId() const; + void setTrainTaskId(long trainTaskId); + std::string getAuthorizationType() const; + void setAuthorizationType(const std::string &authorizationType); + std::string getName() const; + void setName(const std::string &name); + std::string getAuthorizedAccount() const; + void setAuthorizedAccount(const std::string &authorizedAccount); + +private: + std::string description_; + long trainTaskId_; + std::string authorizationType_; + std::string name_; + std::string authorizedAccount_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATESERVICEREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/CreateServiceResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateServiceResult.h new file mode 100644 index 000000000..3b811f5ff --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateServiceResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATESERVICERESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATESERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT CreateServiceResult : public ServiceResult + { + public: + struct Data + { + std::string status; + long gmtCreate; + std::string serviceName; + std::string serviceDescription; + std::string authorizedAccount; + long id; + std::string authorizationType; + }; + + + CreateServiceResult(); + explicit CreateServiceResult(const std::string &payload); + ~CreateServiceResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATESERVICERESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/CreateTagTaskRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateTagTaskRequest.h new file mode 100644 index 000000000..65d473307 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateTagTaskRequest.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_VIAPI_REGEN_MODEL_CREATETAGTASKREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATETAGTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT CreateTagTaskRequest : public RpcServiceRequest { +public: + CreateTagTaskRequest(); + ~CreateTagTaskRequest(); + long getLabelsetId() const; + void setLabelsetId(long labelsetId); + +private: + long labelsetId_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATETAGTASKREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/CreateTagTaskResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateTagTaskResult.h new file mode 100644 index 000000000..da62b7d1f --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateTagTaskResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATETAGTASKRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATETAGTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT CreateTagTaskResult : public ServiceResult + { + public: + struct Data + { + std::string status; + long gmtCreate; + std::string description; + std::string labelType; + long id; + std::string name; + }; + + + CreateTagTaskResult(); + explicit CreateTagTaskResult(const std::string &payload); + ~CreateTagTaskResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATETAGTASKRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/CreateTrainTaskRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateTrainTaskRequest.h new file mode 100644 index 000000000..05b0abaea --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateTrainTaskRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATETRAINTASKREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATETRAINTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT CreateTrainTaskRequest : public RpcServiceRequest { +public: + CreateTrainTaskRequest(); + ~CreateTrainTaskRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getTrainMode() const; + void setTrainMode(const std::string &trainMode); + long getPreTrainTaskId() const; + void setPreTrainTaskId(long preTrainTaskId); + std::string getAdvancedParameters() const; + void setAdvancedParameters(const std::string &advancedParameters); + long getLabelId() const; + void setLabelId(long labelId); + std::string getName() const; + void setName(const std::string &name); + long getDatasetId() const; + void setDatasetId(long datasetId); + long getWorkspaceId() const; + void setWorkspaceId(long workspaceId); + +private: + std::string description_; + std::string trainMode_; + long preTrainTaskId_; + std::string advancedParameters_; + long labelId_; + std::string name_; + long datasetId_; + long workspaceId_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATETRAINTASKREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/CreateTrainTaskResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateTrainTaskResult.h new file mode 100644 index 000000000..959b39286 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateTrainTaskResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATETRAINTASKRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATETRAINTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT CreateTrainTaskResult : public ServiceResult + { + public: + struct Data + { + std::string description; + std::string labelName; + long datasetId; + long gmtCreate; + std::string relyOnTaskName; + std::string trainStatus; + std::string taskName; + std::string datasetName; + std::string modelEffect; + long id; + long labelId; + long relyOnTaskId; + std::string trainMode; + std::string advancedParameters; + long modelId; + }; + + + CreateTrainTaskResult(); + explicit CreateTrainTaskResult(const std::string &payload); + ~CreateTrainTaskResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATETRAINTASKRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/CreateWorkspaceRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateWorkspaceRequest.h new file mode 100644 index 000000000..51ae7c526 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateWorkspaceRequest.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_VIAPI_REGEN_MODEL_CREATEWORKSPACEREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATEWORKSPACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT CreateWorkspaceRequest : public RpcServiceRequest { +public: + CreateWorkspaceRequest(); + ~CreateWorkspaceRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getType() const; + void setType(const std::string &type); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string description_; + std::string type_; + std::string name_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATEWORKSPACEREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/CreateWorkspaceResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateWorkspaceResult.h new file mode 100644 index 000000000..caaabcb7a --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/CreateWorkspaceResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATEWORKSPACERESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATEWORKSPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT CreateWorkspaceResult : public ServiceResult + { + public: + struct Data + { + long gmtCreate; + std::string type; + std::string description; + long id; + std::string name; + }; + + + CreateWorkspaceResult(); + explicit CreateWorkspaceResult(const std::string &payload); + ~CreateWorkspaceResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_CREATEWORKSPACERESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/CustomizeClassifyImageRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/CustomizeClassifyImageRequest.h new file mode 100644 index 000000000..54b7d5cb8 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/CustomizeClassifyImageRequest.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_VIAPI_REGEN_MODEL_CUSTOMIZECLASSIFYIMAGEREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_CUSTOMIZECLASSIFYIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT CustomizeClassifyImageRequest : public RpcServiceRequest { +public: + CustomizeClassifyImageRequest(); + ~CustomizeClassifyImageRequest(); + std::string getImageUrl() const; + void setImageUrl(const std::string &imageUrl); + std::string getServiceId() const; + void setServiceId(const std::string &serviceId); + +private: + std::string imageUrl_; + std::string serviceId_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_CUSTOMIZECLASSIFYIMAGEREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/CustomizeClassifyImageResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/CustomizeClassifyImageResult.h new file mode 100644 index 000000000..b34a90b6c --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/CustomizeClassifyImageResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_CUSTOMIZECLASSIFYIMAGERESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_CUSTOMIZECLASSIFYIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT CustomizeClassifyImageResult : public ServiceResult + { + public: + struct Data + { + float score; + std::string category; + }; + + + CustomizeClassifyImageResult(); + explicit CustomizeClassifyImageResult(const std::string &payload); + ~CustomizeClassifyImageResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_CUSTOMIZECLASSIFYIMAGERESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/CustomizeDetectImageRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/CustomizeDetectImageRequest.h new file mode 100644 index 000000000..aa87e0772 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/CustomizeDetectImageRequest.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_VIAPI_REGEN_MODEL_CUSTOMIZEDETECTIMAGEREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_CUSTOMIZEDETECTIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT CustomizeDetectImageRequest : public RpcServiceRequest { +public: + CustomizeDetectImageRequest(); + ~CustomizeDetectImageRequest(); + std::string getImageUrl() const; + void setImageUrl(const std::string &imageUrl); + std::string getServiceId() const; + void setServiceId(const std::string &serviceId); + +private: + std::string imageUrl_; + std::string serviceId_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_CUSTOMIZEDETECTIMAGEREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/CustomizeDetectImageResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/CustomizeDetectImageResult.h new file mode 100644 index 000000000..6a38d12ac --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/CustomizeDetectImageResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_CUSTOMIZEDETECTIMAGERESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_CUSTOMIZEDETECTIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT CustomizeDetectImageResult : public ServiceResult + { + public: + struct Data + { + struct ElementsItem + { + struct Boxes + { + float x; + float y; + float height; + float width; + }; + float score; + std::string category; + Boxes boxes; + }; + std::vector elements; + }; + + + CustomizeDetectImageResult(); + explicit CustomizeDetectImageResult(const std::string &payload); + ~CustomizeDetectImageResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_CUSTOMIZEDETECTIMAGERESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/CustomizeInstanceSegmentImageRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/CustomizeInstanceSegmentImageRequest.h new file mode 100644 index 000000000..1289d5dd5 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/CustomizeInstanceSegmentImageRequest.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_VIAPI_REGEN_MODEL_CUSTOMIZEINSTANCESEGMENTIMAGEREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_CUSTOMIZEINSTANCESEGMENTIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT CustomizeInstanceSegmentImageRequest : public RpcServiceRequest { +public: + CustomizeInstanceSegmentImageRequest(); + ~CustomizeInstanceSegmentImageRequest(); + std::string getImageUrl() const; + void setImageUrl(const std::string &imageUrl); + std::string getServiceId() const; + void setServiceId(const std::string &serviceId); + +private: + std::string imageUrl_; + std::string serviceId_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_CUSTOMIZEINSTANCESEGMENTIMAGEREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/CustomizeInstanceSegmentImageResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/CustomizeInstanceSegmentImageResult.h new file mode 100644 index 000000000..58c9ae1a8 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/CustomizeInstanceSegmentImageResult.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_CUSTOMIZEINSTANCESEGMENTIMAGERESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_CUSTOMIZEINSTANCESEGMENTIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT CustomizeInstanceSegmentImageResult : public ServiceResult + { + public: + struct Data + { + struct ElementsItem + { + struct Boxes + { + int x; + int y; + int height; + int width; + }; + struct Mask + { + std::vector sizes; + std::string counts; + }; + struct ContoursItem + { + int x; + int y; + }; + float score; + std::string category; + std::vector contours; + Mask mask; + Boxes boxes; + }; + std::vector elements; + }; + + + CustomizeInstanceSegmentImageResult(); + explicit CustomizeInstanceSegmentImageResult(const std::string &payload); + ~CustomizeInstanceSegmentImageResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_CUSTOMIZEINSTANCESEGMENTIMAGERESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/DebugServiceRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/DebugServiceRequest.h new file mode 100644 index 000000000..64a78ed2b --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/DebugServiceRequest.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_VIAPI_REGEN_MODEL_DEBUGSERVICEREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DEBUGSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT DebugServiceRequest : public RpcServiceRequest { +public: + DebugServiceRequest(); + ~DebugServiceRequest(); + std::string getParam() const; + void setParam(const std::string ¶m); + long getId() const; + void setId(long id); + +private: + std::string param_; + long id_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DEBUGSERVICEREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/DebugServiceResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/DebugServiceResult.h new file mode 100644 index 000000000..c35ee50f1 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/DebugServiceResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_DEBUGSERVICERESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DEBUGSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT DebugServiceResult : public ServiceResult + { + public: + + + DebugServiceResult(); + explicit DebugServiceResult(const std::string &payload); + ~DebugServiceResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DEBUGSERVICERESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteDataReflowDataRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteDataReflowDataRequest.h new file mode 100644 index 000000000..06504a813 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteDataReflowDataRequest.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_VIAPI_REGEN_MODEL_DELETEDATAREFLOWDATAREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETEDATAREFLOWDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT DeleteDataReflowDataRequest : public RpcServiceRequest { +public: + DeleteDataReflowDataRequest(); + ~DeleteDataReflowDataRequest(); + long getId() const; + void setId(long id); + long getServiceId() const; + void setServiceId(long serviceId); + +private: + long id_; + long serviceId_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETEDATAREFLOWDATAREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteDataReflowDataResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteDataReflowDataResult.h new file mode 100644 index 000000000..4df7ce0a7 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteDataReflowDataResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETEDATAREFLOWDATARESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETEDATAREFLOWDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT DeleteDataReflowDataResult : public ServiceResult + { + public: + struct Data + { + std::string status; + long gmtModified; + long id; + long serviceId; + }; + + + DeleteDataReflowDataResult(); + explicit DeleteDataReflowDataResult(const std::string &payload); + ~DeleteDataReflowDataResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETEDATAREFLOWDATARESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteDatasetRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteDatasetRequest.h new file mode 100644 index 000000000..e0df1b725 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteDatasetRequest.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_VIAPI_REGEN_MODEL_DELETEDATASETREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETEDATASETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT DeleteDatasetRequest : public RpcServiceRequest { +public: + DeleteDatasetRequest(); + ~DeleteDatasetRequest(); + long getId() const; + void setId(long id); + +private: + long id_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETEDATASETREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteDatasetResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteDatasetResult.h new file mode 100644 index 000000000..976238cdd --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteDatasetResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETEDATASETRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETEDATASETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT DeleteDatasetResult : public ServiceResult + { + public: + struct Data + { + long gmtCreate; + std::string description; + long id; + std::string name; + }; + + + DeleteDatasetResult(); + explicit DeleteDatasetResult(const std::string &payload); + ~DeleteDatasetResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETEDATASETRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteLabelsetDataRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteLabelsetDataRequest.h new file mode 100644 index 000000000..b9e0f8efb --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteLabelsetDataRequest.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_VIAPI_REGEN_MODEL_DELETELABELSETDATAREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETELABELSETDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT DeleteLabelsetDataRequest : public RpcServiceRequest { +public: + DeleteLabelsetDataRequest(); + ~DeleteLabelsetDataRequest(); + long getId() const; + void setId(long id); + long getLabelId() const; + void setLabelId(long labelId); + +private: + long id_; + long labelId_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETELABELSETDATAREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteLabelsetDataResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteLabelsetDataResult.h new file mode 100644 index 000000000..f3533533d --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteLabelsetDataResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETELABELSETDATARESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETELABELSETDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT DeleteLabelsetDataResult : public ServiceResult + { + public: + struct Data + { + std::string status; + long gmtCreate; + std::string description; + std::string labelType; + long total; + long id; + std::string name; + }; + + + DeleteLabelsetDataResult(); + explicit DeleteLabelsetDataResult(const std::string &payload); + ~DeleteLabelsetDataResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETELABELSETDATARESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteLabelsetRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteLabelsetRequest.h new file mode 100644 index 000000000..834e881a0 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteLabelsetRequest.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_VIAPI_REGEN_MODEL_DELETELABELSETREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETELABELSETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT DeleteLabelsetRequest : public RpcServiceRequest { +public: + DeleteLabelsetRequest(); + ~DeleteLabelsetRequest(); + long getId() const; + void setId(long id); + +private: + long id_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETELABELSETREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteLabelsetResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteLabelsetResult.h new file mode 100644 index 000000000..49fd53292 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteLabelsetResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETELABELSETRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETELABELSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT DeleteLabelsetResult : public ServiceResult + { + public: + struct Data + { + std::string status; + long gmtCreate; + std::string description; + std::string labelType; + long id; + std::string name; + }; + + + DeleteLabelsetResult(); + explicit DeleteLabelsetResult(const std::string &payload); + ~DeleteLabelsetResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETELABELSETRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteServiceRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteServiceRequest.h new file mode 100644 index 000000000..5c38c3cff --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteServiceRequest.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_VIAPI_REGEN_MODEL_DELETESERVICEREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETESERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT DeleteServiceRequest : public RpcServiceRequest { +public: + DeleteServiceRequest(); + ~DeleteServiceRequest(); + long getId() const; + void setId(long id); + +private: + long id_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETESERVICEREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteServiceResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteServiceResult.h new file mode 100644 index 000000000..b4d52ffba --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteServiceResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETESERVICERESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETESERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT DeleteServiceResult : public ServiceResult + { + public: + struct Data + { + long id; + }; + + + DeleteServiceResult(); + explicit DeleteServiceResult(const std::string &payload); + ~DeleteServiceResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETESERVICERESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteTrainTaskRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteTrainTaskRequest.h new file mode 100644 index 000000000..b61ebcd1f --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteTrainTaskRequest.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_VIAPI_REGEN_MODEL_DELETETRAINTASKREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETETRAINTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT DeleteTrainTaskRequest : public RpcServiceRequest { +public: + DeleteTrainTaskRequest(); + ~DeleteTrainTaskRequest(); + long getId() const; + void setId(long id); + +private: + long id_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETETRAINTASKREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteTrainTaskResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteTrainTaskResult.h new file mode 100644 index 000000000..1a4c941d1 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteTrainTaskResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETETRAINTASKRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETETRAINTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT DeleteTrainTaskResult : public ServiceResult + { + public: + struct Data + { + long gmtCreate; + std::string trainStatus; + std::string description; + std::string taskName; + std::string datasetName; + std::string labelName; + std::string modelEffect; + long id; + long labelId; + std::string trainMode; + long modelId; + long datasetId; + }; + + + DeleteTrainTaskResult(); + explicit DeleteTrainTaskResult(const std::string &payload); + ~DeleteTrainTaskResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETETRAINTASKRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteWorkspaceRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteWorkspaceRequest.h new file mode 100644 index 000000000..61bfdd673 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteWorkspaceRequest.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_VIAPI_REGEN_MODEL_DELETEWORKSPACEREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETEWORKSPACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT DeleteWorkspaceRequest : public RpcServiceRequest { +public: + DeleteWorkspaceRequest(); + ~DeleteWorkspaceRequest(); + long getId() const; + void setId(long id); + +private: + long id_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETEWORKSPACEREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteWorkspaceResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteWorkspaceResult.h new file mode 100644 index 000000000..8987b11c1 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/DeleteWorkspaceResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETEWORKSPACERESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETEWORKSPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT DeleteWorkspaceResult : public ServiceResult + { + public: + struct Data + { + long gmtCreate; + std::string type; + std::string description; + long id; + std::string name; + }; + + + DeleteWorkspaceResult(); + explicit DeleteWorkspaceResult(const std::string &payload); + ~DeleteWorkspaceResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DELETEWORKSPACERESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/DisableDataReflowRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/DisableDataReflowRequest.h new file mode 100644 index 000000000..7abf0c12e --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/DisableDataReflowRequest.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_VIAPI_REGEN_MODEL_DISABLEDATAREFLOWREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DISABLEDATAREFLOWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT DisableDataReflowRequest : public RpcServiceRequest { +public: + DisableDataReflowRequest(); + ~DisableDataReflowRequest(); + long getServiceId() const; + void setServiceId(long serviceId); + +private: + long serviceId_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DISABLEDATAREFLOWREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/DisableDataReflowResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/DisableDataReflowResult.h new file mode 100644 index 000000000..8f76d3835 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/DisableDataReflowResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_DISABLEDATAREFLOWRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DISABLEDATAREFLOWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT DisableDataReflowResult : public ServiceResult + { + public: + struct Data + { + bool enableDataReflowFlag; + long serviceId; + }; + + + DisableDataReflowResult(); + explicit DisableDataReflowResult(const std::string &payload); + ~DisableDataReflowResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DISABLEDATAREFLOWRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/DownloadFileNameListRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/DownloadFileNameListRequest.h new file mode 100644 index 000000000..9d181c6fa --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/DownloadFileNameListRequest.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_VIAPI_REGEN_MODEL_DOWNLOADFILENAMELISTREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DOWNLOADFILENAMELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT DownloadFileNameListRequest : public RpcServiceRequest { +public: + DownloadFileNameListRequest(); + ~DownloadFileNameListRequest(); + std::string getIdentity() const; + void setIdentity(const std::string &identity); + long getDatasetId() const; + void setDatasetId(long datasetId); + +private: + std::string identity_; + long datasetId_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DOWNLOADFILENAMELISTREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/DownloadFileNameListResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/DownloadFileNameListResult.h new file mode 100644 index 000000000..fde1b38f7 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/DownloadFileNameListResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_DOWNLOADFILENAMELISTRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DOWNLOADFILENAMELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT DownloadFileNameListResult : public ServiceResult + { + public: + struct Data + { + std::string ossHttpUrl; + }; + + + DownloadFileNameListResult(); + explicit DownloadFileNameListResult(const std::string &payload); + ~DownloadFileNameListResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DOWNLOADFILENAMELISTRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/DownloadLabelFileRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/DownloadLabelFileRequest.h new file mode 100644 index 000000000..1e4fe1dc6 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/DownloadLabelFileRequest.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_VIAPI_REGEN_MODEL_DOWNLOADLABELFILEREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DOWNLOADLABELFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT DownloadLabelFileRequest : public RpcServiceRequest { +public: + DownloadLabelFileRequest(); + ~DownloadLabelFileRequest(); + long getLabelId() const; + void setLabelId(long labelId); + +private: + long labelId_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DOWNLOADLABELFILEREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/DownloadLabelFileResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/DownloadLabelFileResult.h new file mode 100644 index 000000000..d97204050 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/DownloadLabelFileResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_DOWNLOADLABELFILERESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_DOWNLOADLABELFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT DownloadLabelFileResult : public ServiceResult + { + public: + struct Data + { + std::string ossHttpUrl; + }; + + + DownloadLabelFileResult(); + explicit DownloadLabelFileResult(const std::string &payload); + ~DownloadLabelFileResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_DOWNLOADLABELFILERESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/EnableDataReflowRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/EnableDataReflowRequest.h new file mode 100644 index 000000000..c00bd3799 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/EnableDataReflowRequest.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_VIAPI_REGEN_MODEL_ENABLEDATAREFLOWREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_ENABLEDATAREFLOWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT EnableDataReflowRequest : public RpcServiceRequest { +public: + EnableDataReflowRequest(); + ~EnableDataReflowRequest(); + long getDataReflowRate() const; + void setDataReflowRate(long dataReflowRate); + std::string getDataReflowOssPath() const; + void setDataReflowOssPath(const std::string &dataReflowOssPath); + long getServiceId() const; + void setServiceId(long serviceId); + +private: + long dataReflowRate_; + std::string dataReflowOssPath_; + long serviceId_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_ENABLEDATAREFLOWREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/EnableDataReflowResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/EnableDataReflowResult.h new file mode 100644 index 000000000..5bc73a699 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/EnableDataReflowResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_ENABLEDATAREFLOWRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_ENABLEDATAREFLOWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT EnableDataReflowResult : public ServiceResult + { + public: + struct Data + { + bool enableDataReflowFlag; + std::string dataReflowOssPath; + long dataReflowRate; + long serviceId; + }; + + + EnableDataReflowResult(); + explicit EnableDataReflowResult(const std::string &payload); + ~EnableDataReflowResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_ENABLEDATAREFLOWRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/ExportDataReflowDataListRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/ExportDataReflowDataListRequest.h new file mode 100644 index 000000000..d10bc9cdf --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/ExportDataReflowDataListRequest.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_VIAPI_REGEN_MODEL_EXPORTDATAREFLOWDATALISTREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_EXPORTDATAREFLOWDATALISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT ExportDataReflowDataListRequest : public RpcServiceRequest { +public: + ExportDataReflowDataListRequest(); + ~ExportDataReflowDataListRequest(); + std::string getFileType() const; + void setFileType(const std::string &fileType); + long getStartTime() const; + void setStartTime(long startTime); + std::string getImageName() const; + void setImageName(const std::string &imageName); + long getEndTime() const; + void setEndTime(long endTime); + long getServiceId() const; + void setServiceId(long serviceId); + std::string getCategory() const; + void setCategory(const std::string &category); + +private: + std::string fileType_; + long startTime_; + std::string imageName_; + long endTime_; + long serviceId_; + std::string category_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_EXPORTDATAREFLOWDATALISTREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/ExportDataReflowDataListResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/ExportDataReflowDataListResult.h new file mode 100644 index 000000000..e1d1f5724 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/ExportDataReflowDataListResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_EXPORTDATAREFLOWDATALISTRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_EXPORTDATAREFLOWDATALISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT ExportDataReflowDataListResult : public ServiceResult + { + public: + struct Data + { + std::string ossHttpUrl; + }; + + + ExportDataReflowDataListResult(); + explicit ExportDataReflowDataListResult(const std::string &payload); + ~ExportDataReflowDataListResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_EXPORTDATAREFLOWDATALISTRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/GetDatasetRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/GetDatasetRequest.h new file mode 100644 index 000000000..49fdc4633 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/GetDatasetRequest.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_VIAPI_REGEN_MODEL_GETDATASETREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETDATASETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetDatasetRequest : public RpcServiceRequest { +public: + GetDatasetRequest(); + ~GetDatasetRequest(); + long getId() const; + void setId(long id); + +private: + long id_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETDATASETREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/GetDatasetResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/GetDatasetResult.h new file mode 100644 index 000000000..93d055303 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/GetDatasetResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_GETDATASETRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETDATASETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetDatasetResult : public ServiceResult + { + public: + struct Data + { + std::string ownerType; + long gmtCreate; + std::string description; + long total; + std::string ossUrl; + long id; + std::string name; + }; + + + GetDatasetResult(); + explicit GetDatasetResult(const std::string &payload); + ~GetDatasetResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETDATASETRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/GetDiffCountLabelsetAndDatasetRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/GetDiffCountLabelsetAndDatasetRequest.h new file mode 100644 index 000000000..8b7f793a7 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/GetDiffCountLabelsetAndDatasetRequest.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_VIAPI_REGEN_MODEL_GETDIFFCOUNTLABELSETANDDATASETREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETDIFFCOUNTLABELSETANDDATASETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetDiffCountLabelsetAndDatasetRequest : public RpcServiceRequest { +public: + GetDiffCountLabelsetAndDatasetRequest(); + ~GetDiffCountLabelsetAndDatasetRequest(); + long getLabelsetId() const; + void setLabelsetId(long labelsetId); + +private: + long labelsetId_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETDIFFCOUNTLABELSETANDDATASETREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/GetDiffCountLabelsetAndDatasetResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/GetDiffCountLabelsetAndDatasetResult.h new file mode 100644 index 000000000..7ff474074 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/GetDiffCountLabelsetAndDatasetResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_GETDIFFCOUNTLABELSETANDDATASETRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETDIFFCOUNTLABELSETANDDATASETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetDiffCountLabelsetAndDatasetResult : public ServiceResult + { + public: + struct Data + { + long diffCount; + }; + + + GetDiffCountLabelsetAndDatasetResult(); + explicit GetDiffCountLabelsetAndDatasetResult(const std::string &payload); + ~GetDiffCountLabelsetAndDatasetResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETDIFFCOUNTLABELSETANDDATASETRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/GetLabelDetailRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/GetLabelDetailRequest.h new file mode 100644 index 000000000..feabfa2db --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/GetLabelDetailRequest.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_VIAPI_REGEN_MODEL_GETLABELDETAILREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETLABELDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetLabelDetailRequest : public RpcServiceRequest { +public: + GetLabelDetailRequest(); + ~GetLabelDetailRequest(); + long getId() const; + void setId(long id); + +private: + long id_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETLABELDETAILREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/GetLabelDetailResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/GetLabelDetailResult.h new file mode 100644 index 000000000..41d27f57f --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/GetLabelDetailResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_GETLABELDETAILRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETLABELDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetLabelDetailResult : public ServiceResult + { + public: + struct Data + { + std::string labelInfo; + }; + + + GetLabelDetailResult(); + explicit GetLabelDetailResult(const std::string &payload); + ~GetLabelDetailResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETLABELDETAILRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/GetLabelsetRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/GetLabelsetRequest.h new file mode 100644 index 000000000..f8f8aec2b --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/GetLabelsetRequest.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_VIAPI_REGEN_MODEL_GETLABELSETREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETLABELSETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetLabelsetRequest : public RpcServiceRequest { +public: + GetLabelsetRequest(); + ~GetLabelsetRequest(); + long getId() const; + void setId(long id); + +private: + long id_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETLABELSETREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/GetLabelsetResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/GetLabelsetResult.h new file mode 100644 index 000000000..ef4b6e9ea --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/GetLabelsetResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_GETLABELSETRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETLABELSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetLabelsetResult : public ServiceResult + { + public: + struct Data + { + std::string status; + long gmtCreate; + std::string subTaskPackageSize; + std::string description; + std::string labelType; + long total; + std::string tagUserList; + long id; + std::string tags; + std::string name; + }; + + + GetLabelsetResult(); + explicit GetLabelsetResult(const std::string &payload); + ~GetLabelsetResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETLABELSETRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/GetServiceRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/GetServiceRequest.h new file mode 100644 index 000000000..3d925c82f --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/GetServiceRequest.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_VIAPI_REGEN_MODEL_GETSERVICEREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetServiceRequest : public RpcServiceRequest { +public: + GetServiceRequest(); + ~GetServiceRequest(); + long getId() const; + void setId(long id); + +private: + long id_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETSERVICEREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/GetServiceResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/GetServiceResult.h new file mode 100644 index 000000000..93282d7ba --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/GetServiceResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_GETSERVICERESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetServiceResult : public ServiceResult + { + public: + struct Data + { + struct DataReflowInfo + { + long dataReflowCount; + bool enableDataReflowFlag; + std::string dataReflowOssPath; + long dataReflowRate; + }; + std::string status; + std::string errorcodes; + long gmtCreate; + std::string inputParams; + std::string serviceName; + std::string serviceDescription; + DataReflowInfo dataReflowInfo; + std::string outputExample; + long id; + std::string inputExample; + std::string outputParams; + std::string serviceId; + }; + + + GetServiceResult(); + explicit GetServiceResult(const std::string &payload); + ~GetServiceResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETSERVICERESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/GetTrainModelRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/GetTrainModelRequest.h new file mode 100644 index 000000000..3367c61dd --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/GetTrainModelRequest.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_VIAPI_REGEN_MODEL_GETTRAINMODELREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETTRAINMODELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetTrainModelRequest : public RpcServiceRequest { +public: + GetTrainModelRequest(); + ~GetTrainModelRequest(); + long getId() const; + void setId(long id); + +private: + long id_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETTRAINMODELREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/GetTrainModelResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/GetTrainModelResult.h new file mode 100644 index 000000000..e11c95da1 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/GetTrainModelResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_GETTRAINMODELRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETTRAINMODELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetTrainModelResult : public ServiceResult + { + public: + struct Data + { + long simpleEvaluate; + }; + + + GetTrainModelResult(); + explicit GetTrainModelResult(const std::string &payload); + ~GetTrainModelResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETTRAINMODELRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/GetTrainTaskEstimatedTimeRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/GetTrainTaskEstimatedTimeRequest.h new file mode 100644 index 000000000..1be321da5 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/GetTrainTaskEstimatedTimeRequest.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_VIAPI_REGEN_MODEL_GETTRAINTASKESTIMATEDTIMEREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETTRAINTASKESTIMATEDTIMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetTrainTaskEstimatedTimeRequest : public RpcServiceRequest { +public: + GetTrainTaskEstimatedTimeRequest(); + ~GetTrainTaskEstimatedTimeRequest(); + long getId() const; + void setId(long id); + +private: + long id_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETTRAINTASKESTIMATEDTIMEREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/GetTrainTaskEstimatedTimeResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/GetTrainTaskEstimatedTimeResult.h new file mode 100644 index 000000000..f22ec2a48 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/GetTrainTaskEstimatedTimeResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_GETTRAINTASKESTIMATEDTIMERESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETTRAINTASKESTIMATEDTIMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetTrainTaskEstimatedTimeResult : public ServiceResult + { + public: + struct Data + { + std::string estimatedTime; + }; + + + GetTrainTaskEstimatedTimeResult(); + explicit GetTrainTaskEstimatedTimeResult(const std::string &payload); + ~GetTrainTaskEstimatedTimeResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETTRAINTASKESTIMATEDTIMERESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/GetTrainTaskRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/GetTrainTaskRequest.h new file mode 100644 index 000000000..a4c465b07 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/GetTrainTaskRequest.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_VIAPI_REGEN_MODEL_GETTRAINTASKREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETTRAINTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetTrainTaskRequest : public RpcServiceRequest { +public: + GetTrainTaskRequest(); + ~GetTrainTaskRequest(); + long getId() const; + void setId(long id); + +private: + long id_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETTRAINTASKREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/GetTrainTaskResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/GetTrainTaskResult.h new file mode 100644 index 000000000..46422011e --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/GetTrainTaskResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_GETTRAINTASKRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETTRAINTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetTrainTaskResult : public ServiceResult + { + public: + struct Data + { + long trainUseTime; + std::string description; + std::string labelName; + long datasetId; + long gmtCreate; + std::string trainStatus; + std::string taskName; + std::string datasetName; + std::string failureReason; + std::string modelEffect; + long id; + long labelId; + std::string trainMode; + long modelId; + }; + + + GetTrainTaskResult(); + explicit GetTrainTaskResult(const std::string &payload); + ~GetTrainTaskResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETTRAINTASKRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/GetUploadPolicyRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/GetUploadPolicyRequest.h new file mode 100644 index 000000000..e3dbc49a1 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/GetUploadPolicyRequest.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_VIAPI_REGEN_MODEL_GETUPLOADPOLICYREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETUPLOADPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetUploadPolicyRequest : public RpcServiceRequest { +public: + GetUploadPolicyRequest(); + ~GetUploadPolicyRequest(); + std::string getType() const; + void setType(const std::string &type); + long getId() const; + void setId(long id); + std::string getFileName() const; + void setFileName(const std::string &fileName); + +private: + std::string type_; + long id_; + std::string fileName_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETUPLOADPOLICYREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/GetUploadPolicyResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/GetUploadPolicyResult.h new file mode 100644 index 000000000..cf84de7aa --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/GetUploadPolicyResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_GETUPLOADPOLICYRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETUPLOADPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetUploadPolicyResult : public ServiceResult + { + public: + struct Data + { + std::string policy; + std::string signedHttpUrl; + std::string bucketName; + std::string originalFilename; + std::string endpoint; + std::string accessId; + std::string signature; + std::string fileName; + std::string objectKey; + }; + + + GetUploadPolicyResult(); + explicit GetUploadPolicyResult(const std::string &payload); + ~GetUploadPolicyResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETUPLOADPOLICYRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/GetWorkspaceRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/GetWorkspaceRequest.h new file mode 100644 index 000000000..2b3fa5350 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/GetWorkspaceRequest.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_VIAPI_REGEN_MODEL_GETWORKSPACEREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETWORKSPACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetWorkspaceRequest : public RpcServiceRequest { +public: + GetWorkspaceRequest(); + ~GetWorkspaceRequest(); + long getId() const; + void setId(long id); + +private: + long id_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETWORKSPACEREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/GetWorkspaceResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/GetWorkspaceResult.h new file mode 100644 index 000000000..cc27e7006 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/GetWorkspaceResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_GETWORKSPACERESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_GETWORKSPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT GetWorkspaceResult : public ServiceResult + { + public: + struct Data + { + long gmtCreate; + std::string type; + std::string description; + long id; + std::string name; + }; + + + GetWorkspaceResult(); + explicit GetWorkspaceResult(const std::string &payload); + ~GetWorkspaceResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_GETWORKSPACERESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/ListDataReflowDatasRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/ListDataReflowDatasRequest.h new file mode 100644 index 000000000..7f8dac1cb --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/ListDataReflowDatasRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTDATAREFLOWDATASREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTDATAREFLOWDATASREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT ListDataReflowDatasRequest : public RpcServiceRequest { +public: + ListDataReflowDatasRequest(); + ~ListDataReflowDatasRequest(); + long getStartTime() const; + void setStartTime(long startTime); + std::string getImageName() const; + void setImageName(const std::string &imageName); + long getPageSize() const; + void setPageSize(long pageSize); + long getEndTime() const; + void setEndTime(long endTime); + long getCurrentPage() const; + void setCurrentPage(long currentPage); + long getServiceId() const; + void setServiceId(long serviceId); + std::string getCategory() const; + void setCategory(const std::string &category); + +private: + long startTime_; + std::string imageName_; + long pageSize_; + long endTime_; + long currentPage_; + long serviceId_; + std::string category_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTDATAREFLOWDATASREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/ListDataReflowDatasResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/ListDataReflowDatasResult.h new file mode 100644 index 000000000..61efc6d56 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/ListDataReflowDatasResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTDATAREFLOWDATASRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTDATAREFLOWDATASRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT ListDataReflowDatasResult : public ServiceResult + { + public: + struct Data + { + long totalCount; + long pageSize; + long totalPage; + long currentPage; + std::vector elements; + }; + + + ListDataReflowDatasResult(); + explicit ListDataReflowDatasResult(const std::string &payload); + ~ListDataReflowDatasResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTDATAREFLOWDATASRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/ListDatasetDatasRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/ListDatasetDatasRequest.h new file mode 100644 index 000000000..bdd782b1e --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/ListDatasetDatasRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTDATASETDATASREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTDATASETDATASREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT ListDatasetDatasRequest : public RpcServiceRequest { +public: + ListDatasetDatasRequest(); + ~ListDatasetDatasRequest(); + std::string getIdentity() const; + void setIdentity(const std::string &identity); + long getPageSize() const; + void setPageSize(long pageSize); + long getCurrentPage() const; + void setCurrentPage(long currentPage); + long getDatasetId() const; + void setDatasetId(long datasetId); + +private: + std::string identity_; + long pageSize_; + long currentPage_; + long datasetId_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTDATASETDATASREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/ListDatasetDatasResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/ListDatasetDatasResult.h new file mode 100644 index 000000000..6b9bf4b5d --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/ListDatasetDatasResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTDATASETDATASRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTDATASETDATASRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT ListDatasetDatasResult : public ServiceResult + { + public: + struct Data + { + long totalCount; + long pageSize; + long totalPage; + long currentPage; + std::vector elements; + }; + + + ListDatasetDatasResult(); + explicit ListDatasetDatasResult(const std::string &payload); + ~ListDatasetDatasResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTDATASETDATASRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/ListDatasetsRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/ListDatasetsRequest.h new file mode 100644 index 000000000..f23ddb8fd --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/ListDatasetsRequest.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_VIAPI_REGEN_MODEL_LISTDATASETSREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTDATASETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT ListDatasetsRequest : public RpcServiceRequest { +public: + ListDatasetsRequest(); + ~ListDatasetsRequest(); + long getPageSize() const; + void setPageSize(long pageSize); + long getCurrentPage() const; + void setCurrentPage(long currentPage); + long getWorkspaceId() const; + void setWorkspaceId(long workspaceId); + +private: + long pageSize_; + long currentPage_; + long workspaceId_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTDATASETSREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/ListDatasetsResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/ListDatasetsResult.h new file mode 100644 index 000000000..3a72ec8d1 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/ListDatasetsResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTDATASETSRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTDATASETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT ListDatasetsResult : public ServiceResult + { + public: + struct Data + { + long totalCount; + long pageSize; + long totalPage; + long currentPage; + std::vector elements; + }; + + + ListDatasetsResult(); + explicit ListDatasetsResult(const std::string &payload); + ~ListDatasetsResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTDATASETSRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/ListLabelsetDatasRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/ListLabelsetDatasRequest.h new file mode 100644 index 000000000..d75ee1d6d --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/ListLabelsetDatasRequest.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_VIAPI_REGEN_MODEL_LISTLABELSETDATASREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTLABELSETDATASREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT ListLabelsetDatasRequest : public RpcServiceRequest { +public: + ListLabelsetDatasRequest(); + ~ListLabelsetDatasRequest(); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getValue() const; + void setValue(const std::string &value); + long getCurrentPage() const; + void setCurrentPage(long currentPage); + long getLabelId() const; + void setLabelId(long labelId); + std::string getName() const; + void setName(const std::string &name); + std::string getOperation() const; + void setOperation(const std::string &operation); + +private: + long pageSize_; + std::string value_; + long currentPage_; + long labelId_; + std::string name_; + std::string operation_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTLABELSETDATASREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/ListLabelsetDatasResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/ListLabelsetDatasResult.h new file mode 100644 index 000000000..83781c539 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/ListLabelsetDatasResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTLABELSETDATASRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTLABELSETDATASRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT ListLabelsetDatasResult : public ServiceResult + { + public: + struct Data + { + long totalCount; + long pageSize; + long totalPage; + long currentPage; + std::vector elements; + }; + + + ListLabelsetDatasResult(); + explicit ListLabelsetDatasResult(const std::string &payload); + ~ListLabelsetDatasResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTLABELSETDATASRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/ListLabelsetsRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/ListLabelsetsRequest.h new file mode 100644 index 000000000..41f758314 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/ListLabelsetsRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTLABELSETSREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTLABELSETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT ListLabelsetsRequest : public RpcServiceRequest { +public: + ListLabelsetsRequest(); + ~ListLabelsetsRequest(); + long getPageSize() const; + void setPageSize(long pageSize); + long getCurrentPage() const; + void setCurrentPage(long currentPage); + long getDatasetId() const; + void setDatasetId(long datasetId); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + long pageSize_; + long currentPage_; + long datasetId_; + std::string status_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTLABELSETSREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/ListLabelsetsResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/ListLabelsetsResult.h new file mode 100644 index 000000000..f6908ce37 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/ListLabelsetsResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTLABELSETSRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTLABELSETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT ListLabelsetsResult : public ServiceResult + { + public: + struct Data + { + long totalCount; + long pageSize; + long totalPage; + long currentPage; + std::vector elements; + }; + + + ListLabelsetsResult(); + explicit ListLabelsetsResult(const std::string &payload); + ~ListLabelsetsResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTLABELSETSRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/ListServicesRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/ListServicesRequest.h new file mode 100644 index 000000000..c60987efa --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/ListServicesRequest.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_VIAPI_REGEN_MODEL_LISTSERVICESREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTSERVICESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT ListServicesRequest : public RpcServiceRequest { +public: + ListServicesRequest(); + ~ListServicesRequest(); + long getPageSize() const; + void setPageSize(long pageSize); + long getId() const; + void setId(long id); + long getCurrentPage() const; + void setCurrentPage(long currentPage); + long getName() const; + void setName(long name); + long getWorkspaceId() const; + void setWorkspaceId(long workspaceId); + +private: + long pageSize_; + long id_; + long currentPage_; + long name_; + long workspaceId_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTSERVICESREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/ListServicesResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/ListServicesResult.h new file mode 100644 index 000000000..407af01cc --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/ListServicesResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTSERVICESRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTSERVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT ListServicesResult : public ServiceResult + { + public: + struct Data + { + long totalCount; + long pageSize; + long totalPage; + long currentPage; + std::vector elements; + }; + + + ListServicesResult(); + explicit ListServicesResult(const std::string &payload); + ~ListServicesResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTSERVICESRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/ListTrainTasksRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/ListTrainTasksRequest.h new file mode 100644 index 000000000..d4be6af45 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/ListTrainTasksRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTTRAINTASKSREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTTRAINTASKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT ListTrainTasksRequest : public RpcServiceRequest { +public: + ListTrainTasksRequest(); + ~ListTrainTasksRequest(); + long getPageSize() const; + void setPageSize(long pageSize); + long getCurrentPage() const; + void setCurrentPage(long currentPage); + std::string getStatus() const; + void setStatus(const std::string &status); + long getWorkspaceId() const; + void setWorkspaceId(long workspaceId); + +private: + long pageSize_; + long currentPage_; + std::string status_; + long workspaceId_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTTRAINTASKSREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/ListTrainTasksResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/ListTrainTasksResult.h new file mode 100644 index 000000000..6d270850e --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/ListTrainTasksResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTTRAINTASKSRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTTRAINTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT ListTrainTasksResult : public ServiceResult + { + public: + struct Data + { + long totalCount; + long pageSize; + long totalPage; + long currentPage; + std::vector elements; + }; + + + ListTrainTasksResult(); + explicit ListTrainTasksResult(const std::string &payload); + ~ListTrainTasksResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTTRAINTASKSRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/ListWorkspacesRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/ListWorkspacesRequest.h new file mode 100644 index 000000000..ef72a4f25 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/ListWorkspacesRequest.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_VIAPI_REGEN_MODEL_LISTWORKSPACESREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTWORKSPACESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT ListWorkspacesRequest : public RpcServiceRequest { +public: + ListWorkspacesRequest(); + ~ListWorkspacesRequest(); + long getPageSize() const; + void setPageSize(long pageSize); + long getCurrentPage() const; + void setCurrentPage(long currentPage); + std::string getName() const; + void setName(const std::string &name); + +private: + long pageSize_; + long currentPage_; + std::string name_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTWORKSPACESREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/ListWorkspacesResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/ListWorkspacesResult.h new file mode 100644 index 000000000..1d57dea6a --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/ListWorkspacesResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTWORKSPACESRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTWORKSPACESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT ListWorkspacesResult : public ServiceResult + { + public: + struct Data + { + struct Element + { + long gmtCreate; + std::string type; + std::string description; + long id; + std::string name; + }; + long totalCount; + long pageSize; + long totalPage; + long currentPage; + std::vector elements; + }; + + + ListWorkspacesResult(); + explicit ListWorkspacesResult(const std::string &payload); + ~ListWorkspacesResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_LISTWORKSPACESRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/SetDatasetUserOssPathRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/SetDatasetUserOssPathRequest.h new file mode 100644 index 000000000..8fa91090a --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/SetDatasetUserOssPathRequest.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_VIAPI_REGEN_MODEL_SETDATASETUSEROSSPATHREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_SETDATASETUSEROSSPATHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT SetDatasetUserOssPathRequest : public RpcServiceRequest { +public: + SetDatasetUserOssPathRequest(); + ~SetDatasetUserOssPathRequest(); + std::string getUserOssUrl() const; + void setUserOssUrl(const std::string &userOssUrl); + long getDatasetId() const; + void setDatasetId(long datasetId); + +private: + std::string userOssUrl_; + long datasetId_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_SETDATASETUSEROSSPATHREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/SetDatasetUserOssPathResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/SetDatasetUserOssPathResult.h new file mode 100644 index 000000000..58bf0d7aa --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/SetDatasetUserOssPathResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_SETDATASETUSEROSSPATHRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_SETDATASETUSEROSSPATHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT SetDatasetUserOssPathResult : public ServiceResult + { + public: + struct Data + { + std::string ossUrl; + long id; + }; + + + SetDatasetUserOssPathResult(); + explicit SetDatasetUserOssPathResult(const std::string &payload); + ~SetDatasetUserOssPathResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_SETDATASETUSEROSSPATHRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/StartServiceRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/StartServiceRequest.h new file mode 100644 index 000000000..cb4e38b59 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/StartServiceRequest.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_VIAPI_REGEN_MODEL_STARTSERVICEREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_STARTSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT StartServiceRequest : public RpcServiceRequest { +public: + StartServiceRequest(); + ~StartServiceRequest(); + long getId() const; + void setId(long id); + +private: + long id_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_STARTSERVICEREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/StartServiceResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/StartServiceResult.h new file mode 100644 index 000000000..5c876de0c --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/StartServiceResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_STARTSERVICERESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_STARTSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT StartServiceResult : public ServiceResult + { + public: + struct Data + { + std::string status; + long gmtCreate; + std::string serviceName; + std::string serviceDescription; + long id; + }; + + + StartServiceResult(); + explicit StartServiceResult(const std::string &payload); + ~StartServiceResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_STARTSERVICERESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/StartTrainTaskRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/StartTrainTaskRequest.h new file mode 100644 index 000000000..e4ff5f02c --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/StartTrainTaskRequest.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_VIAPI_REGEN_MODEL_STARTTRAINTASKREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_STARTTRAINTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT StartTrainTaskRequest : public RpcServiceRequest { +public: + StartTrainTaskRequest(); + ~StartTrainTaskRequest(); + long getRelyOnTaskId() const; + void setRelyOnTaskId(long relyOnTaskId); + bool getForceStartFlag() const; + void setForceStartFlag(bool forceStartFlag); + long getId() const; + void setId(long id); + +private: + long relyOnTaskId_; + bool forceStartFlag_; + long id_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_STARTTRAINTASKREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/StartTrainTaskResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/StartTrainTaskResult.h new file mode 100644 index 000000000..112de266d --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/StartTrainTaskResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_STARTTRAINTASKRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_STARTTRAINTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT StartTrainTaskResult : public ServiceResult + { + public: + struct Data + { + std::string description; + std::string labelName; + long datasetId; + long gmtCreate; + std::string trainStatus; + std::string taskName; + std::string datasetName; + std::string checkResult; + std::string modelEffect; + long id; + long labelId; + std::string trainMode; + long modelId; + }; + + + StartTrainTaskResult(); + explicit StartTrainTaskResult(const std::string &payload); + ~StartTrainTaskResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_STARTTRAINTASKRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/StopServiceRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/StopServiceRequest.h new file mode 100644 index 000000000..8f2fe171e --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/StopServiceRequest.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_VIAPI_REGEN_MODEL_STOPSERVICEREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_STOPSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT StopServiceRequest : public RpcServiceRequest { +public: + StopServiceRequest(); + ~StopServiceRequest(); + long getId() const; + void setId(long id); + +private: + long id_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_STOPSERVICEREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/StopServiceResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/StopServiceResult.h new file mode 100644 index 000000000..8d5ceafa2 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/StopServiceResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_STOPSERVICERESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_STOPSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT StopServiceResult : public ServiceResult + { + public: + struct Data + { + std::string status; + long gmtCreate; + std::string serviceName; + std::string serviceDescription; + long id; + }; + + + StopServiceResult(); + explicit StopServiceResult(const std::string &payload); + ~StopServiceResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_STOPSERVICERESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/StopTrainTaskRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/StopTrainTaskRequest.h new file mode 100644 index 000000000..c543a4584 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/StopTrainTaskRequest.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_VIAPI_REGEN_MODEL_STOPTRAINTASKREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_STOPTRAINTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT StopTrainTaskRequest : public RpcServiceRequest { +public: + StopTrainTaskRequest(); + ~StopTrainTaskRequest(); + long getId() const; + void setId(long id); + +private: + long id_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_STOPTRAINTASKREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/StopTrainTaskResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/StopTrainTaskResult.h new file mode 100644 index 000000000..2267da40c --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/StopTrainTaskResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_STOPTRAINTASKRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_STOPTRAINTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT StopTrainTaskResult : public ServiceResult + { + public: + struct Data + { + long gmtCreate; + std::string trainStatus; + std::string description; + std::string taskName; + std::string datasetName; + std::string labelName; + std::string modelEffect; + long id; + long labelId; + std::string trainMode; + long modelId; + long datasetId; + }; + + + StopTrainTaskResult(); + explicit StopTrainTaskResult(const std::string &payload); + ~StopTrainTaskResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_STOPTRAINTASKRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateDatasetRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateDatasetRequest.h new file mode 100644 index 000000000..6f5800831 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateDatasetRequest.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_VIAPI_REGEN_MODEL_UPDATEDATASETREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATEDATASETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT UpdateDatasetRequest : public RpcServiceRequest { +public: + UpdateDatasetRequest(); + ~UpdateDatasetRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + long getId() const; + void setId(long id); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string description_; + long id_; + std::string name_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATEDATASETREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateDatasetResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateDatasetResult.h new file mode 100644 index 000000000..20cc043ee --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateDatasetResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATEDATASETRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATEDATASETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT UpdateDatasetResult : public ServiceResult + { + public: + struct Data + { + long gmtCreate; + std::string description; + long id; + std::string name; + }; + + + UpdateDatasetResult(); + explicit UpdateDatasetResult(const std::string &payload); + ~UpdateDatasetResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATEDATASETRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateLabelsetRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateLabelsetRequest.h new file mode 100644 index 000000000..5cf88f553 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateLabelsetRequest.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_VIAPI_REGEN_MODEL_UPDATELABELSETREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATELABELSETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT UpdateLabelsetRequest : public RpcServiceRequest { +public: + UpdateLabelsetRequest(); + ~UpdateLabelsetRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + long getId() const; + void setId(long id); + std::string getTagUserList() const; + void setTagUserList(const std::string &tagUserList); + std::string getUserOssUrl() const; + void setUserOssUrl(const std::string &userOssUrl); + std::string getObjectKey() const; + void setObjectKey(const std::string &objectKey); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string description_; + long id_; + std::string tagUserList_; + std::string userOssUrl_; + std::string objectKey_; + std::string name_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATELABELSETREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateLabelsetResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateLabelsetResult.h new file mode 100644 index 000000000..8e3dc0c7b --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateLabelsetResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATELABELSETRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATELABELSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT UpdateLabelsetResult : public ServiceResult + { + public: + struct Data + { + long gmtCreate; + long description; + long id; + long name; + }; + + + UpdateLabelsetResult(); + explicit UpdateLabelsetResult(const std::string &payload); + ~UpdateLabelsetResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATELABELSETRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateServiceRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateServiceRequest.h new file mode 100644 index 000000000..1795e5dd2 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateServiceRequest.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_VIAPI_REGEN_MODEL_UPDATESERVICEREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATESERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT UpdateServiceRequest : public RpcServiceRequest { +public: + UpdateServiceRequest(); + ~UpdateServiceRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + long getId() const; + void setId(long id); + std::string getAuthorizationType() const; + void setAuthorizationType(const std::string &authorizationType); + std::string getName() const; + void setName(const std::string &name); + std::string getAuthorizedAccount() const; + void setAuthorizedAccount(const std::string &authorizedAccount); + +private: + std::string description_; + long id_; + std::string authorizationType_; + std::string name_; + std::string authorizedAccount_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATESERVICEREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateServiceResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateServiceResult.h new file mode 100644 index 000000000..00e1fd1c2 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateServiceResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATESERVICERESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATESERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT UpdateServiceResult : public ServiceResult + { + public: + struct Data + { + long gmtCreate; + std::string serviceName; + std::string serviceDescription; + std::string authorizedAccount; + long id; + std::string authorizationType; + }; + + + UpdateServiceResult(); + explicit UpdateServiceResult(const std::string &payload); + ~UpdateServiceResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATESERVICERESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateTrainTaskRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateTrainTaskRequest.h new file mode 100644 index 000000000..df45fbdd0 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateTrainTaskRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATETRAINTASKREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATETRAINTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT UpdateTrainTaskRequest : public RpcServiceRequest { +public: + UpdateTrainTaskRequest(); + ~UpdateTrainTaskRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getTrainMode() const; + void setTrainMode(const std::string &trainMode); + long getId() const; + void setId(long id); + long getPreTrainTaskId() const; + void setPreTrainTaskId(long preTrainTaskId); + bool getPreTrainTaskFlag() const; + void setPreTrainTaskFlag(bool preTrainTaskFlag); + std::string getAdvancedParameters() const; + void setAdvancedParameters(const std::string &advancedParameters); + long getLabelId() const; + void setLabelId(long labelId); + std::string getName() const; + void setName(const std::string &name); + long getDatasetId() const; + void setDatasetId(long datasetId); + +private: + std::string description_; + std::string trainMode_; + long id_; + long preTrainTaskId_; + bool preTrainTaskFlag_; + std::string advancedParameters_; + long labelId_; + std::string name_; + long datasetId_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATETRAINTASKREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateTrainTaskResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateTrainTaskResult.h new file mode 100644 index 000000000..182997717 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateTrainTaskResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATETRAINTASKRESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATETRAINTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT UpdateTrainTaskResult : public ServiceResult + { + public: + struct Data + { + std::string description; + std::string labelName; + long datasetId; + long gmtCreate; + std::string trainStatus; + std::string taskName; + std::string datasetName; + std::string modelEffect; + long id; + long labelId; + std::string trainMode; + std::string advancedParameters; + long modelId; + }; + + + UpdateTrainTaskResult(); + explicit UpdateTrainTaskResult(const std::string &payload); + ~UpdateTrainTaskResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATETRAINTASKRESULT_H_ \ No newline at end of file diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateWorkspaceRequest.h b/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateWorkspaceRequest.h new file mode 100644 index 000000000..d9d43e722 --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateWorkspaceRequest.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_VIAPI_REGEN_MODEL_UPDATEWORKSPACEREQUEST_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATEWORKSPACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Viapi_regen { +namespace Model { +class ALIBABACLOUD_VIAPI_REGEN_EXPORT UpdateWorkspaceRequest : public RpcServiceRequest { +public: + UpdateWorkspaceRequest(); + ~UpdateWorkspaceRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + long getId() const; + void setId(long id); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string description_; + long id_; + std::string name_; +}; +} // namespace Model +} // namespace Viapi_regen +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATEWORKSPACEREQUEST_H_ diff --git a/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateWorkspaceResult.h b/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateWorkspaceResult.h new file mode 100644 index 000000000..bd6adb57e --- /dev/null +++ b/viapi-regen/include/alibabacloud/viapi-regen/model/UpdateWorkspaceResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATEWORKSPACERESULT_H_ +#define ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATEWORKSPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Viapi_regen + { + namespace Model + { + class ALIBABACLOUD_VIAPI_REGEN_EXPORT UpdateWorkspaceResult : public ServiceResult + { + public: + struct Data + { + long gmtCreate; + std::string type; + std::string description; + long id; + std::string name; + }; + + + UpdateWorkspaceResult(); + explicit UpdateWorkspaceResult(const std::string &payload); + ~UpdateWorkspaceResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VIAPI_REGEN_MODEL_UPDATEWORKSPACERESULT_H_ \ No newline at end of file diff --git a/viapi-regen/src/Viapi-regenClient.cc b/viapi-regen/src/Viapi-regenClient.cc new file mode 100644 index 000000000..50c382b0f --- /dev/null +++ b/viapi-regen/src/Viapi-regenClient.cc @@ -0,0 +1,1853 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +namespace +{ + const std::string SERVICE_NAME = "viapi-regen"; +} + +Viapi_regenClient::Viapi_regenClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "selflearning"); +} + +Viapi_regenClient::Viapi_regenClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "selflearning"); +} + +Viapi_regenClient::Viapi_regenClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "selflearning"); +} + +Viapi_regenClient::~Viapi_regenClient() +{} + +Viapi_regenClient::CreateDatasetOutcome Viapi_regenClient::createDataset(const CreateDatasetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDatasetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDatasetOutcome(CreateDatasetResult(outcome.result())); + else + return CreateDatasetOutcome(outcome.error()); +} + +void Viapi_regenClient::createDatasetAsync(const CreateDatasetRequest& request, const CreateDatasetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDataset(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::CreateDatasetOutcomeCallable Viapi_regenClient::createDatasetCallable(const CreateDatasetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDataset(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::CreateLabelsetOutcome Viapi_regenClient::createLabelset(const CreateLabelsetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateLabelsetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateLabelsetOutcome(CreateLabelsetResult(outcome.result())); + else + return CreateLabelsetOutcome(outcome.error()); +} + +void Viapi_regenClient::createLabelsetAsync(const CreateLabelsetRequest& request, const CreateLabelsetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createLabelset(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::CreateLabelsetOutcomeCallable Viapi_regenClient::createLabelsetCallable(const CreateLabelsetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createLabelset(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::CreateServiceOutcome Viapi_regenClient::createService(const CreateServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateServiceOutcome(CreateServiceResult(outcome.result())); + else + return CreateServiceOutcome(outcome.error()); +} + +void Viapi_regenClient::createServiceAsync(const CreateServiceRequest& request, const CreateServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::CreateServiceOutcomeCallable Viapi_regenClient::createServiceCallable(const CreateServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::CreateTagTaskOutcome Viapi_regenClient::createTagTask(const CreateTagTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTagTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTagTaskOutcome(CreateTagTaskResult(outcome.result())); + else + return CreateTagTaskOutcome(outcome.error()); +} + +void Viapi_regenClient::createTagTaskAsync(const CreateTagTaskRequest& request, const CreateTagTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTagTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::CreateTagTaskOutcomeCallable Viapi_regenClient::createTagTaskCallable(const CreateTagTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTagTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::CreateTrainTaskOutcome Viapi_regenClient::createTrainTask(const CreateTrainTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTrainTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTrainTaskOutcome(CreateTrainTaskResult(outcome.result())); + else + return CreateTrainTaskOutcome(outcome.error()); +} + +void Viapi_regenClient::createTrainTaskAsync(const CreateTrainTaskRequest& request, const CreateTrainTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTrainTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::CreateTrainTaskOutcomeCallable Viapi_regenClient::createTrainTaskCallable(const CreateTrainTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTrainTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::CreateWorkspaceOutcome Viapi_regenClient::createWorkspace(const CreateWorkspaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateWorkspaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateWorkspaceOutcome(CreateWorkspaceResult(outcome.result())); + else + return CreateWorkspaceOutcome(outcome.error()); +} + +void Viapi_regenClient::createWorkspaceAsync(const CreateWorkspaceRequest& request, const CreateWorkspaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createWorkspace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::CreateWorkspaceOutcomeCallable Viapi_regenClient::createWorkspaceCallable(const CreateWorkspaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createWorkspace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::CustomizeClassifyImageOutcome Viapi_regenClient::customizeClassifyImage(const CustomizeClassifyImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CustomizeClassifyImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CustomizeClassifyImageOutcome(CustomizeClassifyImageResult(outcome.result())); + else + return CustomizeClassifyImageOutcome(outcome.error()); +} + +void Viapi_regenClient::customizeClassifyImageAsync(const CustomizeClassifyImageRequest& request, const CustomizeClassifyImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, customizeClassifyImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::CustomizeClassifyImageOutcomeCallable Viapi_regenClient::customizeClassifyImageCallable(const CustomizeClassifyImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->customizeClassifyImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::CustomizeDetectImageOutcome Viapi_regenClient::customizeDetectImage(const CustomizeDetectImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CustomizeDetectImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CustomizeDetectImageOutcome(CustomizeDetectImageResult(outcome.result())); + else + return CustomizeDetectImageOutcome(outcome.error()); +} + +void Viapi_regenClient::customizeDetectImageAsync(const CustomizeDetectImageRequest& request, const CustomizeDetectImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, customizeDetectImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::CustomizeDetectImageOutcomeCallable Viapi_regenClient::customizeDetectImageCallable(const CustomizeDetectImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->customizeDetectImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::CustomizeInstanceSegmentImageOutcome Viapi_regenClient::customizeInstanceSegmentImage(const CustomizeInstanceSegmentImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CustomizeInstanceSegmentImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CustomizeInstanceSegmentImageOutcome(CustomizeInstanceSegmentImageResult(outcome.result())); + else + return CustomizeInstanceSegmentImageOutcome(outcome.error()); +} + +void Viapi_regenClient::customizeInstanceSegmentImageAsync(const CustomizeInstanceSegmentImageRequest& request, const CustomizeInstanceSegmentImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, customizeInstanceSegmentImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::CustomizeInstanceSegmentImageOutcomeCallable Viapi_regenClient::customizeInstanceSegmentImageCallable(const CustomizeInstanceSegmentImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->customizeInstanceSegmentImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::DebugServiceOutcome Viapi_regenClient::debugService(const DebugServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DebugServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DebugServiceOutcome(DebugServiceResult(outcome.result())); + else + return DebugServiceOutcome(outcome.error()); +} + +void Viapi_regenClient::debugServiceAsync(const DebugServiceRequest& request, const DebugServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, debugService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::DebugServiceOutcomeCallable Viapi_regenClient::debugServiceCallable(const DebugServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->debugService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::DeleteDataReflowDataOutcome Viapi_regenClient::deleteDataReflowData(const DeleteDataReflowDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDataReflowDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDataReflowDataOutcome(DeleteDataReflowDataResult(outcome.result())); + else + return DeleteDataReflowDataOutcome(outcome.error()); +} + +void Viapi_regenClient::deleteDataReflowDataAsync(const DeleteDataReflowDataRequest& request, const DeleteDataReflowDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDataReflowData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::DeleteDataReflowDataOutcomeCallable Viapi_regenClient::deleteDataReflowDataCallable(const DeleteDataReflowDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDataReflowData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::DeleteDatasetOutcome Viapi_regenClient::deleteDataset(const DeleteDatasetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDatasetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDatasetOutcome(DeleteDatasetResult(outcome.result())); + else + return DeleteDatasetOutcome(outcome.error()); +} + +void Viapi_regenClient::deleteDatasetAsync(const DeleteDatasetRequest& request, const DeleteDatasetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDataset(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::DeleteDatasetOutcomeCallable Viapi_regenClient::deleteDatasetCallable(const DeleteDatasetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDataset(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::DeleteLabelsetOutcome Viapi_regenClient::deleteLabelset(const DeleteLabelsetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteLabelsetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteLabelsetOutcome(DeleteLabelsetResult(outcome.result())); + else + return DeleteLabelsetOutcome(outcome.error()); +} + +void Viapi_regenClient::deleteLabelsetAsync(const DeleteLabelsetRequest& request, const DeleteLabelsetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteLabelset(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::DeleteLabelsetOutcomeCallable Viapi_regenClient::deleteLabelsetCallable(const DeleteLabelsetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteLabelset(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::DeleteLabelsetDataOutcome Viapi_regenClient::deleteLabelsetData(const DeleteLabelsetDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteLabelsetDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteLabelsetDataOutcome(DeleteLabelsetDataResult(outcome.result())); + else + return DeleteLabelsetDataOutcome(outcome.error()); +} + +void Viapi_regenClient::deleteLabelsetDataAsync(const DeleteLabelsetDataRequest& request, const DeleteLabelsetDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteLabelsetData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::DeleteLabelsetDataOutcomeCallable Viapi_regenClient::deleteLabelsetDataCallable(const DeleteLabelsetDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteLabelsetData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::DeleteServiceOutcome Viapi_regenClient::deleteService(const DeleteServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteServiceOutcome(DeleteServiceResult(outcome.result())); + else + return DeleteServiceOutcome(outcome.error()); +} + +void Viapi_regenClient::deleteServiceAsync(const DeleteServiceRequest& request, const DeleteServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::DeleteServiceOutcomeCallable Viapi_regenClient::deleteServiceCallable(const DeleteServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::DeleteTrainTaskOutcome Viapi_regenClient::deleteTrainTask(const DeleteTrainTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTrainTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTrainTaskOutcome(DeleteTrainTaskResult(outcome.result())); + else + return DeleteTrainTaskOutcome(outcome.error()); +} + +void Viapi_regenClient::deleteTrainTaskAsync(const DeleteTrainTaskRequest& request, const DeleteTrainTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTrainTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::DeleteTrainTaskOutcomeCallable Viapi_regenClient::deleteTrainTaskCallable(const DeleteTrainTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTrainTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::DeleteWorkspaceOutcome Viapi_regenClient::deleteWorkspace(const DeleteWorkspaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteWorkspaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteWorkspaceOutcome(DeleteWorkspaceResult(outcome.result())); + else + return DeleteWorkspaceOutcome(outcome.error()); +} + +void Viapi_regenClient::deleteWorkspaceAsync(const DeleteWorkspaceRequest& request, const DeleteWorkspaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteWorkspace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::DeleteWorkspaceOutcomeCallable Viapi_regenClient::deleteWorkspaceCallable(const DeleteWorkspaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteWorkspace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::DisableDataReflowOutcome Viapi_regenClient::disableDataReflow(const DisableDataReflowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableDataReflowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableDataReflowOutcome(DisableDataReflowResult(outcome.result())); + else + return DisableDataReflowOutcome(outcome.error()); +} + +void Viapi_regenClient::disableDataReflowAsync(const DisableDataReflowRequest& request, const DisableDataReflowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableDataReflow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::DisableDataReflowOutcomeCallable Viapi_regenClient::disableDataReflowCallable(const DisableDataReflowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableDataReflow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::DownloadFileNameListOutcome Viapi_regenClient::downloadFileNameList(const DownloadFileNameListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DownloadFileNameListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DownloadFileNameListOutcome(DownloadFileNameListResult(outcome.result())); + else + return DownloadFileNameListOutcome(outcome.error()); +} + +void Viapi_regenClient::downloadFileNameListAsync(const DownloadFileNameListRequest& request, const DownloadFileNameListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, downloadFileNameList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::DownloadFileNameListOutcomeCallable Viapi_regenClient::downloadFileNameListCallable(const DownloadFileNameListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->downloadFileNameList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::DownloadLabelFileOutcome Viapi_regenClient::downloadLabelFile(const DownloadLabelFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DownloadLabelFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DownloadLabelFileOutcome(DownloadLabelFileResult(outcome.result())); + else + return DownloadLabelFileOutcome(outcome.error()); +} + +void Viapi_regenClient::downloadLabelFileAsync(const DownloadLabelFileRequest& request, const DownloadLabelFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, downloadLabelFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::DownloadLabelFileOutcomeCallable Viapi_regenClient::downloadLabelFileCallable(const DownloadLabelFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->downloadLabelFile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::EnableDataReflowOutcome Viapi_regenClient::enableDataReflow(const EnableDataReflowRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableDataReflowOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableDataReflowOutcome(EnableDataReflowResult(outcome.result())); + else + return EnableDataReflowOutcome(outcome.error()); +} + +void Viapi_regenClient::enableDataReflowAsync(const EnableDataReflowRequest& request, const EnableDataReflowAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableDataReflow(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::EnableDataReflowOutcomeCallable Viapi_regenClient::enableDataReflowCallable(const EnableDataReflowRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableDataReflow(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::ExportDataReflowDataListOutcome Viapi_regenClient::exportDataReflowDataList(const ExportDataReflowDataListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExportDataReflowDataListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExportDataReflowDataListOutcome(ExportDataReflowDataListResult(outcome.result())); + else + return ExportDataReflowDataListOutcome(outcome.error()); +} + +void Viapi_regenClient::exportDataReflowDataListAsync(const ExportDataReflowDataListRequest& request, const ExportDataReflowDataListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, exportDataReflowDataList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::ExportDataReflowDataListOutcomeCallable Viapi_regenClient::exportDataReflowDataListCallable(const ExportDataReflowDataListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->exportDataReflowDataList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::GetDatasetOutcome Viapi_regenClient::getDataset(const GetDatasetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDatasetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDatasetOutcome(GetDatasetResult(outcome.result())); + else + return GetDatasetOutcome(outcome.error()); +} + +void Viapi_regenClient::getDatasetAsync(const GetDatasetRequest& request, const GetDatasetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDataset(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::GetDatasetOutcomeCallable Viapi_regenClient::getDatasetCallable(const GetDatasetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDataset(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::GetDiffCountLabelsetAndDatasetOutcome Viapi_regenClient::getDiffCountLabelsetAndDataset(const GetDiffCountLabelsetAndDatasetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDiffCountLabelsetAndDatasetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDiffCountLabelsetAndDatasetOutcome(GetDiffCountLabelsetAndDatasetResult(outcome.result())); + else + return GetDiffCountLabelsetAndDatasetOutcome(outcome.error()); +} + +void Viapi_regenClient::getDiffCountLabelsetAndDatasetAsync(const GetDiffCountLabelsetAndDatasetRequest& request, const GetDiffCountLabelsetAndDatasetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDiffCountLabelsetAndDataset(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::GetDiffCountLabelsetAndDatasetOutcomeCallable Viapi_regenClient::getDiffCountLabelsetAndDatasetCallable(const GetDiffCountLabelsetAndDatasetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDiffCountLabelsetAndDataset(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::GetLabelDetailOutcome Viapi_regenClient::getLabelDetail(const GetLabelDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetLabelDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetLabelDetailOutcome(GetLabelDetailResult(outcome.result())); + else + return GetLabelDetailOutcome(outcome.error()); +} + +void Viapi_regenClient::getLabelDetailAsync(const GetLabelDetailRequest& request, const GetLabelDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getLabelDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::GetLabelDetailOutcomeCallable Viapi_regenClient::getLabelDetailCallable(const GetLabelDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getLabelDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::GetLabelsetOutcome Viapi_regenClient::getLabelset(const GetLabelsetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetLabelsetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetLabelsetOutcome(GetLabelsetResult(outcome.result())); + else + return GetLabelsetOutcome(outcome.error()); +} + +void Viapi_regenClient::getLabelsetAsync(const GetLabelsetRequest& request, const GetLabelsetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getLabelset(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::GetLabelsetOutcomeCallable Viapi_regenClient::getLabelsetCallable(const GetLabelsetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getLabelset(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::GetServiceOutcome Viapi_regenClient::getService(const GetServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetServiceOutcome(GetServiceResult(outcome.result())); + else + return GetServiceOutcome(outcome.error()); +} + +void Viapi_regenClient::getServiceAsync(const GetServiceRequest& request, const GetServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::GetServiceOutcomeCallable Viapi_regenClient::getServiceCallable(const GetServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::GetTrainModelOutcome Viapi_regenClient::getTrainModel(const GetTrainModelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTrainModelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTrainModelOutcome(GetTrainModelResult(outcome.result())); + else + return GetTrainModelOutcome(outcome.error()); +} + +void Viapi_regenClient::getTrainModelAsync(const GetTrainModelRequest& request, const GetTrainModelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTrainModel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::GetTrainModelOutcomeCallable Viapi_regenClient::getTrainModelCallable(const GetTrainModelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTrainModel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::GetTrainTaskOutcome Viapi_regenClient::getTrainTask(const GetTrainTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTrainTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTrainTaskOutcome(GetTrainTaskResult(outcome.result())); + else + return GetTrainTaskOutcome(outcome.error()); +} + +void Viapi_regenClient::getTrainTaskAsync(const GetTrainTaskRequest& request, const GetTrainTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTrainTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::GetTrainTaskOutcomeCallable Viapi_regenClient::getTrainTaskCallable(const GetTrainTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTrainTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::GetTrainTaskEstimatedTimeOutcome Viapi_regenClient::getTrainTaskEstimatedTime(const GetTrainTaskEstimatedTimeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTrainTaskEstimatedTimeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTrainTaskEstimatedTimeOutcome(GetTrainTaskEstimatedTimeResult(outcome.result())); + else + return GetTrainTaskEstimatedTimeOutcome(outcome.error()); +} + +void Viapi_regenClient::getTrainTaskEstimatedTimeAsync(const GetTrainTaskEstimatedTimeRequest& request, const GetTrainTaskEstimatedTimeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTrainTaskEstimatedTime(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::GetTrainTaskEstimatedTimeOutcomeCallable Viapi_regenClient::getTrainTaskEstimatedTimeCallable(const GetTrainTaskEstimatedTimeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTrainTaskEstimatedTime(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::GetUploadPolicyOutcome Viapi_regenClient::getUploadPolicy(const GetUploadPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetUploadPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetUploadPolicyOutcome(GetUploadPolicyResult(outcome.result())); + else + return GetUploadPolicyOutcome(outcome.error()); +} + +void Viapi_regenClient::getUploadPolicyAsync(const GetUploadPolicyRequest& request, const GetUploadPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getUploadPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::GetUploadPolicyOutcomeCallable Viapi_regenClient::getUploadPolicyCallable(const GetUploadPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getUploadPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::GetWorkspaceOutcome Viapi_regenClient::getWorkspace(const GetWorkspaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetWorkspaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetWorkspaceOutcome(GetWorkspaceResult(outcome.result())); + else + return GetWorkspaceOutcome(outcome.error()); +} + +void Viapi_regenClient::getWorkspaceAsync(const GetWorkspaceRequest& request, const GetWorkspaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getWorkspace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::GetWorkspaceOutcomeCallable Viapi_regenClient::getWorkspaceCallable(const GetWorkspaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getWorkspace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::ListDataReflowDatasOutcome Viapi_regenClient::listDataReflowDatas(const ListDataReflowDatasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDataReflowDatasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDataReflowDatasOutcome(ListDataReflowDatasResult(outcome.result())); + else + return ListDataReflowDatasOutcome(outcome.error()); +} + +void Viapi_regenClient::listDataReflowDatasAsync(const ListDataReflowDatasRequest& request, const ListDataReflowDatasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDataReflowDatas(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::ListDataReflowDatasOutcomeCallable Viapi_regenClient::listDataReflowDatasCallable(const ListDataReflowDatasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDataReflowDatas(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::ListDatasetDatasOutcome Viapi_regenClient::listDatasetDatas(const ListDatasetDatasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDatasetDatasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDatasetDatasOutcome(ListDatasetDatasResult(outcome.result())); + else + return ListDatasetDatasOutcome(outcome.error()); +} + +void Viapi_regenClient::listDatasetDatasAsync(const ListDatasetDatasRequest& request, const ListDatasetDatasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDatasetDatas(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::ListDatasetDatasOutcomeCallable Viapi_regenClient::listDatasetDatasCallable(const ListDatasetDatasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDatasetDatas(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::ListDatasetsOutcome Viapi_regenClient::listDatasets(const ListDatasetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDatasetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDatasetsOutcome(ListDatasetsResult(outcome.result())); + else + return ListDatasetsOutcome(outcome.error()); +} + +void Viapi_regenClient::listDatasetsAsync(const ListDatasetsRequest& request, const ListDatasetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDatasets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::ListDatasetsOutcomeCallable Viapi_regenClient::listDatasetsCallable(const ListDatasetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDatasets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::ListLabelsetDatasOutcome Viapi_regenClient::listLabelsetDatas(const ListLabelsetDatasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListLabelsetDatasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListLabelsetDatasOutcome(ListLabelsetDatasResult(outcome.result())); + else + return ListLabelsetDatasOutcome(outcome.error()); +} + +void Viapi_regenClient::listLabelsetDatasAsync(const ListLabelsetDatasRequest& request, const ListLabelsetDatasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listLabelsetDatas(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::ListLabelsetDatasOutcomeCallable Viapi_regenClient::listLabelsetDatasCallable(const ListLabelsetDatasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listLabelsetDatas(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::ListLabelsetsOutcome Viapi_regenClient::listLabelsets(const ListLabelsetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListLabelsetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListLabelsetsOutcome(ListLabelsetsResult(outcome.result())); + else + return ListLabelsetsOutcome(outcome.error()); +} + +void Viapi_regenClient::listLabelsetsAsync(const ListLabelsetsRequest& request, const ListLabelsetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listLabelsets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::ListLabelsetsOutcomeCallable Viapi_regenClient::listLabelsetsCallable(const ListLabelsetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listLabelsets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::ListServicesOutcome Viapi_regenClient::listServices(const ListServicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListServicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListServicesOutcome(ListServicesResult(outcome.result())); + else + return ListServicesOutcome(outcome.error()); +} + +void Viapi_regenClient::listServicesAsync(const ListServicesRequest& request, const ListServicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listServices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::ListServicesOutcomeCallable Viapi_regenClient::listServicesCallable(const ListServicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listServices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::ListTrainTasksOutcome Viapi_regenClient::listTrainTasks(const ListTrainTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTrainTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTrainTasksOutcome(ListTrainTasksResult(outcome.result())); + else + return ListTrainTasksOutcome(outcome.error()); +} + +void Viapi_regenClient::listTrainTasksAsync(const ListTrainTasksRequest& request, const ListTrainTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTrainTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::ListTrainTasksOutcomeCallable Viapi_regenClient::listTrainTasksCallable(const ListTrainTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTrainTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::ListWorkspacesOutcome Viapi_regenClient::listWorkspaces(const ListWorkspacesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListWorkspacesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListWorkspacesOutcome(ListWorkspacesResult(outcome.result())); + else + return ListWorkspacesOutcome(outcome.error()); +} + +void Viapi_regenClient::listWorkspacesAsync(const ListWorkspacesRequest& request, const ListWorkspacesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listWorkspaces(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::ListWorkspacesOutcomeCallable Viapi_regenClient::listWorkspacesCallable(const ListWorkspacesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listWorkspaces(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::SetDatasetUserOssPathOutcome Viapi_regenClient::setDatasetUserOssPath(const SetDatasetUserOssPathRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetDatasetUserOssPathOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetDatasetUserOssPathOutcome(SetDatasetUserOssPathResult(outcome.result())); + else + return SetDatasetUserOssPathOutcome(outcome.error()); +} + +void Viapi_regenClient::setDatasetUserOssPathAsync(const SetDatasetUserOssPathRequest& request, const SetDatasetUserOssPathAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setDatasetUserOssPath(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::SetDatasetUserOssPathOutcomeCallable Viapi_regenClient::setDatasetUserOssPathCallable(const SetDatasetUserOssPathRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setDatasetUserOssPath(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::StartServiceOutcome Viapi_regenClient::startService(const StartServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartServiceOutcome(StartServiceResult(outcome.result())); + else + return StartServiceOutcome(outcome.error()); +} + +void Viapi_regenClient::startServiceAsync(const StartServiceRequest& request, const StartServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::StartServiceOutcomeCallable Viapi_regenClient::startServiceCallable(const StartServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::StartTrainTaskOutcome Viapi_regenClient::startTrainTask(const StartTrainTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartTrainTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartTrainTaskOutcome(StartTrainTaskResult(outcome.result())); + else + return StartTrainTaskOutcome(outcome.error()); +} + +void Viapi_regenClient::startTrainTaskAsync(const StartTrainTaskRequest& request, const StartTrainTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startTrainTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::StartTrainTaskOutcomeCallable Viapi_regenClient::startTrainTaskCallable(const StartTrainTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startTrainTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::StopServiceOutcome Viapi_regenClient::stopService(const StopServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopServiceOutcome(StopServiceResult(outcome.result())); + else + return StopServiceOutcome(outcome.error()); +} + +void Viapi_regenClient::stopServiceAsync(const StopServiceRequest& request, const StopServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::StopServiceOutcomeCallable Viapi_regenClient::stopServiceCallable(const StopServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::StopTrainTaskOutcome Viapi_regenClient::stopTrainTask(const StopTrainTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopTrainTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopTrainTaskOutcome(StopTrainTaskResult(outcome.result())); + else + return StopTrainTaskOutcome(outcome.error()); +} + +void Viapi_regenClient::stopTrainTaskAsync(const StopTrainTaskRequest& request, const StopTrainTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopTrainTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::StopTrainTaskOutcomeCallable Viapi_regenClient::stopTrainTaskCallable(const StopTrainTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopTrainTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::UpdateDatasetOutcome Viapi_regenClient::updateDataset(const UpdateDatasetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDatasetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDatasetOutcome(UpdateDatasetResult(outcome.result())); + else + return UpdateDatasetOutcome(outcome.error()); +} + +void Viapi_regenClient::updateDatasetAsync(const UpdateDatasetRequest& request, const UpdateDatasetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDataset(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::UpdateDatasetOutcomeCallable Viapi_regenClient::updateDatasetCallable(const UpdateDatasetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDataset(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::UpdateLabelsetOutcome Viapi_regenClient::updateLabelset(const UpdateLabelsetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateLabelsetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateLabelsetOutcome(UpdateLabelsetResult(outcome.result())); + else + return UpdateLabelsetOutcome(outcome.error()); +} + +void Viapi_regenClient::updateLabelsetAsync(const UpdateLabelsetRequest& request, const UpdateLabelsetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateLabelset(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::UpdateLabelsetOutcomeCallable Viapi_regenClient::updateLabelsetCallable(const UpdateLabelsetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateLabelset(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::UpdateServiceOutcome Viapi_regenClient::updateService(const UpdateServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateServiceOutcome(UpdateServiceResult(outcome.result())); + else + return UpdateServiceOutcome(outcome.error()); +} + +void Viapi_regenClient::updateServiceAsync(const UpdateServiceRequest& request, const UpdateServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::UpdateServiceOutcomeCallable Viapi_regenClient::updateServiceCallable(const UpdateServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::UpdateTrainTaskOutcome Viapi_regenClient::updateTrainTask(const UpdateTrainTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateTrainTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateTrainTaskOutcome(UpdateTrainTaskResult(outcome.result())); + else + return UpdateTrainTaskOutcome(outcome.error()); +} + +void Viapi_regenClient::updateTrainTaskAsync(const UpdateTrainTaskRequest& request, const UpdateTrainTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateTrainTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::UpdateTrainTaskOutcomeCallable Viapi_regenClient::updateTrainTaskCallable(const UpdateTrainTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateTrainTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Viapi_regenClient::UpdateWorkspaceOutcome Viapi_regenClient::updateWorkspace(const UpdateWorkspaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateWorkspaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateWorkspaceOutcome(UpdateWorkspaceResult(outcome.result())); + else + return UpdateWorkspaceOutcome(outcome.error()); +} + +void Viapi_regenClient::updateWorkspaceAsync(const UpdateWorkspaceRequest& request, const UpdateWorkspaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateWorkspace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Viapi_regenClient::UpdateWorkspaceOutcomeCallable Viapi_regenClient::updateWorkspaceCallable(const UpdateWorkspaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateWorkspace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/viapi-regen/src/model/CreateDatasetRequest.cc b/viapi-regen/src/model/CreateDatasetRequest.cc new file mode 100644 index 000000000..07a7b0193 --- /dev/null +++ b/viapi-regen/src/model/CreateDatasetRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::CreateDatasetRequest; + +CreateDatasetRequest::CreateDatasetRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "CreateDataset") { + setMethod(HttpRequest::Method::Post); +} + +CreateDatasetRequest::~CreateDatasetRequest() {} + +std::string CreateDatasetRequest::getDescription() const { + return description_; +} + +void CreateDatasetRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string CreateDatasetRequest::getType() const { + return type_; +} + +void CreateDatasetRequest::setType(const std::string &type) { + type_ = type; + setBodyParameter(std::string("Type"), type); +} + +std::string CreateDatasetRequest::getName() const { + return name_; +} + +void CreateDatasetRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); +} + +long CreateDatasetRequest::getWorkspaceId() const { + return workspaceId_; +} + +void CreateDatasetRequest::setWorkspaceId(long workspaceId) { + workspaceId_ = workspaceId; + setBodyParameter(std::string("WorkspaceId"), std::to_string(workspaceId)); +} + diff --git a/viapi-regen/src/model/CreateDatasetResult.cc b/viapi-regen/src/model/CreateDatasetResult.cc new file mode 100644 index 000000000..762446a1f --- /dev/null +++ b/viapi-regen/src/model/CreateDatasetResult.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::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +CreateDatasetResult::CreateDatasetResult() : + ServiceResult() +{} + +CreateDatasetResult::CreateDatasetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDatasetResult::~CreateDatasetResult() +{} + +void CreateDatasetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string CreateDatasetResult::getMessage()const +{ + return message_; +} + +CreateDatasetResult::Data CreateDatasetResult::getData()const +{ + return data_; +} + +std::string CreateDatasetResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/CreateLabelsetRequest.cc b/viapi-regen/src/model/CreateLabelsetRequest.cc new file mode 100644 index 000000000..3db1f0612 --- /dev/null +++ b/viapi-regen/src/model/CreateLabelsetRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::CreateLabelsetRequest; + +CreateLabelsetRequest::CreateLabelsetRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "CreateLabelset") { + setMethod(HttpRequest::Method::Post); +} + +CreateLabelsetRequest::~CreateLabelsetRequest() {} + +std::string CreateLabelsetRequest::getDescription() const { + return description_; +} + +void CreateLabelsetRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string CreateLabelsetRequest::getType() const { + return type_; +} + +void CreateLabelsetRequest::setType(const std::string &type) { + type_ = type; + setBodyParameter(std::string("Type"), type); +} + +long CreateLabelsetRequest::getPreLabelId() const { + return preLabelId_; +} + +void CreateLabelsetRequest::setPreLabelId(long preLabelId) { + preLabelId_ = preLabelId; + setBodyParameter(std::string("PreLabelId"), std::to_string(preLabelId)); +} + +std::string CreateLabelsetRequest::getTagUserList() const { + return tagUserList_; +} + +void CreateLabelsetRequest::setTagUserList(const std::string &tagUserList) { + tagUserList_ = tagUserList; + setBodyParameter(std::string("TagUserList"), tagUserList); +} + +std::string CreateLabelsetRequest::getUserOssUrl() const { + return userOssUrl_; +} + +void CreateLabelsetRequest::setUserOssUrl(const std::string &userOssUrl) { + userOssUrl_ = userOssUrl; + setBodyParameter(std::string("UserOssUrl"), userOssUrl); +} + +std::string CreateLabelsetRequest::getObjectKey() const { + return objectKey_; +} + +void CreateLabelsetRequest::setObjectKey(const std::string &objectKey) { + objectKey_ = objectKey; + setBodyParameter(std::string("ObjectKey"), objectKey); +} + +std::string CreateLabelsetRequest::getName() const { + return name_; +} + +void CreateLabelsetRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); +} + +long CreateLabelsetRequest::getDatasetId() const { + return datasetId_; +} + +void CreateLabelsetRequest::setDatasetId(long datasetId) { + datasetId_ = datasetId; + setBodyParameter(std::string("DatasetId"), std::to_string(datasetId)); +} + +std::string CreateLabelsetRequest::getTagSettings() const { + return tagSettings_; +} + +void CreateLabelsetRequest::setTagSettings(const std::string &tagSettings) { + tagSettings_ = tagSettings; + setBodyParameter(std::string("TagSettings"), tagSettings); +} + diff --git a/viapi-regen/src/model/CreateLabelsetResult.cc b/viapi-regen/src/model/CreateLabelsetResult.cc new file mode 100644 index 000000000..60a1a41db --- /dev/null +++ b/viapi-regen/src/model/CreateLabelsetResult.cc @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +CreateLabelsetResult::CreateLabelsetResult() : + ServiceResult() +{} + +CreateLabelsetResult::CreateLabelsetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateLabelsetResult::~CreateLabelsetResult() +{} + +void CreateLabelsetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["LabelType"].isNull()) + data_.labelType = dataNode["LabelType"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string CreateLabelsetResult::getMessage()const +{ + return message_; +} + +CreateLabelsetResult::Data CreateLabelsetResult::getData()const +{ + return data_; +} + +std::string CreateLabelsetResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/CreateServiceRequest.cc b/viapi-regen/src/model/CreateServiceRequest.cc new file mode 100644 index 000000000..77fb250d4 --- /dev/null +++ b/viapi-regen/src/model/CreateServiceRequest.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 + +using AlibabaCloud::Viapi_regen::Model::CreateServiceRequest; + +CreateServiceRequest::CreateServiceRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "CreateService") { + setMethod(HttpRequest::Method::Post); +} + +CreateServiceRequest::~CreateServiceRequest() {} + +std::string CreateServiceRequest::getDescription() const { + return description_; +} + +void CreateServiceRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +long CreateServiceRequest::getTrainTaskId() const { + return trainTaskId_; +} + +void CreateServiceRequest::setTrainTaskId(long trainTaskId) { + trainTaskId_ = trainTaskId; + setBodyParameter(std::string("TrainTaskId"), std::to_string(trainTaskId)); +} + +std::string CreateServiceRequest::getAuthorizationType() const { + return authorizationType_; +} + +void CreateServiceRequest::setAuthorizationType(const std::string &authorizationType) { + authorizationType_ = authorizationType; + setBodyParameter(std::string("AuthorizationType"), authorizationType); +} + +std::string CreateServiceRequest::getName() const { + return name_; +} + +void CreateServiceRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); +} + +std::string CreateServiceRequest::getAuthorizedAccount() const { + return authorizedAccount_; +} + +void CreateServiceRequest::setAuthorizedAccount(const std::string &authorizedAccount) { + authorizedAccount_ = authorizedAccount; + setBodyParameter(std::string("AuthorizedAccount"), authorizedAccount); +} + diff --git a/viapi-regen/src/model/CreateServiceResult.cc b/viapi-regen/src/model/CreateServiceResult.cc new file mode 100644 index 000000000..56ec1da6b --- /dev/null +++ b/viapi-regen/src/model/CreateServiceResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +CreateServiceResult::CreateServiceResult() : + ServiceResult() +{} + +CreateServiceResult::CreateServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateServiceResult::~CreateServiceResult() +{} + +void CreateServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["ServiceName"].isNull()) + data_.serviceName = dataNode["ServiceName"].asString(); + if(!dataNode["ServiceDescription"].isNull()) + data_.serviceDescription = dataNode["ServiceDescription"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!dataNode["AuthorizationType"].isNull()) + data_.authorizationType = dataNode["AuthorizationType"].asString(); + if(!dataNode["AuthorizedAccount"].isNull()) + data_.authorizedAccount = dataNode["AuthorizedAccount"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string CreateServiceResult::getMessage()const +{ + return message_; +} + +CreateServiceResult::Data CreateServiceResult::getData()const +{ + return data_; +} + +std::string CreateServiceResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/CreateTagTaskRequest.cc b/viapi-regen/src/model/CreateTagTaskRequest.cc new file mode 100644 index 000000000..4c9126601 --- /dev/null +++ b/viapi-regen/src/model/CreateTagTaskRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::CreateTagTaskRequest; + +CreateTagTaskRequest::CreateTagTaskRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "CreateTagTask") { + setMethod(HttpRequest::Method::Post); +} + +CreateTagTaskRequest::~CreateTagTaskRequest() {} + +long CreateTagTaskRequest::getLabelsetId() const { + return labelsetId_; +} + +void CreateTagTaskRequest::setLabelsetId(long labelsetId) { + labelsetId_ = labelsetId; + setBodyParameter(std::string("LabelsetId"), std::to_string(labelsetId)); +} + diff --git a/viapi-regen/src/model/CreateTagTaskResult.cc b/viapi-regen/src/model/CreateTagTaskResult.cc new file mode 100644 index 000000000..c0354b0d9 --- /dev/null +++ b/viapi-regen/src/model/CreateTagTaskResult.cc @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +CreateTagTaskResult::CreateTagTaskResult() : + ServiceResult() +{} + +CreateTagTaskResult::CreateTagTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTagTaskResult::~CreateTagTaskResult() +{} + +void CreateTagTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["LabelType"].isNull()) + data_.labelType = dataNode["LabelType"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string CreateTagTaskResult::getMessage()const +{ + return message_; +} + +CreateTagTaskResult::Data CreateTagTaskResult::getData()const +{ + return data_; +} + +std::string CreateTagTaskResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/CreateTrainTaskRequest.cc b/viapi-regen/src/model/CreateTrainTaskRequest.cc new file mode 100644 index 000000000..793d90456 --- /dev/null +++ b/viapi-regen/src/model/CreateTrainTaskRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::CreateTrainTaskRequest; + +CreateTrainTaskRequest::CreateTrainTaskRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "CreateTrainTask") { + setMethod(HttpRequest::Method::Post); +} + +CreateTrainTaskRequest::~CreateTrainTaskRequest() {} + +std::string CreateTrainTaskRequest::getDescription() const { + return description_; +} + +void CreateTrainTaskRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string CreateTrainTaskRequest::getTrainMode() const { + return trainMode_; +} + +void CreateTrainTaskRequest::setTrainMode(const std::string &trainMode) { + trainMode_ = trainMode; + setBodyParameter(std::string("TrainMode"), trainMode); +} + +long CreateTrainTaskRequest::getPreTrainTaskId() const { + return preTrainTaskId_; +} + +void CreateTrainTaskRequest::setPreTrainTaskId(long preTrainTaskId) { + preTrainTaskId_ = preTrainTaskId; + setBodyParameter(std::string("PreTrainTaskId"), std::to_string(preTrainTaskId)); +} + +std::string CreateTrainTaskRequest::getAdvancedParameters() const { + return advancedParameters_; +} + +void CreateTrainTaskRequest::setAdvancedParameters(const std::string &advancedParameters) { + advancedParameters_ = advancedParameters; + setBodyParameter(std::string("AdvancedParameters"), advancedParameters); +} + +long CreateTrainTaskRequest::getLabelId() const { + return labelId_; +} + +void CreateTrainTaskRequest::setLabelId(long labelId) { + labelId_ = labelId; + setBodyParameter(std::string("LabelId"), std::to_string(labelId)); +} + +std::string CreateTrainTaskRequest::getName() const { + return name_; +} + +void CreateTrainTaskRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); +} + +long CreateTrainTaskRequest::getDatasetId() const { + return datasetId_; +} + +void CreateTrainTaskRequest::setDatasetId(long datasetId) { + datasetId_ = datasetId; + setBodyParameter(std::string("DatasetId"), std::to_string(datasetId)); +} + +long CreateTrainTaskRequest::getWorkspaceId() const { + return workspaceId_; +} + +void CreateTrainTaskRequest::setWorkspaceId(long workspaceId) { + workspaceId_ = workspaceId; + setBodyParameter(std::string("WorkspaceId"), std::to_string(workspaceId)); +} + diff --git a/viapi-regen/src/model/CreateTrainTaskResult.cc b/viapi-regen/src/model/CreateTrainTaskResult.cc new file mode 100644 index 000000000..9c59bd061 --- /dev/null +++ b/viapi-regen/src/model/CreateTrainTaskResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +CreateTrainTaskResult::CreateTrainTaskResult() : + ServiceResult() +{} + +CreateTrainTaskResult::CreateTrainTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTrainTaskResult::~CreateTrainTaskResult() +{} + +void CreateTrainTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["TaskName"].isNull()) + data_.taskName = dataNode["TaskName"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["DatasetId"].isNull()) + data_.datasetId = std::stol(dataNode["DatasetId"].asString()); + if(!dataNode["DatasetName"].isNull()) + data_.datasetName = dataNode["DatasetName"].asString(); + if(!dataNode["LabelId"].isNull()) + data_.labelId = std::stol(dataNode["LabelId"].asString()); + if(!dataNode["LabelName"].isNull()) + data_.labelName = dataNode["LabelName"].asString(); + if(!dataNode["TrainMode"].isNull()) + data_.trainMode = dataNode["TrainMode"].asString(); + if(!dataNode["RelyOnTaskId"].isNull()) + data_.relyOnTaskId = std::stol(dataNode["RelyOnTaskId"].asString()); + if(!dataNode["RelyOnTaskName"].isNull()) + data_.relyOnTaskName = dataNode["RelyOnTaskName"].asString(); + if(!dataNode["AdvancedParameters"].isNull()) + data_.advancedParameters = dataNode["AdvancedParameters"].asString(); + if(!dataNode["TrainStatus"].isNull()) + data_.trainStatus = dataNode["TrainStatus"].asString(); + if(!dataNode["ModelId"].isNull()) + data_.modelId = std::stol(dataNode["ModelId"].asString()); + if(!dataNode["ModelEffect"].isNull()) + data_.modelEffect = dataNode["ModelEffect"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string CreateTrainTaskResult::getMessage()const +{ + return message_; +} + +CreateTrainTaskResult::Data CreateTrainTaskResult::getData()const +{ + return data_; +} + +std::string CreateTrainTaskResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/CreateWorkspaceRequest.cc b/viapi-regen/src/model/CreateWorkspaceRequest.cc new file mode 100644 index 000000000..864366a13 --- /dev/null +++ b/viapi-regen/src/model/CreateWorkspaceRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::CreateWorkspaceRequest; + +CreateWorkspaceRequest::CreateWorkspaceRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "CreateWorkspace") { + setMethod(HttpRequest::Method::Post); +} + +CreateWorkspaceRequest::~CreateWorkspaceRequest() {} + +std::string CreateWorkspaceRequest::getDescription() const { + return description_; +} + +void CreateWorkspaceRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string CreateWorkspaceRequest::getType() const { + return type_; +} + +void CreateWorkspaceRequest::setType(const std::string &type) { + type_ = type; + setBodyParameter(std::string("Type"), type); +} + +std::string CreateWorkspaceRequest::getName() const { + return name_; +} + +void CreateWorkspaceRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); +} + diff --git a/viapi-regen/src/model/CreateWorkspaceResult.cc b/viapi-regen/src/model/CreateWorkspaceResult.cc new file mode 100644 index 000000000..36a35badf --- /dev/null +++ b/viapi-regen/src/model/CreateWorkspaceResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +CreateWorkspaceResult::CreateWorkspaceResult() : + ServiceResult() +{} + +CreateWorkspaceResult::CreateWorkspaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateWorkspaceResult::~CreateWorkspaceResult() +{} + +void CreateWorkspaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["Type"].isNull()) + data_.type = dataNode["Type"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string CreateWorkspaceResult::getMessage()const +{ + return message_; +} + +CreateWorkspaceResult::Data CreateWorkspaceResult::getData()const +{ + return data_; +} + +std::string CreateWorkspaceResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/CustomizeClassifyImageRequest.cc b/viapi-regen/src/model/CustomizeClassifyImageRequest.cc new file mode 100644 index 000000000..eb6801a9d --- /dev/null +++ b/viapi-regen/src/model/CustomizeClassifyImageRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::CustomizeClassifyImageRequest; + +CustomizeClassifyImageRequest::CustomizeClassifyImageRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "CustomizeClassifyImage") { + setMethod(HttpRequest::Method::Post); +} + +CustomizeClassifyImageRequest::~CustomizeClassifyImageRequest() {} + +std::string CustomizeClassifyImageRequest::getImageUrl() const { + return imageUrl_; +} + +void CustomizeClassifyImageRequest::setImageUrl(const std::string &imageUrl) { + imageUrl_ = imageUrl; + setBodyParameter(std::string("ImageUrl"), imageUrl); +} + +std::string CustomizeClassifyImageRequest::getServiceId() const { + return serviceId_; +} + +void CustomizeClassifyImageRequest::setServiceId(const std::string &serviceId) { + serviceId_ = serviceId; + setBodyParameter(std::string("ServiceId"), serviceId); +} + diff --git a/viapi-regen/src/model/CustomizeClassifyImageResult.cc b/viapi-regen/src/model/CustomizeClassifyImageResult.cc new file mode 100644 index 000000000..1af71b0c9 --- /dev/null +++ b/viapi-regen/src/model/CustomizeClassifyImageResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +CustomizeClassifyImageResult::CustomizeClassifyImageResult() : + ServiceResult() +{} + +CustomizeClassifyImageResult::CustomizeClassifyImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CustomizeClassifyImageResult::~CustomizeClassifyImageResult() +{} + +void CustomizeClassifyImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Category"].isNull()) + data_.category = dataNode["Category"].asString(); + if(!dataNode["Score"].isNull()) + data_.score = std::stof(dataNode["Score"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CustomizeClassifyImageResult::getMessage()const +{ + return message_; +} + +CustomizeClassifyImageResult::Data CustomizeClassifyImageResult::getData()const +{ + return data_; +} + +std::string CustomizeClassifyImageResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/CustomizeDetectImageRequest.cc b/viapi-regen/src/model/CustomizeDetectImageRequest.cc new file mode 100644 index 000000000..8fd8de33a --- /dev/null +++ b/viapi-regen/src/model/CustomizeDetectImageRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::CustomizeDetectImageRequest; + +CustomizeDetectImageRequest::CustomizeDetectImageRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "CustomizeDetectImage") { + setMethod(HttpRequest::Method::Post); +} + +CustomizeDetectImageRequest::~CustomizeDetectImageRequest() {} + +std::string CustomizeDetectImageRequest::getImageUrl() const { + return imageUrl_; +} + +void CustomizeDetectImageRequest::setImageUrl(const std::string &imageUrl) { + imageUrl_ = imageUrl; + setBodyParameter(std::string("ImageUrl"), imageUrl); +} + +std::string CustomizeDetectImageRequest::getServiceId() const { + return serviceId_; +} + +void CustomizeDetectImageRequest::setServiceId(const std::string &serviceId) { + serviceId_ = serviceId; + setBodyParameter(std::string("ServiceId"), serviceId); +} + diff --git a/viapi-regen/src/model/CustomizeDetectImageResult.cc b/viapi-regen/src/model/CustomizeDetectImageResult.cc new file mode 100644 index 000000000..b5fcf9842 --- /dev/null +++ b/viapi-regen/src/model/CustomizeDetectImageResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +CustomizeDetectImageResult::CustomizeDetectImageResult() : + ServiceResult() +{} + +CustomizeDetectImageResult::CustomizeDetectImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CustomizeDetectImageResult::~CustomizeDetectImageResult() +{} + +void CustomizeDetectImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allElementsNode = dataNode["Elements"]["elementsItem"]; + for (auto dataNodeElementselementsItem : allElementsNode) + { + Data::ElementsItem elementsItemObject; + if(!dataNodeElementselementsItem["Score"].isNull()) + elementsItemObject.score = std::stof(dataNodeElementselementsItem["Score"].asString()); + if(!dataNodeElementselementsItem["Category"].isNull()) + elementsItemObject.category = dataNodeElementselementsItem["Category"].asString(); + auto boxesNode = value["Boxes"]; + if(!boxesNode["X"].isNull()) + elementsItemObject.boxes.x = std::stof(boxesNode["X"].asString()); + if(!boxesNode["Y"].isNull()) + elementsItemObject.boxes.y = std::stof(boxesNode["Y"].asString()); + if(!boxesNode["Width"].isNull()) + elementsItemObject.boxes.width = std::stof(boxesNode["Width"].asString()); + if(!boxesNode["Height"].isNull()) + elementsItemObject.boxes.height = std::stof(boxesNode["Height"].asString()); + data_.elements.push_back(elementsItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CustomizeDetectImageResult::getMessage()const +{ + return message_; +} + +CustomizeDetectImageResult::Data CustomizeDetectImageResult::getData()const +{ + return data_; +} + +std::string CustomizeDetectImageResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/CustomizeInstanceSegmentImageRequest.cc b/viapi-regen/src/model/CustomizeInstanceSegmentImageRequest.cc new file mode 100644 index 000000000..7dfbc6a57 --- /dev/null +++ b/viapi-regen/src/model/CustomizeInstanceSegmentImageRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::CustomizeInstanceSegmentImageRequest; + +CustomizeInstanceSegmentImageRequest::CustomizeInstanceSegmentImageRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "CustomizeInstanceSegmentImage") { + setMethod(HttpRequest::Method::Post); +} + +CustomizeInstanceSegmentImageRequest::~CustomizeInstanceSegmentImageRequest() {} + +std::string CustomizeInstanceSegmentImageRequest::getImageUrl() const { + return imageUrl_; +} + +void CustomizeInstanceSegmentImageRequest::setImageUrl(const std::string &imageUrl) { + imageUrl_ = imageUrl; + setBodyParameter(std::string("ImageUrl"), imageUrl); +} + +std::string CustomizeInstanceSegmentImageRequest::getServiceId() const { + return serviceId_; +} + +void CustomizeInstanceSegmentImageRequest::setServiceId(const std::string &serviceId) { + serviceId_ = serviceId; + setBodyParameter(std::string("ServiceId"), serviceId); +} + diff --git a/viapi-regen/src/model/CustomizeInstanceSegmentImageResult.cc b/viapi-regen/src/model/CustomizeInstanceSegmentImageResult.cc new file mode 100644 index 000000000..a27c5c25d --- /dev/null +++ b/viapi-regen/src/model/CustomizeInstanceSegmentImageResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +CustomizeInstanceSegmentImageResult::CustomizeInstanceSegmentImageResult() : + ServiceResult() +{} + +CustomizeInstanceSegmentImageResult::CustomizeInstanceSegmentImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CustomizeInstanceSegmentImageResult::~CustomizeInstanceSegmentImageResult() +{} + +void CustomizeInstanceSegmentImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allElementsNode = dataNode["Elements"]["elementsItem"]; + for (auto dataNodeElementselementsItem : allElementsNode) + { + Data::ElementsItem elementsItemObject; + if(!dataNodeElementselementsItem["Score"].isNull()) + elementsItemObject.score = std::stof(dataNodeElementselementsItem["Score"].asString()); + if(!dataNodeElementselementsItem["Category"].isNull()) + elementsItemObject.category = dataNodeElementselementsItem["Category"].asString(); + auto allContoursNode = dataNodeElementselementsItem["Contours"]["contoursItem"]; + for (auto dataNodeElementselementsItemContourscontoursItem : allContoursNode) + { + Data::ElementsItem::ContoursItem contoursObject; + if(!dataNodeElementselementsItemContourscontoursItem["X"].isNull()) + contoursObject.x = std::stoi(dataNodeElementselementsItemContourscontoursItem["X"].asString()); + if(!dataNodeElementselementsItemContourscontoursItem["Y"].isNull()) + contoursObject.y = std::stoi(dataNodeElementselementsItemContourscontoursItem["Y"].asString()); + elementsItemObject.contours.push_back(contoursObject); + } + auto boxesNode = value["Boxes"]; + if(!boxesNode["X"].isNull()) + elementsItemObject.boxes.x = std::stoi(boxesNode["X"].asString()); + if(!boxesNode["Y"].isNull()) + elementsItemObject.boxes.y = std::stoi(boxesNode["Y"].asString()); + if(!boxesNode["Width"].isNull()) + elementsItemObject.boxes.width = std::stoi(boxesNode["Width"].asString()); + if(!boxesNode["Height"].isNull()) + elementsItemObject.boxes.height = std::stoi(boxesNode["Height"].asString()); + auto maskNode = value["Mask"]; + if(!maskNode["Counts"].isNull()) + elementsItemObject.mask.counts = maskNode["Counts"].asString(); + auto allSizes = maskNode["Sizes"]["sizes"]; + for (auto value : allSizes) + elementsItemObject.mask.sizes.push_back(value.asString()); + data_.elements.push_back(elementsItemObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CustomizeInstanceSegmentImageResult::getMessage()const +{ + return message_; +} + +CustomizeInstanceSegmentImageResult::Data CustomizeInstanceSegmentImageResult::getData()const +{ + return data_; +} + +std::string CustomizeInstanceSegmentImageResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/DebugServiceRequest.cc b/viapi-regen/src/model/DebugServiceRequest.cc new file mode 100644 index 000000000..ee3315e57 --- /dev/null +++ b/viapi-regen/src/model/DebugServiceRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::DebugServiceRequest; + +DebugServiceRequest::DebugServiceRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "DebugService") { + setMethod(HttpRequest::Method::Post); +} + +DebugServiceRequest::~DebugServiceRequest() {} + +std::string DebugServiceRequest::getParam() const { + return param_; +} + +void DebugServiceRequest::setParam(const std::string ¶m) { + param_ = param; + setBodyParameter(std::string("Param"), param); +} + +long DebugServiceRequest::getId() const { + return id_; +} + +void DebugServiceRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/viapi-regen/src/model/DebugServiceResult.cc b/viapi-regen/src/model/DebugServiceResult.cc new file mode 100644 index 000000000..e84ad2d91 --- /dev/null +++ b/viapi-regen/src/model/DebugServiceResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +DebugServiceResult::DebugServiceResult() : + ServiceResult() +{} + +DebugServiceResult::DebugServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DebugServiceResult::~DebugServiceResult() +{} + +void DebugServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string DebugServiceResult::getMessage()const +{ + return message_; +} + +std::string DebugServiceResult::getData()const +{ + return data_; +} + +std::string DebugServiceResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/DeleteDataReflowDataRequest.cc b/viapi-regen/src/model/DeleteDataReflowDataRequest.cc new file mode 100644 index 000000000..f2830e037 --- /dev/null +++ b/viapi-regen/src/model/DeleteDataReflowDataRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::DeleteDataReflowDataRequest; + +DeleteDataReflowDataRequest::DeleteDataReflowDataRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "DeleteDataReflowData") { + setMethod(HttpRequest::Method::Post); +} + +DeleteDataReflowDataRequest::~DeleteDataReflowDataRequest() {} + +long DeleteDataReflowDataRequest::getId() const { + return id_; +} + +void DeleteDataReflowDataRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + +long DeleteDataReflowDataRequest::getServiceId() const { + return serviceId_; +} + +void DeleteDataReflowDataRequest::setServiceId(long serviceId) { + serviceId_ = serviceId; + setBodyParameter(std::string("ServiceId"), std::to_string(serviceId)); +} + diff --git a/viapi-regen/src/model/DeleteDataReflowDataResult.cc b/viapi-regen/src/model/DeleteDataReflowDataResult.cc new file mode 100644 index 000000000..ce15a848c --- /dev/null +++ b/viapi-regen/src/model/DeleteDataReflowDataResult.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::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +DeleteDataReflowDataResult::DeleteDataReflowDataResult() : + ServiceResult() +{} + +DeleteDataReflowDataResult::DeleteDataReflowDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDataReflowDataResult::~DeleteDataReflowDataResult() +{} + +void DeleteDataReflowDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["ServiceId"].isNull()) + data_.serviceId = std::stol(dataNode["ServiceId"].asString()); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!dataNode["GmtModified"].isNull()) + data_.gmtModified = std::stol(dataNode["GmtModified"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string DeleteDataReflowDataResult::getMessage()const +{ + return message_; +} + +DeleteDataReflowDataResult::Data DeleteDataReflowDataResult::getData()const +{ + return data_; +} + +std::string DeleteDataReflowDataResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/DeleteDatasetRequest.cc b/viapi-regen/src/model/DeleteDatasetRequest.cc new file mode 100644 index 000000000..7be75e046 --- /dev/null +++ b/viapi-regen/src/model/DeleteDatasetRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::DeleteDatasetRequest; + +DeleteDatasetRequest::DeleteDatasetRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "DeleteDataset") { + setMethod(HttpRequest::Method::Post); +} + +DeleteDatasetRequest::~DeleteDatasetRequest() {} + +long DeleteDatasetRequest::getId() const { + return id_; +} + +void DeleteDatasetRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/viapi-regen/src/model/DeleteDatasetResult.cc b/viapi-regen/src/model/DeleteDatasetResult.cc new file mode 100644 index 000000000..8bf232364 --- /dev/null +++ b/viapi-regen/src/model/DeleteDatasetResult.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::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +DeleteDatasetResult::DeleteDatasetResult() : + ServiceResult() +{} + +DeleteDatasetResult::DeleteDatasetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDatasetResult::~DeleteDatasetResult() +{} + +void DeleteDatasetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string DeleteDatasetResult::getMessage()const +{ + return message_; +} + +DeleteDatasetResult::Data DeleteDatasetResult::getData()const +{ + return data_; +} + +std::string DeleteDatasetResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/DeleteLabelsetDataRequest.cc b/viapi-regen/src/model/DeleteLabelsetDataRequest.cc new file mode 100644 index 000000000..4b94164ca --- /dev/null +++ b/viapi-regen/src/model/DeleteLabelsetDataRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::DeleteLabelsetDataRequest; + +DeleteLabelsetDataRequest::DeleteLabelsetDataRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "DeleteLabelsetData") { + setMethod(HttpRequest::Method::Post); +} + +DeleteLabelsetDataRequest::~DeleteLabelsetDataRequest() {} + +long DeleteLabelsetDataRequest::getId() const { + return id_; +} + +void DeleteLabelsetDataRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + +long DeleteLabelsetDataRequest::getLabelId() const { + return labelId_; +} + +void DeleteLabelsetDataRequest::setLabelId(long labelId) { + labelId_ = labelId; + setBodyParameter(std::string("LabelId"), std::to_string(labelId)); +} + diff --git a/viapi-regen/src/model/DeleteLabelsetDataResult.cc b/viapi-regen/src/model/DeleteLabelsetDataResult.cc new file mode 100644 index 000000000..87da85769 --- /dev/null +++ b/viapi-regen/src/model/DeleteLabelsetDataResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +DeleteLabelsetDataResult::DeleteLabelsetDataResult() : + ServiceResult() +{} + +DeleteLabelsetDataResult::DeleteLabelsetDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteLabelsetDataResult::~DeleteLabelsetDataResult() +{} + +void DeleteLabelsetDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["LabelType"].isNull()) + data_.labelType = dataNode["LabelType"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!dataNode["Total"].isNull()) + data_.total = std::stol(dataNode["Total"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string DeleteLabelsetDataResult::getMessage()const +{ + return message_; +} + +DeleteLabelsetDataResult::Data DeleteLabelsetDataResult::getData()const +{ + return data_; +} + +std::string DeleteLabelsetDataResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/DeleteLabelsetRequest.cc b/viapi-regen/src/model/DeleteLabelsetRequest.cc new file mode 100644 index 000000000..11c003478 --- /dev/null +++ b/viapi-regen/src/model/DeleteLabelsetRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::DeleteLabelsetRequest; + +DeleteLabelsetRequest::DeleteLabelsetRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "DeleteLabelset") { + setMethod(HttpRequest::Method::Post); +} + +DeleteLabelsetRequest::~DeleteLabelsetRequest() {} + +long DeleteLabelsetRequest::getId() const { + return id_; +} + +void DeleteLabelsetRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/viapi-regen/src/model/DeleteLabelsetResult.cc b/viapi-regen/src/model/DeleteLabelsetResult.cc new file mode 100644 index 000000000..cf155ecbc --- /dev/null +++ b/viapi-regen/src/model/DeleteLabelsetResult.cc @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +DeleteLabelsetResult::DeleteLabelsetResult() : + ServiceResult() +{} + +DeleteLabelsetResult::DeleteLabelsetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteLabelsetResult::~DeleteLabelsetResult() +{} + +void DeleteLabelsetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["LabelType"].isNull()) + data_.labelType = dataNode["LabelType"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string DeleteLabelsetResult::getMessage()const +{ + return message_; +} + +DeleteLabelsetResult::Data DeleteLabelsetResult::getData()const +{ + return data_; +} + +std::string DeleteLabelsetResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/DeleteServiceRequest.cc b/viapi-regen/src/model/DeleteServiceRequest.cc new file mode 100644 index 000000000..0b1a1bcab --- /dev/null +++ b/viapi-regen/src/model/DeleteServiceRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::DeleteServiceRequest; + +DeleteServiceRequest::DeleteServiceRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "DeleteService") { + setMethod(HttpRequest::Method::Post); +} + +DeleteServiceRequest::~DeleteServiceRequest() {} + +long DeleteServiceRequest::getId() const { + return id_; +} + +void DeleteServiceRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/viapi-regen/src/model/DeleteServiceResult.cc b/viapi-regen/src/model/DeleteServiceResult.cc new file mode 100644 index 000000000..466ad26a5 --- /dev/null +++ b/viapi-regen/src/model/DeleteServiceResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +DeleteServiceResult::DeleteServiceResult() : + ServiceResult() +{} + +DeleteServiceResult::DeleteServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteServiceResult::~DeleteServiceResult() +{} + +void DeleteServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string DeleteServiceResult::getMessage()const +{ + return message_; +} + +DeleteServiceResult::Data DeleteServiceResult::getData()const +{ + return data_; +} + +std::string DeleteServiceResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/DeleteTrainTaskRequest.cc b/viapi-regen/src/model/DeleteTrainTaskRequest.cc new file mode 100644 index 000000000..68bb5fa69 --- /dev/null +++ b/viapi-regen/src/model/DeleteTrainTaskRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::DeleteTrainTaskRequest; + +DeleteTrainTaskRequest::DeleteTrainTaskRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "DeleteTrainTask") { + setMethod(HttpRequest::Method::Post); +} + +DeleteTrainTaskRequest::~DeleteTrainTaskRequest() {} + +long DeleteTrainTaskRequest::getId() const { + return id_; +} + +void DeleteTrainTaskRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/viapi-regen/src/model/DeleteTrainTaskResult.cc b/viapi-regen/src/model/DeleteTrainTaskResult.cc new file mode 100644 index 000000000..332ca6bd0 --- /dev/null +++ b/viapi-regen/src/model/DeleteTrainTaskResult.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +DeleteTrainTaskResult::DeleteTrainTaskResult() : + ServiceResult() +{} + +DeleteTrainTaskResult::DeleteTrainTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteTrainTaskResult::~DeleteTrainTaskResult() +{} + +void DeleteTrainTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["TaskName"].isNull()) + data_.taskName = dataNode["TaskName"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["DatasetId"].isNull()) + data_.datasetId = std::stol(dataNode["DatasetId"].asString()); + if(!dataNode["DatasetName"].isNull()) + data_.datasetName = dataNode["DatasetName"].asString(); + if(!dataNode["LabelId"].isNull()) + data_.labelId = std::stol(dataNode["LabelId"].asString()); + if(!dataNode["LabelName"].isNull()) + data_.labelName = dataNode["LabelName"].asString(); + if(!dataNode["TrainMode"].isNull()) + data_.trainMode = dataNode["TrainMode"].asString(); + if(!dataNode["TrainStatus"].isNull()) + data_.trainStatus = dataNode["TrainStatus"].asString(); + if(!dataNode["ModelId"].isNull()) + data_.modelId = std::stol(dataNode["ModelId"].asString()); + if(!dataNode["ModelEffect"].isNull()) + data_.modelEffect = dataNode["ModelEffect"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string DeleteTrainTaskResult::getMessage()const +{ + return message_; +} + +DeleteTrainTaskResult::Data DeleteTrainTaskResult::getData()const +{ + return data_; +} + +std::string DeleteTrainTaskResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/DeleteWorkspaceRequest.cc b/viapi-regen/src/model/DeleteWorkspaceRequest.cc new file mode 100644 index 000000000..0d58c8154 --- /dev/null +++ b/viapi-regen/src/model/DeleteWorkspaceRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::DeleteWorkspaceRequest; + +DeleteWorkspaceRequest::DeleteWorkspaceRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "DeleteWorkspace") { + setMethod(HttpRequest::Method::Post); +} + +DeleteWorkspaceRequest::~DeleteWorkspaceRequest() {} + +long DeleteWorkspaceRequest::getId() const { + return id_; +} + +void DeleteWorkspaceRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/viapi-regen/src/model/DeleteWorkspaceResult.cc b/viapi-regen/src/model/DeleteWorkspaceResult.cc new file mode 100644 index 000000000..3a998b358 --- /dev/null +++ b/viapi-regen/src/model/DeleteWorkspaceResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +DeleteWorkspaceResult::DeleteWorkspaceResult() : + ServiceResult() +{} + +DeleteWorkspaceResult::DeleteWorkspaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteWorkspaceResult::~DeleteWorkspaceResult() +{} + +void DeleteWorkspaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["Type"].isNull()) + data_.type = dataNode["Type"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string DeleteWorkspaceResult::getMessage()const +{ + return message_; +} + +DeleteWorkspaceResult::Data DeleteWorkspaceResult::getData()const +{ + return data_; +} + +std::string DeleteWorkspaceResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/DisableDataReflowRequest.cc b/viapi-regen/src/model/DisableDataReflowRequest.cc new file mode 100644 index 000000000..ff3cb85ee --- /dev/null +++ b/viapi-regen/src/model/DisableDataReflowRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::DisableDataReflowRequest; + +DisableDataReflowRequest::DisableDataReflowRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "DisableDataReflow") { + setMethod(HttpRequest::Method::Post); +} + +DisableDataReflowRequest::~DisableDataReflowRequest() {} + +long DisableDataReflowRequest::getServiceId() const { + return serviceId_; +} + +void DisableDataReflowRequest::setServiceId(long serviceId) { + serviceId_ = serviceId; + setBodyParameter(std::string("ServiceId"), std::to_string(serviceId)); +} + diff --git a/viapi-regen/src/model/DisableDataReflowResult.cc b/viapi-regen/src/model/DisableDataReflowResult.cc new file mode 100644 index 000000000..8e62befa7 --- /dev/null +++ b/viapi-regen/src/model/DisableDataReflowResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +DisableDataReflowResult::DisableDataReflowResult() : + ServiceResult() +{} + +DisableDataReflowResult::DisableDataReflowResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableDataReflowResult::~DisableDataReflowResult() +{} + +void DisableDataReflowResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ServiceId"].isNull()) + data_.serviceId = std::stol(dataNode["ServiceId"].asString()); + if(!dataNode["EnableDataReflowFlag"].isNull()) + data_.enableDataReflowFlag = dataNode["EnableDataReflowFlag"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string DisableDataReflowResult::getMessage()const +{ + return message_; +} + +DisableDataReflowResult::Data DisableDataReflowResult::getData()const +{ + return data_; +} + +std::string DisableDataReflowResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/DownloadFileNameListRequest.cc b/viapi-regen/src/model/DownloadFileNameListRequest.cc new file mode 100644 index 000000000..e820de65d --- /dev/null +++ b/viapi-regen/src/model/DownloadFileNameListRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::DownloadFileNameListRequest; + +DownloadFileNameListRequest::DownloadFileNameListRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "DownloadFileNameList") { + setMethod(HttpRequest::Method::Post); +} + +DownloadFileNameListRequest::~DownloadFileNameListRequest() {} + +std::string DownloadFileNameListRequest::getIdentity() const { + return identity_; +} + +void DownloadFileNameListRequest::setIdentity(const std::string &identity) { + identity_ = identity; + setBodyParameter(std::string("Identity"), identity); +} + +long DownloadFileNameListRequest::getDatasetId() const { + return datasetId_; +} + +void DownloadFileNameListRequest::setDatasetId(long datasetId) { + datasetId_ = datasetId; + setBodyParameter(std::string("DatasetId"), std::to_string(datasetId)); +} + diff --git a/viapi-regen/src/model/DownloadFileNameListResult.cc b/viapi-regen/src/model/DownloadFileNameListResult.cc new file mode 100644 index 000000000..2c16d00ce --- /dev/null +++ b/viapi-regen/src/model/DownloadFileNameListResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +DownloadFileNameListResult::DownloadFileNameListResult() : + ServiceResult() +{} + +DownloadFileNameListResult::DownloadFileNameListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DownloadFileNameListResult::~DownloadFileNameListResult() +{} + +void DownloadFileNameListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["OssHttpUrl"].isNull()) + data_.ossHttpUrl = dataNode["OssHttpUrl"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string DownloadFileNameListResult::getMessage()const +{ + return message_; +} + +DownloadFileNameListResult::Data DownloadFileNameListResult::getData()const +{ + return data_; +} + +std::string DownloadFileNameListResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/DownloadLabelFileRequest.cc b/viapi-regen/src/model/DownloadLabelFileRequest.cc new file mode 100644 index 000000000..4d53def1c --- /dev/null +++ b/viapi-regen/src/model/DownloadLabelFileRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::DownloadLabelFileRequest; + +DownloadLabelFileRequest::DownloadLabelFileRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "DownloadLabelFile") { + setMethod(HttpRequest::Method::Post); +} + +DownloadLabelFileRequest::~DownloadLabelFileRequest() {} + +long DownloadLabelFileRequest::getLabelId() const { + return labelId_; +} + +void DownloadLabelFileRequest::setLabelId(long labelId) { + labelId_ = labelId; + setBodyParameter(std::string("LabelId"), std::to_string(labelId)); +} + diff --git a/viapi-regen/src/model/DownloadLabelFileResult.cc b/viapi-regen/src/model/DownloadLabelFileResult.cc new file mode 100644 index 000000000..0587c21db --- /dev/null +++ b/viapi-regen/src/model/DownloadLabelFileResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +DownloadLabelFileResult::DownloadLabelFileResult() : + ServiceResult() +{} + +DownloadLabelFileResult::DownloadLabelFileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DownloadLabelFileResult::~DownloadLabelFileResult() +{} + +void DownloadLabelFileResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["OssHttpUrl"].isNull()) + data_.ossHttpUrl = dataNode["OssHttpUrl"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string DownloadLabelFileResult::getMessage()const +{ + return message_; +} + +DownloadLabelFileResult::Data DownloadLabelFileResult::getData()const +{ + return data_; +} + +std::string DownloadLabelFileResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/EnableDataReflowRequest.cc b/viapi-regen/src/model/EnableDataReflowRequest.cc new file mode 100644 index 000000000..aad9eac6d --- /dev/null +++ b/viapi-regen/src/model/EnableDataReflowRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::EnableDataReflowRequest; + +EnableDataReflowRequest::EnableDataReflowRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "EnableDataReflow") { + setMethod(HttpRequest::Method::Post); +} + +EnableDataReflowRequest::~EnableDataReflowRequest() {} + +long EnableDataReflowRequest::getDataReflowRate() const { + return dataReflowRate_; +} + +void EnableDataReflowRequest::setDataReflowRate(long dataReflowRate) { + dataReflowRate_ = dataReflowRate; + setBodyParameter(std::string("DataReflowRate"), std::to_string(dataReflowRate)); +} + +std::string EnableDataReflowRequest::getDataReflowOssPath() const { + return dataReflowOssPath_; +} + +void EnableDataReflowRequest::setDataReflowOssPath(const std::string &dataReflowOssPath) { + dataReflowOssPath_ = dataReflowOssPath; + setBodyParameter(std::string("DataReflowOssPath"), dataReflowOssPath); +} + +long EnableDataReflowRequest::getServiceId() const { + return serviceId_; +} + +void EnableDataReflowRequest::setServiceId(long serviceId) { + serviceId_ = serviceId; + setBodyParameter(std::string("ServiceId"), std::to_string(serviceId)); +} + diff --git a/viapi-regen/src/model/EnableDataReflowResult.cc b/viapi-regen/src/model/EnableDataReflowResult.cc new file mode 100644 index 000000000..629ef53c6 --- /dev/null +++ b/viapi-regen/src/model/EnableDataReflowResult.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::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +EnableDataReflowResult::EnableDataReflowResult() : + ServiceResult() +{} + +EnableDataReflowResult::EnableDataReflowResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableDataReflowResult::~EnableDataReflowResult() +{} + +void EnableDataReflowResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ServiceId"].isNull()) + data_.serviceId = std::stol(dataNode["ServiceId"].asString()); + if(!dataNode["EnableDataReflowFlag"].isNull()) + data_.enableDataReflowFlag = dataNode["EnableDataReflowFlag"].asString() == "true"; + if(!dataNode["DataReflowRate"].isNull()) + data_.dataReflowRate = std::stol(dataNode["DataReflowRate"].asString()); + if(!dataNode["DataReflowOssPath"].isNull()) + data_.dataReflowOssPath = dataNode["DataReflowOssPath"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string EnableDataReflowResult::getMessage()const +{ + return message_; +} + +EnableDataReflowResult::Data EnableDataReflowResult::getData()const +{ + return data_; +} + +std::string EnableDataReflowResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/ExportDataReflowDataListRequest.cc b/viapi-regen/src/model/ExportDataReflowDataListRequest.cc new file mode 100644 index 000000000..632a2e56d --- /dev/null +++ b/viapi-regen/src/model/ExportDataReflowDataListRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::ExportDataReflowDataListRequest; + +ExportDataReflowDataListRequest::ExportDataReflowDataListRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "ExportDataReflowDataList") { + setMethod(HttpRequest::Method::Post); +} + +ExportDataReflowDataListRequest::~ExportDataReflowDataListRequest() {} + +std::string ExportDataReflowDataListRequest::getFileType() const { + return fileType_; +} + +void ExportDataReflowDataListRequest::setFileType(const std::string &fileType) { + fileType_ = fileType; + setBodyParameter(std::string("FileType"), fileType); +} + +long ExportDataReflowDataListRequest::getStartTime() const { + return startTime_; +} + +void ExportDataReflowDataListRequest::setStartTime(long startTime) { + startTime_ = startTime; + setBodyParameter(std::string("StartTime"), std::to_string(startTime)); +} + +std::string ExportDataReflowDataListRequest::getImageName() const { + return imageName_; +} + +void ExportDataReflowDataListRequest::setImageName(const std::string &imageName) { + imageName_ = imageName; + setBodyParameter(std::string("ImageName"), imageName); +} + +long ExportDataReflowDataListRequest::getEndTime() const { + return endTime_; +} + +void ExportDataReflowDataListRequest::setEndTime(long endTime) { + endTime_ = endTime; + setBodyParameter(std::string("EndTime"), std::to_string(endTime)); +} + +long ExportDataReflowDataListRequest::getServiceId() const { + return serviceId_; +} + +void ExportDataReflowDataListRequest::setServiceId(long serviceId) { + serviceId_ = serviceId; + setBodyParameter(std::string("ServiceId"), std::to_string(serviceId)); +} + +std::string ExportDataReflowDataListRequest::getCategory() const { + return category_; +} + +void ExportDataReflowDataListRequest::setCategory(const std::string &category) { + category_ = category; + setBodyParameter(std::string("Category"), category); +} + diff --git a/viapi-regen/src/model/ExportDataReflowDataListResult.cc b/viapi-regen/src/model/ExportDataReflowDataListResult.cc new file mode 100644 index 000000000..50f4c36c9 --- /dev/null +++ b/viapi-regen/src/model/ExportDataReflowDataListResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +ExportDataReflowDataListResult::ExportDataReflowDataListResult() : + ServiceResult() +{} + +ExportDataReflowDataListResult::ExportDataReflowDataListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExportDataReflowDataListResult::~ExportDataReflowDataListResult() +{} + +void ExportDataReflowDataListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["OssHttpUrl"].isNull()) + data_.ossHttpUrl = dataNode["OssHttpUrl"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string ExportDataReflowDataListResult::getMessage()const +{ + return message_; +} + +ExportDataReflowDataListResult::Data ExportDataReflowDataListResult::getData()const +{ + return data_; +} + +std::string ExportDataReflowDataListResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/GetDatasetRequest.cc b/viapi-regen/src/model/GetDatasetRequest.cc new file mode 100644 index 000000000..a8a545a57 --- /dev/null +++ b/viapi-regen/src/model/GetDatasetRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::GetDatasetRequest; + +GetDatasetRequest::GetDatasetRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "GetDataset") { + setMethod(HttpRequest::Method::Post); +} + +GetDatasetRequest::~GetDatasetRequest() {} + +long GetDatasetRequest::getId() const { + return id_; +} + +void GetDatasetRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/viapi-regen/src/model/GetDatasetResult.cc b/viapi-regen/src/model/GetDatasetResult.cc new file mode 100644 index 000000000..d973b88d7 --- /dev/null +++ b/viapi-regen/src/model/GetDatasetResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +GetDatasetResult::GetDatasetResult() : + ServiceResult() +{} + +GetDatasetResult::GetDatasetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDatasetResult::~GetDatasetResult() +{} + +void GetDatasetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["OwnerType"].isNull()) + data_.ownerType = dataNode["OwnerType"].asString(); + if(!dataNode["OssUrl"].isNull()) + data_.ossUrl = dataNode["OssUrl"].asString(); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["Total"].isNull()) + data_.total = std::stol(dataNode["Total"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string GetDatasetResult::getMessage()const +{ + return message_; +} + +GetDatasetResult::Data GetDatasetResult::getData()const +{ + return data_; +} + +std::string GetDatasetResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/GetDiffCountLabelsetAndDatasetRequest.cc b/viapi-regen/src/model/GetDiffCountLabelsetAndDatasetRequest.cc new file mode 100644 index 000000000..da22668de --- /dev/null +++ b/viapi-regen/src/model/GetDiffCountLabelsetAndDatasetRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::GetDiffCountLabelsetAndDatasetRequest; + +GetDiffCountLabelsetAndDatasetRequest::GetDiffCountLabelsetAndDatasetRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "GetDiffCountLabelsetAndDataset") { + setMethod(HttpRequest::Method::Post); +} + +GetDiffCountLabelsetAndDatasetRequest::~GetDiffCountLabelsetAndDatasetRequest() {} + +long GetDiffCountLabelsetAndDatasetRequest::getLabelsetId() const { + return labelsetId_; +} + +void GetDiffCountLabelsetAndDatasetRequest::setLabelsetId(long labelsetId) { + labelsetId_ = labelsetId; + setBodyParameter(std::string("LabelsetId"), std::to_string(labelsetId)); +} + diff --git a/viapi-regen/src/model/GetDiffCountLabelsetAndDatasetResult.cc b/viapi-regen/src/model/GetDiffCountLabelsetAndDatasetResult.cc new file mode 100644 index 000000000..0f09300fd --- /dev/null +++ b/viapi-regen/src/model/GetDiffCountLabelsetAndDatasetResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +GetDiffCountLabelsetAndDatasetResult::GetDiffCountLabelsetAndDatasetResult() : + ServiceResult() +{} + +GetDiffCountLabelsetAndDatasetResult::GetDiffCountLabelsetAndDatasetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDiffCountLabelsetAndDatasetResult::~GetDiffCountLabelsetAndDatasetResult() +{} + +void GetDiffCountLabelsetAndDatasetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["DiffCount"].isNull()) + data_.diffCount = std::stol(dataNode["DiffCount"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string GetDiffCountLabelsetAndDatasetResult::getMessage()const +{ + return message_; +} + +GetDiffCountLabelsetAndDatasetResult::Data GetDiffCountLabelsetAndDatasetResult::getData()const +{ + return data_; +} + +std::string GetDiffCountLabelsetAndDatasetResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/GetLabelDetailRequest.cc b/viapi-regen/src/model/GetLabelDetailRequest.cc new file mode 100644 index 000000000..12296d65d --- /dev/null +++ b/viapi-regen/src/model/GetLabelDetailRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::GetLabelDetailRequest; + +GetLabelDetailRequest::GetLabelDetailRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "GetLabelDetail") { + setMethod(HttpRequest::Method::Post); +} + +GetLabelDetailRequest::~GetLabelDetailRequest() {} + +long GetLabelDetailRequest::getId() const { + return id_; +} + +void GetLabelDetailRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/viapi-regen/src/model/GetLabelDetailResult.cc b/viapi-regen/src/model/GetLabelDetailResult.cc new file mode 100644 index 000000000..0fa95424f --- /dev/null +++ b/viapi-regen/src/model/GetLabelDetailResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +GetLabelDetailResult::GetLabelDetailResult() : + ServiceResult() +{} + +GetLabelDetailResult::GetLabelDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetLabelDetailResult::~GetLabelDetailResult() +{} + +void GetLabelDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["LabelInfo"].isNull()) + data_.labelInfo = dataNode["LabelInfo"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string GetLabelDetailResult::getMessage()const +{ + return message_; +} + +GetLabelDetailResult::Data GetLabelDetailResult::getData()const +{ + return data_; +} + +std::string GetLabelDetailResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/GetLabelsetRequest.cc b/viapi-regen/src/model/GetLabelsetRequest.cc new file mode 100644 index 000000000..bad47c4bc --- /dev/null +++ b/viapi-regen/src/model/GetLabelsetRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::GetLabelsetRequest; + +GetLabelsetRequest::GetLabelsetRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "GetLabelset") { + setMethod(HttpRequest::Method::Post); +} + +GetLabelsetRequest::~GetLabelsetRequest() {} + +long GetLabelsetRequest::getId() const { + return id_; +} + +void GetLabelsetRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/viapi-regen/src/model/GetLabelsetResult.cc b/viapi-regen/src/model/GetLabelsetResult.cc new file mode 100644 index 000000000..f8f5c8990 --- /dev/null +++ b/viapi-regen/src/model/GetLabelsetResult.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +GetLabelsetResult::GetLabelsetResult() : + ServiceResult() +{} + +GetLabelsetResult::GetLabelsetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetLabelsetResult::~GetLabelsetResult() +{} + +void GetLabelsetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["LabelType"].isNull()) + data_.labelType = dataNode["LabelType"].asString(); + if(!dataNode["TagUserList"].isNull()) + data_.tagUserList = dataNode["TagUserList"].asString(); + if(!dataNode["Tags"].isNull()) + data_.tags = dataNode["Tags"].asString(); + if(!dataNode["SubTaskPackageSize"].isNull()) + data_.subTaskPackageSize = dataNode["SubTaskPackageSize"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!dataNode["Total"].isNull()) + data_.total = std::stol(dataNode["Total"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string GetLabelsetResult::getMessage()const +{ + return message_; +} + +GetLabelsetResult::Data GetLabelsetResult::getData()const +{ + return data_; +} + +std::string GetLabelsetResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/GetServiceRequest.cc b/viapi-regen/src/model/GetServiceRequest.cc new file mode 100644 index 000000000..39c8169f9 --- /dev/null +++ b/viapi-regen/src/model/GetServiceRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::GetServiceRequest; + +GetServiceRequest::GetServiceRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "GetService") { + setMethod(HttpRequest::Method::Post); +} + +GetServiceRequest::~GetServiceRequest() {} + +long GetServiceRequest::getId() const { + return id_; +} + +void GetServiceRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/viapi-regen/src/model/GetServiceResult.cc b/viapi-regen/src/model/GetServiceResult.cc new file mode 100644 index 000000000..bc6863447 --- /dev/null +++ b/viapi-regen/src/model/GetServiceResult.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +GetServiceResult::GetServiceResult() : + ServiceResult() +{} + +GetServiceResult::GetServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetServiceResult::~GetServiceResult() +{} + +void GetServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["ServiceName"].isNull()) + data_.serviceName = dataNode["ServiceName"].asString(); + if(!dataNode["ServiceDescription"].isNull()) + data_.serviceDescription = dataNode["ServiceDescription"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!dataNode["ServiceId"].isNull()) + data_.serviceId = dataNode["ServiceId"].asString(); + if(!dataNode["InputParams"].isNull()) + data_.inputParams = dataNode["InputParams"].asString(); + if(!dataNode["OutputParams"].isNull()) + data_.outputParams = dataNode["OutputParams"].asString(); + if(!dataNode["Errorcodes"].isNull()) + data_.errorcodes = dataNode["Errorcodes"].asString(); + if(!dataNode["InputExample"].isNull()) + data_.inputExample = dataNode["InputExample"].asString(); + if(!dataNode["OutputExample"].isNull()) + data_.outputExample = dataNode["OutputExample"].asString(); + auto dataReflowInfoNode = dataNode["DataReflowInfo"]; + if(!dataReflowInfoNode["DataReflowCount"].isNull()) + data_.dataReflowInfo.dataReflowCount = std::stol(dataReflowInfoNode["DataReflowCount"].asString()); + if(!dataReflowInfoNode["DataReflowRate"].isNull()) + data_.dataReflowInfo.dataReflowRate = std::stol(dataReflowInfoNode["DataReflowRate"].asString()); + if(!dataReflowInfoNode["DataReflowOssPath"].isNull()) + data_.dataReflowInfo.dataReflowOssPath = dataReflowInfoNode["DataReflowOssPath"].asString(); + if(!dataReflowInfoNode["EnableDataReflowFlag"].isNull()) + data_.dataReflowInfo.enableDataReflowFlag = dataReflowInfoNode["EnableDataReflowFlag"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string GetServiceResult::getMessage()const +{ + return message_; +} + +GetServiceResult::Data GetServiceResult::getData()const +{ + return data_; +} + +std::string GetServiceResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/GetTrainModelRequest.cc b/viapi-regen/src/model/GetTrainModelRequest.cc new file mode 100644 index 000000000..6845c690c --- /dev/null +++ b/viapi-regen/src/model/GetTrainModelRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::GetTrainModelRequest; + +GetTrainModelRequest::GetTrainModelRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "GetTrainModel") { + setMethod(HttpRequest::Method::Post); +} + +GetTrainModelRequest::~GetTrainModelRequest() {} + +long GetTrainModelRequest::getId() const { + return id_; +} + +void GetTrainModelRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/viapi-regen/src/model/GetTrainModelResult.cc b/viapi-regen/src/model/GetTrainModelResult.cc new file mode 100644 index 000000000..eb0c63f2d --- /dev/null +++ b/viapi-regen/src/model/GetTrainModelResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +GetTrainModelResult::GetTrainModelResult() : + ServiceResult() +{} + +GetTrainModelResult::GetTrainModelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTrainModelResult::~GetTrainModelResult() +{} + +void GetTrainModelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["SimpleEvaluate"].isNull()) + data_.simpleEvaluate = std::stol(dataNode["SimpleEvaluate"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string GetTrainModelResult::getMessage()const +{ + return message_; +} + +GetTrainModelResult::Data GetTrainModelResult::getData()const +{ + return data_; +} + +std::string GetTrainModelResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/GetTrainTaskEstimatedTimeRequest.cc b/viapi-regen/src/model/GetTrainTaskEstimatedTimeRequest.cc new file mode 100644 index 000000000..74824ec32 --- /dev/null +++ b/viapi-regen/src/model/GetTrainTaskEstimatedTimeRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::GetTrainTaskEstimatedTimeRequest; + +GetTrainTaskEstimatedTimeRequest::GetTrainTaskEstimatedTimeRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "GetTrainTaskEstimatedTime") { + setMethod(HttpRequest::Method::Post); +} + +GetTrainTaskEstimatedTimeRequest::~GetTrainTaskEstimatedTimeRequest() {} + +long GetTrainTaskEstimatedTimeRequest::getId() const { + return id_; +} + +void GetTrainTaskEstimatedTimeRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/viapi-regen/src/model/GetTrainTaskEstimatedTimeResult.cc b/viapi-regen/src/model/GetTrainTaskEstimatedTimeResult.cc new file mode 100644 index 000000000..9ffc9f0eb --- /dev/null +++ b/viapi-regen/src/model/GetTrainTaskEstimatedTimeResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +GetTrainTaskEstimatedTimeResult::GetTrainTaskEstimatedTimeResult() : + ServiceResult() +{} + +GetTrainTaskEstimatedTimeResult::GetTrainTaskEstimatedTimeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTrainTaskEstimatedTimeResult::~GetTrainTaskEstimatedTimeResult() +{} + +void GetTrainTaskEstimatedTimeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["EstimatedTime"].isNull()) + data_.estimatedTime = dataNode["EstimatedTime"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string GetTrainTaskEstimatedTimeResult::getMessage()const +{ + return message_; +} + +GetTrainTaskEstimatedTimeResult::Data GetTrainTaskEstimatedTimeResult::getData()const +{ + return data_; +} + +std::string GetTrainTaskEstimatedTimeResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/GetTrainTaskRequest.cc b/viapi-regen/src/model/GetTrainTaskRequest.cc new file mode 100644 index 000000000..b355d698b --- /dev/null +++ b/viapi-regen/src/model/GetTrainTaskRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::GetTrainTaskRequest; + +GetTrainTaskRequest::GetTrainTaskRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "GetTrainTask") { + setMethod(HttpRequest::Method::Post); +} + +GetTrainTaskRequest::~GetTrainTaskRequest() {} + +long GetTrainTaskRequest::getId() const { + return id_; +} + +void GetTrainTaskRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/viapi-regen/src/model/GetTrainTaskResult.cc b/viapi-regen/src/model/GetTrainTaskResult.cc new file mode 100644 index 000000000..802439909 --- /dev/null +++ b/viapi-regen/src/model/GetTrainTaskResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +GetTrainTaskResult::GetTrainTaskResult() : + ServiceResult() +{} + +GetTrainTaskResult::GetTrainTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTrainTaskResult::~GetTrainTaskResult() +{} + +void GetTrainTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["TaskName"].isNull()) + data_.taskName = dataNode["TaskName"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["DatasetId"].isNull()) + data_.datasetId = std::stol(dataNode["DatasetId"].asString()); + if(!dataNode["DatasetName"].isNull()) + data_.datasetName = dataNode["DatasetName"].asString(); + if(!dataNode["LabelId"].isNull()) + data_.labelId = std::stol(dataNode["LabelId"].asString()); + if(!dataNode["LabelName"].isNull()) + data_.labelName = dataNode["LabelName"].asString(); + if(!dataNode["TrainMode"].isNull()) + data_.trainMode = dataNode["TrainMode"].asString(); + if(!dataNode["TrainStatus"].isNull()) + data_.trainStatus = dataNode["TrainStatus"].asString(); + if(!dataNode["ModelId"].isNull()) + data_.modelId = std::stol(dataNode["ModelId"].asString()); + if(!dataNode["ModelEffect"].isNull()) + data_.modelEffect = dataNode["ModelEffect"].asString(); + if(!dataNode["FailureReason"].isNull()) + data_.failureReason = dataNode["FailureReason"].asString(); + if(!dataNode["TrainUseTime"].isNull()) + data_.trainUseTime = std::stol(dataNode["TrainUseTime"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string GetTrainTaskResult::getMessage()const +{ + return message_; +} + +GetTrainTaskResult::Data GetTrainTaskResult::getData()const +{ + return data_; +} + +std::string GetTrainTaskResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/GetUploadPolicyRequest.cc b/viapi-regen/src/model/GetUploadPolicyRequest.cc new file mode 100644 index 000000000..773024b2b --- /dev/null +++ b/viapi-regen/src/model/GetUploadPolicyRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::GetUploadPolicyRequest; + +GetUploadPolicyRequest::GetUploadPolicyRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "GetUploadPolicy") { + setMethod(HttpRequest::Method::Post); +} + +GetUploadPolicyRequest::~GetUploadPolicyRequest() {} + +std::string GetUploadPolicyRequest::getType() const { + return type_; +} + +void GetUploadPolicyRequest::setType(const std::string &type) { + type_ = type; + setBodyParameter(std::string("Type"), type); +} + +long GetUploadPolicyRequest::getId() const { + return id_; +} + +void GetUploadPolicyRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + +std::string GetUploadPolicyRequest::getFileName() const { + return fileName_; +} + +void GetUploadPolicyRequest::setFileName(const std::string &fileName) { + fileName_ = fileName; + setBodyParameter(std::string("FileName"), fileName); +} + diff --git a/viapi-regen/src/model/GetUploadPolicyResult.cc b/viapi-regen/src/model/GetUploadPolicyResult.cc new file mode 100644 index 000000000..d9b589d85 --- /dev/null +++ b/viapi-regen/src/model/GetUploadPolicyResult.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 +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +GetUploadPolicyResult::GetUploadPolicyResult() : + ServiceResult() +{} + +GetUploadPolicyResult::GetUploadPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetUploadPolicyResult::~GetUploadPolicyResult() +{} + +void GetUploadPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["AccessId"].isNull()) + data_.accessId = dataNode["AccessId"].asString(); + if(!dataNode["Policy"].isNull()) + data_.policy = dataNode["Policy"].asString(); + if(!dataNode["Signature"].isNull()) + data_.signature = dataNode["Signature"].asString(); + if(!dataNode["ObjectKey"].isNull()) + data_.objectKey = dataNode["ObjectKey"].asString(); + if(!dataNode["FileName"].isNull()) + data_.fileName = dataNode["FileName"].asString(); + if(!dataNode["BucketName"].isNull()) + data_.bucketName = dataNode["BucketName"].asString(); + if(!dataNode["Endpoint"].isNull()) + data_.endpoint = dataNode["Endpoint"].asString(); + if(!dataNode["OriginalFilename"].isNull()) + data_.originalFilename = dataNode["OriginalFilename"].asString(); + if(!dataNode["SignedHttpUrl"].isNull()) + data_.signedHttpUrl = dataNode["SignedHttpUrl"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string GetUploadPolicyResult::getMessage()const +{ + return message_; +} + +GetUploadPolicyResult::Data GetUploadPolicyResult::getData()const +{ + return data_; +} + +std::string GetUploadPolicyResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/GetWorkspaceRequest.cc b/viapi-regen/src/model/GetWorkspaceRequest.cc new file mode 100644 index 000000000..bed5711ec --- /dev/null +++ b/viapi-regen/src/model/GetWorkspaceRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::GetWorkspaceRequest; + +GetWorkspaceRequest::GetWorkspaceRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "GetWorkspace") { + setMethod(HttpRequest::Method::Post); +} + +GetWorkspaceRequest::~GetWorkspaceRequest() {} + +long GetWorkspaceRequest::getId() const { + return id_; +} + +void GetWorkspaceRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/viapi-regen/src/model/GetWorkspaceResult.cc b/viapi-regen/src/model/GetWorkspaceResult.cc new file mode 100644 index 000000000..e4d3d7306 --- /dev/null +++ b/viapi-regen/src/model/GetWorkspaceResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +GetWorkspaceResult::GetWorkspaceResult() : + ServiceResult() +{} + +GetWorkspaceResult::GetWorkspaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetWorkspaceResult::~GetWorkspaceResult() +{} + +void GetWorkspaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["Type"].isNull()) + data_.type = dataNode["Type"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string GetWorkspaceResult::getMessage()const +{ + return message_; +} + +GetWorkspaceResult::Data GetWorkspaceResult::getData()const +{ + return data_; +} + +std::string GetWorkspaceResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/ListDataReflowDatasRequest.cc b/viapi-regen/src/model/ListDataReflowDatasRequest.cc new file mode 100644 index 000000000..82dacd9f1 --- /dev/null +++ b/viapi-regen/src/model/ListDataReflowDatasRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::ListDataReflowDatasRequest; + +ListDataReflowDatasRequest::ListDataReflowDatasRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "ListDataReflowDatas") { + setMethod(HttpRequest::Method::Post); +} + +ListDataReflowDatasRequest::~ListDataReflowDatasRequest() {} + +long ListDataReflowDatasRequest::getStartTime() const { + return startTime_; +} + +void ListDataReflowDatasRequest::setStartTime(long startTime) { + startTime_ = startTime; + setBodyParameter(std::string("StartTime"), std::to_string(startTime)); +} + +std::string ListDataReflowDatasRequest::getImageName() const { + return imageName_; +} + +void ListDataReflowDatasRequest::setImageName(const std::string &imageName) { + imageName_ = imageName; + setBodyParameter(std::string("ImageName"), imageName); +} + +long ListDataReflowDatasRequest::getPageSize() const { + return pageSize_; +} + +void ListDataReflowDatasRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +long ListDataReflowDatasRequest::getEndTime() const { + return endTime_; +} + +void ListDataReflowDatasRequest::setEndTime(long endTime) { + endTime_ = endTime; + setBodyParameter(std::string("EndTime"), std::to_string(endTime)); +} + +long ListDataReflowDatasRequest::getCurrentPage() const { + return currentPage_; +} + +void ListDataReflowDatasRequest::setCurrentPage(long currentPage) { + currentPage_ = currentPage; + setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +long ListDataReflowDatasRequest::getServiceId() const { + return serviceId_; +} + +void ListDataReflowDatasRequest::setServiceId(long serviceId) { + serviceId_ = serviceId; + setBodyParameter(std::string("ServiceId"), std::to_string(serviceId)); +} + +std::string ListDataReflowDatasRequest::getCategory() const { + return category_; +} + +void ListDataReflowDatasRequest::setCategory(const std::string &category) { + category_ = category; + setBodyParameter(std::string("Category"), category); +} + diff --git a/viapi-regen/src/model/ListDataReflowDatasResult.cc b/viapi-regen/src/model/ListDataReflowDatasResult.cc new file mode 100644 index 000000000..19ccd5298 --- /dev/null +++ b/viapi-regen/src/model/ListDataReflowDatasResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +ListDataReflowDatasResult::ListDataReflowDatasResult() : + ServiceResult() +{} + +ListDataReflowDatasResult::ListDataReflowDatasResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDataReflowDatasResult::~ListDataReflowDatasResult() +{} + +void ListDataReflowDatasResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stol(dataNode["CurrentPage"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stol(dataNode["PageSize"].asString()); + if(!dataNode["TotalPage"].isNull()) + data_.totalPage = std::stol(dataNode["TotalPage"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stol(dataNode["TotalCount"].asString()); + auto allElements = dataNode["Elements"]["element"]; + for (auto value : allElements) + data_.elements.push_back(value.asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string ListDataReflowDatasResult::getMessage()const +{ + return message_; +} + +ListDataReflowDatasResult::Data ListDataReflowDatasResult::getData()const +{ + return data_; +} + +std::string ListDataReflowDatasResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/ListDatasetDatasRequest.cc b/viapi-regen/src/model/ListDatasetDatasRequest.cc new file mode 100644 index 000000000..b31e6e10d --- /dev/null +++ b/viapi-regen/src/model/ListDatasetDatasRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::ListDatasetDatasRequest; + +ListDatasetDatasRequest::ListDatasetDatasRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "ListDatasetDatas") { + setMethod(HttpRequest::Method::Post); +} + +ListDatasetDatasRequest::~ListDatasetDatasRequest() {} + +std::string ListDatasetDatasRequest::getIdentity() const { + return identity_; +} + +void ListDatasetDatasRequest::setIdentity(const std::string &identity) { + identity_ = identity; + setBodyParameter(std::string("Identity"), identity); +} + +long ListDatasetDatasRequest::getPageSize() const { + return pageSize_; +} + +void ListDatasetDatasRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +long ListDatasetDatasRequest::getCurrentPage() const { + return currentPage_; +} + +void ListDatasetDatasRequest::setCurrentPage(long currentPage) { + currentPage_ = currentPage; + setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +long ListDatasetDatasRequest::getDatasetId() const { + return datasetId_; +} + +void ListDatasetDatasRequest::setDatasetId(long datasetId) { + datasetId_ = datasetId; + setBodyParameter(std::string("DatasetId"), std::to_string(datasetId)); +} + diff --git a/viapi-regen/src/model/ListDatasetDatasResult.cc b/viapi-regen/src/model/ListDatasetDatasResult.cc new file mode 100644 index 000000000..ea4cdf0a9 --- /dev/null +++ b/viapi-regen/src/model/ListDatasetDatasResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +ListDatasetDatasResult::ListDatasetDatasResult() : + ServiceResult() +{} + +ListDatasetDatasResult::ListDatasetDatasResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDatasetDatasResult::~ListDatasetDatasResult() +{} + +void ListDatasetDatasResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stol(dataNode["CurrentPage"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stol(dataNode["PageSize"].asString()); + if(!dataNode["TotalPage"].isNull()) + data_.totalPage = std::stol(dataNode["TotalPage"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stol(dataNode["TotalCount"].asString()); + auto allElements = dataNode["Elements"]["element"]; + for (auto value : allElements) + data_.elements.push_back(value.asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string ListDatasetDatasResult::getMessage()const +{ + return message_; +} + +ListDatasetDatasResult::Data ListDatasetDatasResult::getData()const +{ + return data_; +} + +std::string ListDatasetDatasResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/ListDatasetsRequest.cc b/viapi-regen/src/model/ListDatasetsRequest.cc new file mode 100644 index 000000000..eff5e64a7 --- /dev/null +++ b/viapi-regen/src/model/ListDatasetsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::ListDatasetsRequest; + +ListDatasetsRequest::ListDatasetsRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "ListDatasets") { + setMethod(HttpRequest::Method::Post); +} + +ListDatasetsRequest::~ListDatasetsRequest() {} + +long ListDatasetsRequest::getPageSize() const { + return pageSize_; +} + +void ListDatasetsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +long ListDatasetsRequest::getCurrentPage() const { + return currentPage_; +} + +void ListDatasetsRequest::setCurrentPage(long currentPage) { + currentPage_ = currentPage; + setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +long ListDatasetsRequest::getWorkspaceId() const { + return workspaceId_; +} + +void ListDatasetsRequest::setWorkspaceId(long workspaceId) { + workspaceId_ = workspaceId; + setBodyParameter(std::string("WorkspaceId"), std::to_string(workspaceId)); +} + diff --git a/viapi-regen/src/model/ListDatasetsResult.cc b/viapi-regen/src/model/ListDatasetsResult.cc new file mode 100644 index 000000000..04ab32666 --- /dev/null +++ b/viapi-regen/src/model/ListDatasetsResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +ListDatasetsResult::ListDatasetsResult() : + ServiceResult() +{} + +ListDatasetsResult::ListDatasetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDatasetsResult::~ListDatasetsResult() +{} + +void ListDatasetsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stol(dataNode["CurrentPage"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stol(dataNode["PageSize"].asString()); + if(!dataNode["TotalPage"].isNull()) + data_.totalPage = std::stol(dataNode["TotalPage"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stol(dataNode["TotalCount"].asString()); + auto allElements = dataNode["Elements"]["element"]; + for (auto value : allElements) + data_.elements.push_back(value.asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string ListDatasetsResult::getMessage()const +{ + return message_; +} + +ListDatasetsResult::Data ListDatasetsResult::getData()const +{ + return data_; +} + +std::string ListDatasetsResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/ListLabelsetDatasRequest.cc b/viapi-regen/src/model/ListLabelsetDatasRequest.cc new file mode 100644 index 000000000..46622d481 --- /dev/null +++ b/viapi-regen/src/model/ListLabelsetDatasRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::ListLabelsetDatasRequest; + +ListLabelsetDatasRequest::ListLabelsetDatasRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "ListLabelsetDatas") { + setMethod(HttpRequest::Method::Post); +} + +ListLabelsetDatasRequest::~ListLabelsetDatasRequest() {} + +long ListLabelsetDatasRequest::getPageSize() const { + return pageSize_; +} + +void ListLabelsetDatasRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListLabelsetDatasRequest::getValue() const { + return value_; +} + +void ListLabelsetDatasRequest::setValue(const std::string &value) { + value_ = value; + setBodyParameter(std::string("Value"), value); +} + +long ListLabelsetDatasRequest::getCurrentPage() const { + return currentPage_; +} + +void ListLabelsetDatasRequest::setCurrentPage(long currentPage) { + currentPage_ = currentPage; + setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +long ListLabelsetDatasRequest::getLabelId() const { + return labelId_; +} + +void ListLabelsetDatasRequest::setLabelId(long labelId) { + labelId_ = labelId; + setBodyParameter(std::string("LabelId"), std::to_string(labelId)); +} + +std::string ListLabelsetDatasRequest::getName() const { + return name_; +} + +void ListLabelsetDatasRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); +} + +std::string ListLabelsetDatasRequest::getOperation() const { + return operation_; +} + +void ListLabelsetDatasRequest::setOperation(const std::string &operation) { + operation_ = operation; + setBodyParameter(std::string("Operation"), operation); +} + diff --git a/viapi-regen/src/model/ListLabelsetDatasResult.cc b/viapi-regen/src/model/ListLabelsetDatasResult.cc new file mode 100644 index 000000000..13ba0f7e9 --- /dev/null +++ b/viapi-regen/src/model/ListLabelsetDatasResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +ListLabelsetDatasResult::ListLabelsetDatasResult() : + ServiceResult() +{} + +ListLabelsetDatasResult::ListLabelsetDatasResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListLabelsetDatasResult::~ListLabelsetDatasResult() +{} + +void ListLabelsetDatasResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stol(dataNode["CurrentPage"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stol(dataNode["PageSize"].asString()); + if(!dataNode["TotalPage"].isNull()) + data_.totalPage = std::stol(dataNode["TotalPage"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stol(dataNode["TotalCount"].asString()); + auto allElements = dataNode["Elements"]["element"]; + for (auto value : allElements) + data_.elements.push_back(value.asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string ListLabelsetDatasResult::getMessage()const +{ + return message_; +} + +ListLabelsetDatasResult::Data ListLabelsetDatasResult::getData()const +{ + return data_; +} + +std::string ListLabelsetDatasResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/ListLabelsetsRequest.cc b/viapi-regen/src/model/ListLabelsetsRequest.cc new file mode 100644 index 000000000..a32893dc9 --- /dev/null +++ b/viapi-regen/src/model/ListLabelsetsRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::ListLabelsetsRequest; + +ListLabelsetsRequest::ListLabelsetsRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "ListLabelsets") { + setMethod(HttpRequest::Method::Post); +} + +ListLabelsetsRequest::~ListLabelsetsRequest() {} + +long ListLabelsetsRequest::getPageSize() const { + return pageSize_; +} + +void ListLabelsetsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +long ListLabelsetsRequest::getCurrentPage() const { + return currentPage_; +} + +void ListLabelsetsRequest::setCurrentPage(long currentPage) { + currentPage_ = currentPage; + setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +long ListLabelsetsRequest::getDatasetId() const { + return datasetId_; +} + +void ListLabelsetsRequest::setDatasetId(long datasetId) { + datasetId_ = datasetId; + setBodyParameter(std::string("DatasetId"), std::to_string(datasetId)); +} + +std::string ListLabelsetsRequest::getStatus() const { + return status_; +} + +void ListLabelsetsRequest::setStatus(const std::string &status) { + status_ = status; + setBodyParameter(std::string("Status"), status); +} + diff --git a/viapi-regen/src/model/ListLabelsetsResult.cc b/viapi-regen/src/model/ListLabelsetsResult.cc new file mode 100644 index 000000000..286c4e0ca --- /dev/null +++ b/viapi-regen/src/model/ListLabelsetsResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +ListLabelsetsResult::ListLabelsetsResult() : + ServiceResult() +{} + +ListLabelsetsResult::ListLabelsetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListLabelsetsResult::~ListLabelsetsResult() +{} + +void ListLabelsetsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stol(dataNode["CurrentPage"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stol(dataNode["PageSize"].asString()); + if(!dataNode["TotalPage"].isNull()) + data_.totalPage = std::stol(dataNode["TotalPage"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stol(dataNode["TotalCount"].asString()); + auto allElements = dataNode["Elements"]["element"]; + for (auto value : allElements) + data_.elements.push_back(value.asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string ListLabelsetsResult::getMessage()const +{ + return message_; +} + +ListLabelsetsResult::Data ListLabelsetsResult::getData()const +{ + return data_; +} + +std::string ListLabelsetsResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/ListServicesRequest.cc b/viapi-regen/src/model/ListServicesRequest.cc new file mode 100644 index 000000000..5e8a1cb37 --- /dev/null +++ b/viapi-regen/src/model/ListServicesRequest.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 + +using AlibabaCloud::Viapi_regen::Model::ListServicesRequest; + +ListServicesRequest::ListServicesRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "ListServices") { + setMethod(HttpRequest::Method::Post); +} + +ListServicesRequest::~ListServicesRequest() {} + +long ListServicesRequest::getPageSize() const { + return pageSize_; +} + +void ListServicesRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +long ListServicesRequest::getId() const { + return id_; +} + +void ListServicesRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + +long ListServicesRequest::getCurrentPage() const { + return currentPage_; +} + +void ListServicesRequest::setCurrentPage(long currentPage) { + currentPage_ = currentPage; + setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +long ListServicesRequest::getName() const { + return name_; +} + +void ListServicesRequest::setName(long name) { + name_ = name; + setBodyParameter(std::string("Name"), std::to_string(name)); +} + +long ListServicesRequest::getWorkspaceId() const { + return workspaceId_; +} + +void ListServicesRequest::setWorkspaceId(long workspaceId) { + workspaceId_ = workspaceId; + setBodyParameter(std::string("WorkspaceId"), std::to_string(workspaceId)); +} + diff --git a/viapi-regen/src/model/ListServicesResult.cc b/viapi-regen/src/model/ListServicesResult.cc new file mode 100644 index 000000000..b77cd071a --- /dev/null +++ b/viapi-regen/src/model/ListServicesResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +ListServicesResult::ListServicesResult() : + ServiceResult() +{} + +ListServicesResult::ListServicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListServicesResult::~ListServicesResult() +{} + +void ListServicesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stol(dataNode["CurrentPage"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stol(dataNode["PageSize"].asString()); + if(!dataNode["TotalPage"].isNull()) + data_.totalPage = std::stol(dataNode["TotalPage"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stol(dataNode["TotalCount"].asString()); + auto allElements = dataNode["Elements"]["element"]; + for (auto value : allElements) + data_.elements.push_back(value.asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string ListServicesResult::getMessage()const +{ + return message_; +} + +ListServicesResult::Data ListServicesResult::getData()const +{ + return data_; +} + +std::string ListServicesResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/ListTrainTasksRequest.cc b/viapi-regen/src/model/ListTrainTasksRequest.cc new file mode 100644 index 000000000..986a2de07 --- /dev/null +++ b/viapi-regen/src/model/ListTrainTasksRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::ListTrainTasksRequest; + +ListTrainTasksRequest::ListTrainTasksRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "ListTrainTasks") { + setMethod(HttpRequest::Method::Post); +} + +ListTrainTasksRequest::~ListTrainTasksRequest() {} + +long ListTrainTasksRequest::getPageSize() const { + return pageSize_; +} + +void ListTrainTasksRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +long ListTrainTasksRequest::getCurrentPage() const { + return currentPage_; +} + +void ListTrainTasksRequest::setCurrentPage(long currentPage) { + currentPage_ = currentPage; + setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +std::string ListTrainTasksRequest::getStatus() const { + return status_; +} + +void ListTrainTasksRequest::setStatus(const std::string &status) { + status_ = status; + setBodyParameter(std::string("Status"), status); +} + +long ListTrainTasksRequest::getWorkspaceId() const { + return workspaceId_; +} + +void ListTrainTasksRequest::setWorkspaceId(long workspaceId) { + workspaceId_ = workspaceId; + setBodyParameter(std::string("WorkspaceId"), std::to_string(workspaceId)); +} + diff --git a/viapi-regen/src/model/ListTrainTasksResult.cc b/viapi-regen/src/model/ListTrainTasksResult.cc new file mode 100644 index 000000000..7b9b7e91a --- /dev/null +++ b/viapi-regen/src/model/ListTrainTasksResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +ListTrainTasksResult::ListTrainTasksResult() : + ServiceResult() +{} + +ListTrainTasksResult::ListTrainTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTrainTasksResult::~ListTrainTasksResult() +{} + +void ListTrainTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stol(dataNode["CurrentPage"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stol(dataNode["PageSize"].asString()); + if(!dataNode["TotalPage"].isNull()) + data_.totalPage = std::stol(dataNode["TotalPage"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stol(dataNode["TotalCount"].asString()); + auto allElements = dataNode["Elements"]["element"]; + for (auto value : allElements) + data_.elements.push_back(value.asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string ListTrainTasksResult::getMessage()const +{ + return message_; +} + +ListTrainTasksResult::Data ListTrainTasksResult::getData()const +{ + return data_; +} + +std::string ListTrainTasksResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/ListWorkspacesRequest.cc b/viapi-regen/src/model/ListWorkspacesRequest.cc new file mode 100644 index 000000000..1db8505c2 --- /dev/null +++ b/viapi-regen/src/model/ListWorkspacesRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::ListWorkspacesRequest; + +ListWorkspacesRequest::ListWorkspacesRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "ListWorkspaces") { + setMethod(HttpRequest::Method::Post); +} + +ListWorkspacesRequest::~ListWorkspacesRequest() {} + +long ListWorkspacesRequest::getPageSize() const { + return pageSize_; +} + +void ListWorkspacesRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +long ListWorkspacesRequest::getCurrentPage() const { + return currentPage_; +} + +void ListWorkspacesRequest::setCurrentPage(long currentPage) { + currentPage_ = currentPage; + setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +std::string ListWorkspacesRequest::getName() const { + return name_; +} + +void ListWorkspacesRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); +} + diff --git a/viapi-regen/src/model/ListWorkspacesResult.cc b/viapi-regen/src/model/ListWorkspacesResult.cc new file mode 100644 index 000000000..08cee19fd --- /dev/null +++ b/viapi-regen/src/model/ListWorkspacesResult.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +ListWorkspacesResult::ListWorkspacesResult() : + ServiceResult() +{} + +ListWorkspacesResult::ListWorkspacesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListWorkspacesResult::~ListWorkspacesResult() +{} + +void ListWorkspacesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CurrentPage"].isNull()) + data_.currentPage = std::stol(dataNode["CurrentPage"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stol(dataNode["PageSize"].asString()); + if(!dataNode["TotalPage"].isNull()) + data_.totalPage = std::stol(dataNode["TotalPage"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stol(dataNode["TotalCount"].asString()); + auto allElementsNode = dataNode["Elements"]["element"]; + for (auto dataNodeElementselement : allElementsNode) + { + Data::Element elementObject; + if(!dataNodeElementselement["Id"].isNull()) + elementObject.id = std::stol(dataNodeElementselement["Id"].asString()); + if(!dataNodeElementselement["GmtCreate"].isNull()) + elementObject.gmtCreate = std::stol(dataNodeElementselement["GmtCreate"].asString()); + if(!dataNodeElementselement["Name"].isNull()) + elementObject.name = dataNodeElementselement["Name"].asString(); + if(!dataNodeElementselement["Description"].isNull()) + elementObject.description = dataNodeElementselement["Description"].asString(); + if(!dataNodeElementselement["Type"].isNull()) + elementObject.type = dataNodeElementselement["Type"].asString(); + data_.elements.push_back(elementObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string ListWorkspacesResult::getMessage()const +{ + return message_; +} + +ListWorkspacesResult::Data ListWorkspacesResult::getData()const +{ + return data_; +} + +std::string ListWorkspacesResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/SetDatasetUserOssPathRequest.cc b/viapi-regen/src/model/SetDatasetUserOssPathRequest.cc new file mode 100644 index 000000000..6e93b3d73 --- /dev/null +++ b/viapi-regen/src/model/SetDatasetUserOssPathRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::SetDatasetUserOssPathRequest; + +SetDatasetUserOssPathRequest::SetDatasetUserOssPathRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "SetDatasetUserOssPath") { + setMethod(HttpRequest::Method::Post); +} + +SetDatasetUserOssPathRequest::~SetDatasetUserOssPathRequest() {} + +std::string SetDatasetUserOssPathRequest::getUserOssUrl() const { + return userOssUrl_; +} + +void SetDatasetUserOssPathRequest::setUserOssUrl(const std::string &userOssUrl) { + userOssUrl_ = userOssUrl; + setBodyParameter(std::string("UserOssUrl"), userOssUrl); +} + +long SetDatasetUserOssPathRequest::getDatasetId() const { + return datasetId_; +} + +void SetDatasetUserOssPathRequest::setDatasetId(long datasetId) { + datasetId_ = datasetId; + setBodyParameter(std::string("DatasetId"), std::to_string(datasetId)); +} + diff --git a/viapi-regen/src/model/SetDatasetUserOssPathResult.cc b/viapi-regen/src/model/SetDatasetUserOssPathResult.cc new file mode 100644 index 000000000..c8bce8d04 --- /dev/null +++ b/viapi-regen/src/model/SetDatasetUserOssPathResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +SetDatasetUserOssPathResult::SetDatasetUserOssPathResult() : + ServiceResult() +{} + +SetDatasetUserOssPathResult::SetDatasetUserOssPathResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetDatasetUserOssPathResult::~SetDatasetUserOssPathResult() +{} + +void SetDatasetUserOssPathResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["OssUrl"].isNull()) + data_.ossUrl = dataNode["OssUrl"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string SetDatasetUserOssPathResult::getMessage()const +{ + return message_; +} + +SetDatasetUserOssPathResult::Data SetDatasetUserOssPathResult::getData()const +{ + return data_; +} + +std::string SetDatasetUserOssPathResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/StartServiceRequest.cc b/viapi-regen/src/model/StartServiceRequest.cc new file mode 100644 index 000000000..9fed5315a --- /dev/null +++ b/viapi-regen/src/model/StartServiceRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::StartServiceRequest; + +StartServiceRequest::StartServiceRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "StartService") { + setMethod(HttpRequest::Method::Post); +} + +StartServiceRequest::~StartServiceRequest() {} + +long StartServiceRequest::getId() const { + return id_; +} + +void StartServiceRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/viapi-regen/src/model/StartServiceResult.cc b/viapi-regen/src/model/StartServiceResult.cc new file mode 100644 index 000000000..4a4532aa5 --- /dev/null +++ b/viapi-regen/src/model/StartServiceResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +StartServiceResult::StartServiceResult() : + ServiceResult() +{} + +StartServiceResult::StartServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartServiceResult::~StartServiceResult() +{} + +void StartServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["ServiceName"].isNull()) + data_.serviceName = dataNode["ServiceName"].asString(); + if(!dataNode["ServiceDescription"].isNull()) + data_.serviceDescription = dataNode["ServiceDescription"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string StartServiceResult::getMessage()const +{ + return message_; +} + +StartServiceResult::Data StartServiceResult::getData()const +{ + return data_; +} + +std::string StartServiceResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/StartTrainTaskRequest.cc b/viapi-regen/src/model/StartTrainTaskRequest.cc new file mode 100644 index 000000000..98e15c8de --- /dev/null +++ b/viapi-regen/src/model/StartTrainTaskRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::StartTrainTaskRequest; + +StartTrainTaskRequest::StartTrainTaskRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "StartTrainTask") { + setMethod(HttpRequest::Method::Post); +} + +StartTrainTaskRequest::~StartTrainTaskRequest() {} + +long StartTrainTaskRequest::getRelyOnTaskId() const { + return relyOnTaskId_; +} + +void StartTrainTaskRequest::setRelyOnTaskId(long relyOnTaskId) { + relyOnTaskId_ = relyOnTaskId; + setBodyParameter(std::string("RelyOnTaskId"), std::to_string(relyOnTaskId)); +} + +bool StartTrainTaskRequest::getForceStartFlag() const { + return forceStartFlag_; +} + +void StartTrainTaskRequest::setForceStartFlag(bool forceStartFlag) { + forceStartFlag_ = forceStartFlag; + setBodyParameter(std::string("ForceStartFlag"), forceStartFlag ? "true" : "false"); +} + +long StartTrainTaskRequest::getId() const { + return id_; +} + +void StartTrainTaskRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/viapi-regen/src/model/StartTrainTaskResult.cc b/viapi-regen/src/model/StartTrainTaskResult.cc new file mode 100644 index 000000000..6756a6f46 --- /dev/null +++ b/viapi-regen/src/model/StartTrainTaskResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +StartTrainTaskResult::StartTrainTaskResult() : + ServiceResult() +{} + +StartTrainTaskResult::StartTrainTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartTrainTaskResult::~StartTrainTaskResult() +{} + +void StartTrainTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["CheckResult"].isNull()) + data_.checkResult = dataNode["CheckResult"].asString(); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["TaskName"].isNull()) + data_.taskName = dataNode["TaskName"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["DatasetId"].isNull()) + data_.datasetId = std::stol(dataNode["DatasetId"].asString()); + if(!dataNode["DatasetName"].isNull()) + data_.datasetName = dataNode["DatasetName"].asString(); + if(!dataNode["LabelId"].isNull()) + data_.labelId = std::stol(dataNode["LabelId"].asString()); + if(!dataNode["LabelName"].isNull()) + data_.labelName = dataNode["LabelName"].asString(); + if(!dataNode["TrainMode"].isNull()) + data_.trainMode = dataNode["TrainMode"].asString(); + if(!dataNode["TrainStatus"].isNull()) + data_.trainStatus = dataNode["TrainStatus"].asString(); + if(!dataNode["ModelId"].isNull()) + data_.modelId = std::stol(dataNode["ModelId"].asString()); + if(!dataNode["ModelEffect"].isNull()) + data_.modelEffect = dataNode["ModelEffect"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string StartTrainTaskResult::getMessage()const +{ + return message_; +} + +StartTrainTaskResult::Data StartTrainTaskResult::getData()const +{ + return data_; +} + +std::string StartTrainTaskResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/StopServiceRequest.cc b/viapi-regen/src/model/StopServiceRequest.cc new file mode 100644 index 000000000..0e2bdc46d --- /dev/null +++ b/viapi-regen/src/model/StopServiceRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::StopServiceRequest; + +StopServiceRequest::StopServiceRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "StopService") { + setMethod(HttpRequest::Method::Post); +} + +StopServiceRequest::~StopServiceRequest() {} + +long StopServiceRequest::getId() const { + return id_; +} + +void StopServiceRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/viapi-regen/src/model/StopServiceResult.cc b/viapi-regen/src/model/StopServiceResult.cc new file mode 100644 index 000000000..aadd889c2 --- /dev/null +++ b/viapi-regen/src/model/StopServiceResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +StopServiceResult::StopServiceResult() : + ServiceResult() +{} + +StopServiceResult::StopServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopServiceResult::~StopServiceResult() +{} + +void StopServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["ServiceName"].isNull()) + data_.serviceName = dataNode["ServiceName"].asString(); + if(!dataNode["ServiceDescription"].isNull()) + data_.serviceDescription = dataNode["ServiceDescription"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string StopServiceResult::getMessage()const +{ + return message_; +} + +StopServiceResult::Data StopServiceResult::getData()const +{ + return data_; +} + +std::string StopServiceResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/StopTrainTaskRequest.cc b/viapi-regen/src/model/StopTrainTaskRequest.cc new file mode 100644 index 000000000..be5676da4 --- /dev/null +++ b/viapi-regen/src/model/StopTrainTaskRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::StopTrainTaskRequest; + +StopTrainTaskRequest::StopTrainTaskRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "StopTrainTask") { + setMethod(HttpRequest::Method::Post); +} + +StopTrainTaskRequest::~StopTrainTaskRequest() {} + +long StopTrainTaskRequest::getId() const { + return id_; +} + +void StopTrainTaskRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/viapi-regen/src/model/StopTrainTaskResult.cc b/viapi-regen/src/model/StopTrainTaskResult.cc new file mode 100644 index 000000000..5b22aa9fc --- /dev/null +++ b/viapi-regen/src/model/StopTrainTaskResult.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +StopTrainTaskResult::StopTrainTaskResult() : + ServiceResult() +{} + +StopTrainTaskResult::StopTrainTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopTrainTaskResult::~StopTrainTaskResult() +{} + +void StopTrainTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["TaskName"].isNull()) + data_.taskName = dataNode["TaskName"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["DatasetId"].isNull()) + data_.datasetId = std::stol(dataNode["DatasetId"].asString()); + if(!dataNode["DatasetName"].isNull()) + data_.datasetName = dataNode["DatasetName"].asString(); + if(!dataNode["LabelId"].isNull()) + data_.labelId = std::stol(dataNode["LabelId"].asString()); + if(!dataNode["LabelName"].isNull()) + data_.labelName = dataNode["LabelName"].asString(); + if(!dataNode["TrainMode"].isNull()) + data_.trainMode = dataNode["TrainMode"].asString(); + if(!dataNode["TrainStatus"].isNull()) + data_.trainStatus = dataNode["TrainStatus"].asString(); + if(!dataNode["ModelId"].isNull()) + data_.modelId = std::stol(dataNode["ModelId"].asString()); + if(!dataNode["ModelEffect"].isNull()) + data_.modelEffect = dataNode["ModelEffect"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string StopTrainTaskResult::getMessage()const +{ + return message_; +} + +StopTrainTaskResult::Data StopTrainTaskResult::getData()const +{ + return data_; +} + +std::string StopTrainTaskResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/UpdateDatasetRequest.cc b/viapi-regen/src/model/UpdateDatasetRequest.cc new file mode 100644 index 000000000..f388a3f17 --- /dev/null +++ b/viapi-regen/src/model/UpdateDatasetRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::UpdateDatasetRequest; + +UpdateDatasetRequest::UpdateDatasetRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "UpdateDataset") { + setMethod(HttpRequest::Method::Post); +} + +UpdateDatasetRequest::~UpdateDatasetRequest() {} + +std::string UpdateDatasetRequest::getDescription() const { + return description_; +} + +void UpdateDatasetRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +long UpdateDatasetRequest::getId() const { + return id_; +} + +void UpdateDatasetRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + +std::string UpdateDatasetRequest::getName() const { + return name_; +} + +void UpdateDatasetRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); +} + diff --git a/viapi-regen/src/model/UpdateDatasetResult.cc b/viapi-regen/src/model/UpdateDatasetResult.cc new file mode 100644 index 000000000..efadaab39 --- /dev/null +++ b/viapi-regen/src/model/UpdateDatasetResult.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::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +UpdateDatasetResult::UpdateDatasetResult() : + ServiceResult() +{} + +UpdateDatasetResult::UpdateDatasetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateDatasetResult::~UpdateDatasetResult() +{} + +void UpdateDatasetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string UpdateDatasetResult::getMessage()const +{ + return message_; +} + +UpdateDatasetResult::Data UpdateDatasetResult::getData()const +{ + return data_; +} + +std::string UpdateDatasetResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/UpdateLabelsetRequest.cc b/viapi-regen/src/model/UpdateLabelsetRequest.cc new file mode 100644 index 000000000..69dd7d1b8 --- /dev/null +++ b/viapi-regen/src/model/UpdateLabelsetRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::UpdateLabelsetRequest; + +UpdateLabelsetRequest::UpdateLabelsetRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "UpdateLabelset") { + setMethod(HttpRequest::Method::Post); +} + +UpdateLabelsetRequest::~UpdateLabelsetRequest() {} + +std::string UpdateLabelsetRequest::getDescription() const { + return description_; +} + +void UpdateLabelsetRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +long UpdateLabelsetRequest::getId() const { + return id_; +} + +void UpdateLabelsetRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + +std::string UpdateLabelsetRequest::getTagUserList() const { + return tagUserList_; +} + +void UpdateLabelsetRequest::setTagUserList(const std::string &tagUserList) { + tagUserList_ = tagUserList; + setBodyParameter(std::string("TagUserList"), tagUserList); +} + +std::string UpdateLabelsetRequest::getUserOssUrl() const { + return userOssUrl_; +} + +void UpdateLabelsetRequest::setUserOssUrl(const std::string &userOssUrl) { + userOssUrl_ = userOssUrl; + setBodyParameter(std::string("UserOssUrl"), userOssUrl); +} + +std::string UpdateLabelsetRequest::getObjectKey() const { + return objectKey_; +} + +void UpdateLabelsetRequest::setObjectKey(const std::string &objectKey) { + objectKey_ = objectKey; + setBodyParameter(std::string("ObjectKey"), objectKey); +} + +std::string UpdateLabelsetRequest::getName() const { + return name_; +} + +void UpdateLabelsetRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); +} + diff --git a/viapi-regen/src/model/UpdateLabelsetResult.cc b/viapi-regen/src/model/UpdateLabelsetResult.cc new file mode 100644 index 000000000..802c98ef0 --- /dev/null +++ b/viapi-regen/src/model/UpdateLabelsetResult.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::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +UpdateLabelsetResult::UpdateLabelsetResult() : + ServiceResult() +{} + +UpdateLabelsetResult::UpdateLabelsetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateLabelsetResult::~UpdateLabelsetResult() +{} + +void UpdateLabelsetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = std::stol(dataNode["Name"].asString()); + if(!dataNode["Description"].isNull()) + data_.description = std::stol(dataNode["Description"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string UpdateLabelsetResult::getMessage()const +{ + return message_; +} + +UpdateLabelsetResult::Data UpdateLabelsetResult::getData()const +{ + return data_; +} + +std::string UpdateLabelsetResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/UpdateServiceRequest.cc b/viapi-regen/src/model/UpdateServiceRequest.cc new file mode 100644 index 000000000..0cba33ff2 --- /dev/null +++ b/viapi-regen/src/model/UpdateServiceRequest.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 + +using AlibabaCloud::Viapi_regen::Model::UpdateServiceRequest; + +UpdateServiceRequest::UpdateServiceRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "UpdateService") { + setMethod(HttpRequest::Method::Post); +} + +UpdateServiceRequest::~UpdateServiceRequest() {} + +std::string UpdateServiceRequest::getDescription() const { + return description_; +} + +void UpdateServiceRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +long UpdateServiceRequest::getId() const { + return id_; +} + +void UpdateServiceRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + +std::string UpdateServiceRequest::getAuthorizationType() const { + return authorizationType_; +} + +void UpdateServiceRequest::setAuthorizationType(const std::string &authorizationType) { + authorizationType_ = authorizationType; + setBodyParameter(std::string("AuthorizationType"), authorizationType); +} + +std::string UpdateServiceRequest::getName() const { + return name_; +} + +void UpdateServiceRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); +} + +std::string UpdateServiceRequest::getAuthorizedAccount() const { + return authorizedAccount_; +} + +void UpdateServiceRequest::setAuthorizedAccount(const std::string &authorizedAccount) { + authorizedAccount_ = authorizedAccount; + setBodyParameter(std::string("AuthorizedAccount"), authorizedAccount); +} + diff --git a/viapi-regen/src/model/UpdateServiceResult.cc b/viapi-regen/src/model/UpdateServiceResult.cc new file mode 100644 index 000000000..5643ac2f8 --- /dev/null +++ b/viapi-regen/src/model/UpdateServiceResult.cc @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +UpdateServiceResult::UpdateServiceResult() : + ServiceResult() +{} + +UpdateServiceResult::UpdateServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateServiceResult::~UpdateServiceResult() +{} + +void UpdateServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["ServiceName"].isNull()) + data_.serviceName = dataNode["ServiceName"].asString(); + if(!dataNode["ServiceDescription"].isNull()) + data_.serviceDescription = dataNode["ServiceDescription"].asString(); + if(!dataNode["AuthorizationType"].isNull()) + data_.authorizationType = dataNode["AuthorizationType"].asString(); + if(!dataNode["AuthorizedAccount"].isNull()) + data_.authorizedAccount = dataNode["AuthorizedAccount"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string UpdateServiceResult::getMessage()const +{ + return message_; +} + +UpdateServiceResult::Data UpdateServiceResult::getData()const +{ + return data_; +} + +std::string UpdateServiceResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/UpdateTrainTaskRequest.cc b/viapi-regen/src/model/UpdateTrainTaskRequest.cc new file mode 100644 index 000000000..2813780f6 --- /dev/null +++ b/viapi-regen/src/model/UpdateTrainTaskRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::UpdateTrainTaskRequest; + +UpdateTrainTaskRequest::UpdateTrainTaskRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "UpdateTrainTask") { + setMethod(HttpRequest::Method::Post); +} + +UpdateTrainTaskRequest::~UpdateTrainTaskRequest() {} + +std::string UpdateTrainTaskRequest::getDescription() const { + return description_; +} + +void UpdateTrainTaskRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string UpdateTrainTaskRequest::getTrainMode() const { + return trainMode_; +} + +void UpdateTrainTaskRequest::setTrainMode(const std::string &trainMode) { + trainMode_ = trainMode; + setBodyParameter(std::string("TrainMode"), trainMode); +} + +long UpdateTrainTaskRequest::getId() const { + return id_; +} + +void UpdateTrainTaskRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + +long UpdateTrainTaskRequest::getPreTrainTaskId() const { + return preTrainTaskId_; +} + +void UpdateTrainTaskRequest::setPreTrainTaskId(long preTrainTaskId) { + preTrainTaskId_ = preTrainTaskId; + setBodyParameter(std::string("PreTrainTaskId"), std::to_string(preTrainTaskId)); +} + +bool UpdateTrainTaskRequest::getPreTrainTaskFlag() const { + return preTrainTaskFlag_; +} + +void UpdateTrainTaskRequest::setPreTrainTaskFlag(bool preTrainTaskFlag) { + preTrainTaskFlag_ = preTrainTaskFlag; + setBodyParameter(std::string("PreTrainTaskFlag"), preTrainTaskFlag ? "true" : "false"); +} + +std::string UpdateTrainTaskRequest::getAdvancedParameters() const { + return advancedParameters_; +} + +void UpdateTrainTaskRequest::setAdvancedParameters(const std::string &advancedParameters) { + advancedParameters_ = advancedParameters; + setBodyParameter(std::string("AdvancedParameters"), advancedParameters); +} + +long UpdateTrainTaskRequest::getLabelId() const { + return labelId_; +} + +void UpdateTrainTaskRequest::setLabelId(long labelId) { + labelId_ = labelId; + setBodyParameter(std::string("LabelId"), std::to_string(labelId)); +} + +std::string UpdateTrainTaskRequest::getName() const { + return name_; +} + +void UpdateTrainTaskRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); +} + +long UpdateTrainTaskRequest::getDatasetId() const { + return datasetId_; +} + +void UpdateTrainTaskRequest::setDatasetId(long datasetId) { + datasetId_ = datasetId; + setBodyParameter(std::string("DatasetId"), std::to_string(datasetId)); +} + diff --git a/viapi-regen/src/model/UpdateTrainTaskResult.cc b/viapi-regen/src/model/UpdateTrainTaskResult.cc new file mode 100644 index 000000000..733d37ece --- /dev/null +++ b/viapi-regen/src/model/UpdateTrainTaskResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +UpdateTrainTaskResult::UpdateTrainTaskResult() : + ServiceResult() +{} + +UpdateTrainTaskResult::UpdateTrainTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateTrainTaskResult::~UpdateTrainTaskResult() +{} + +void UpdateTrainTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["TaskName"].isNull()) + data_.taskName = dataNode["TaskName"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["DatasetId"].isNull()) + data_.datasetId = std::stol(dataNode["DatasetId"].asString()); + if(!dataNode["DatasetName"].isNull()) + data_.datasetName = dataNode["DatasetName"].asString(); + if(!dataNode["LabelId"].isNull()) + data_.labelId = std::stol(dataNode["LabelId"].asString()); + if(!dataNode["LabelName"].isNull()) + data_.labelName = dataNode["LabelName"].asString(); + if(!dataNode["TrainMode"].isNull()) + data_.trainMode = dataNode["TrainMode"].asString(); + if(!dataNode["AdvancedParameters"].isNull()) + data_.advancedParameters = dataNode["AdvancedParameters"].asString(); + if(!dataNode["TrainStatus"].isNull()) + data_.trainStatus = dataNode["TrainStatus"].asString(); + if(!dataNode["ModelId"].isNull()) + data_.modelId = std::stol(dataNode["ModelId"].asString()); + if(!dataNode["ModelEffect"].isNull()) + data_.modelEffect = dataNode["ModelEffect"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string UpdateTrainTaskResult::getMessage()const +{ + return message_; +} + +UpdateTrainTaskResult::Data UpdateTrainTaskResult::getData()const +{ + return data_; +} + +std::string UpdateTrainTaskResult::getCode()const +{ + return code_; +} + diff --git a/viapi-regen/src/model/UpdateWorkspaceRequest.cc b/viapi-regen/src/model/UpdateWorkspaceRequest.cc new file mode 100644 index 000000000..d24168bca --- /dev/null +++ b/viapi-regen/src/model/UpdateWorkspaceRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Viapi_regen::Model::UpdateWorkspaceRequest; + +UpdateWorkspaceRequest::UpdateWorkspaceRequest() + : RpcServiceRequest("viapi-regen", "2021-11-19", "UpdateWorkspace") { + setMethod(HttpRequest::Method::Post); +} + +UpdateWorkspaceRequest::~UpdateWorkspaceRequest() {} + +std::string UpdateWorkspaceRequest::getDescription() const { + return description_; +} + +void UpdateWorkspaceRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +long UpdateWorkspaceRequest::getId() const { + return id_; +} + +void UpdateWorkspaceRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + +std::string UpdateWorkspaceRequest::getName() const { + return name_; +} + +void UpdateWorkspaceRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); +} + diff --git a/viapi-regen/src/model/UpdateWorkspaceResult.cc b/viapi-regen/src/model/UpdateWorkspaceResult.cc new file mode 100644 index 000000000..c1030e9b6 --- /dev/null +++ b/viapi-regen/src/model/UpdateWorkspaceResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Viapi_regen; +using namespace AlibabaCloud::Viapi_regen::Model; + +UpdateWorkspaceResult::UpdateWorkspaceResult() : + ServiceResult() +{} + +UpdateWorkspaceResult::UpdateWorkspaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateWorkspaceResult::~UpdateWorkspaceResult() +{} + +void UpdateWorkspaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["Type"].isNull()) + data_.type = dataNode["Type"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string UpdateWorkspaceResult::getMessage()const +{ + return message_; +} + +UpdateWorkspaceResult::Data UpdateWorkspaceResult::getData()const +{ + return data_; +} + +std::string UpdateWorkspaceResult::getCode()const +{ + return code_; +} +