From b3758c18579af0ebc0a6dadc36e4768deb0002fa Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 18 Jul 2024 04:36:21 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION | 2 +- aicontent/CMakeLists.txt | 110 +++++++ .../alibabacloud/aicontent/AiContentClient.h | 102 ++++++ .../alibabacloud/aicontent/AiContentExport.h | 32 ++ ...nApiQueryAliyunConsoleServcieListRequest.h | 39 +++ ...enApiQueryAliyunConsoleServcieListResult.h | 82 +++++ ...ersonalizedtxt2imgAddInferenceJobRequest.h | 42 +++ ...Personalizedtxt2imgAddInferenceJobResult.h | 63 ++++ ...rsonalizedtxt2imgAddModelTrainJobRequest.h | 42 +++ ...ersonalizedtxt2imgAddModelTrainJobResult.h | 63 ++++ ...ersonalizedtxt2imgQueryImageAssetRequest.h | 51 +++ ...Personalizedtxt2imgQueryImageAssetResult.h | 49 +++ ...lizedtxt2imgQueryInferenceJobInfoRequest.h | 42 +++ ...alizedtxt2imgQueryInferenceJobInfoResult.h | 63 ++++ ...izedtxt2imgQueryModelTrainJobListRequest.h | 39 +++ ...lizedtxt2imgQueryModelTrainJobListResult.h | 82 +++++ ...lizedtxt2imgQueryModelTrainStatusRequest.h | 42 +++ ...alizedtxt2imgQueryModelTrainStatusResult.h | 63 ++++ aicontent/src/AiContentClient.cc | 305 ++++++++++++++++++ ...ApiQueryAliyunConsoleServcieListRequest.cc | 28 ++ ...nApiQueryAliyunConsoleServcieListResult.cc | 123 +++++++ ...rsonalizedtxt2imgAddInferenceJobRequest.cc | 37 +++ ...ersonalizedtxt2imgAddInferenceJobResult.cc | 80 +++++ ...sonalizedtxt2imgAddModelTrainJobRequest.cc | 37 +++ ...rsonalizedtxt2imgAddModelTrainJobResult.cc | 80 +++++ ...rsonalizedtxt2imgQueryImageAssetRequest.cc | 64 ++++ ...ersonalizedtxt2imgQueryImageAssetResult.cc | 44 +++ ...izedtxt2imgQueryInferenceJobInfoRequest.cc | 37 +++ ...lizedtxt2imgQueryInferenceJobInfoResult.cc | 80 +++++ ...zedtxt2imgQueryModelTrainJobListRequest.cc | 28 ++ ...izedtxt2imgQueryModelTrainJobListResult.cc | 123 +++++++ ...izedtxt2imgQueryModelTrainStatusRequest.cc | 37 +++ ...lizedtxt2imgQueryModelTrainStatusResult.cc | 80 +++++ 33 files changed, 2190 insertions(+), 1 deletion(-) create mode 100644 aicontent/CMakeLists.txt create mode 100644 aicontent/include/alibabacloud/aicontent/AiContentClient.h create mode 100644 aicontent/include/alibabacloud/aicontent/AiContentExport.h create mode 100644 aicontent/include/alibabacloud/aicontent/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest.h create mode 100644 aicontent/include/alibabacloud/aicontent/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult.h create mode 100644 aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgAddInferenceJobRequest.h create mode 100644 aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgAddInferenceJobResult.h create mode 100644 aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgAddModelTrainJobRequest.h create mode 100644 aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgAddModelTrainJobResult.h create mode 100644 aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryImageAssetRequest.h create mode 100644 aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryImageAssetResult.h create mode 100644 aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryInferenceJobInfoRequest.h create mode 100644 aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryInferenceJobInfoResult.h create mode 100644 aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainJobListRequest.h create mode 100644 aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainJobListResult.h create mode 100644 aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainStatusRequest.h create mode 100644 aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainStatusResult.h create mode 100644 aicontent/src/AiContentClient.cc create mode 100644 aicontent/src/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest.cc create mode 100644 aicontent/src/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult.cc create mode 100644 aicontent/src/model/Personalizedtxt2imgAddInferenceJobRequest.cc create mode 100644 aicontent/src/model/Personalizedtxt2imgAddInferenceJobResult.cc create mode 100644 aicontent/src/model/Personalizedtxt2imgAddModelTrainJobRequest.cc create mode 100644 aicontent/src/model/Personalizedtxt2imgAddModelTrainJobResult.cc create mode 100644 aicontent/src/model/Personalizedtxt2imgQueryImageAssetRequest.cc create mode 100644 aicontent/src/model/Personalizedtxt2imgQueryImageAssetResult.cc create mode 100644 aicontent/src/model/Personalizedtxt2imgQueryInferenceJobInfoRequest.cc create mode 100644 aicontent/src/model/Personalizedtxt2imgQueryInferenceJobInfoResult.cc create mode 100644 aicontent/src/model/Personalizedtxt2imgQueryModelTrainJobListRequest.cc create mode 100644 aicontent/src/model/Personalizedtxt2imgQueryModelTrainJobListResult.cc create mode 100644 aicontent/src/model/Personalizedtxt2imgQueryModelTrainStatusRequest.cc create mode 100644 aicontent/src/model/Personalizedtxt2imgQueryModelTrainStatusResult.cc diff --git a/VERSION b/VERSION index 2a1c937c8..1d8b459d8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1951 \ No newline at end of file +1.36.1952 \ No newline at end of file diff --git a/aicontent/CMakeLists.txt b/aicontent/CMakeLists.txt new file mode 100644 index 000000000..b7f0febac --- /dev/null +++ b/aicontent/CMakeLists.txt @@ -0,0 +1,110 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(aicontent_public_header + include/alibabacloud/aicontent/AiContentClient.h + include/alibabacloud/aicontent/AiContentExport.h ) + +set(aicontent_public_header_model + include/alibabacloud/aicontent/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest.h + include/alibabacloud/aicontent/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult.h + include/alibabacloud/aicontent/model/Personalizedtxt2imgAddInferenceJobRequest.h + include/alibabacloud/aicontent/model/Personalizedtxt2imgAddInferenceJobResult.h + include/alibabacloud/aicontent/model/Personalizedtxt2imgAddModelTrainJobRequest.h + include/alibabacloud/aicontent/model/Personalizedtxt2imgAddModelTrainJobResult.h + include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryImageAssetRequest.h + include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryImageAssetResult.h + include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryInferenceJobInfoRequest.h + include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryInferenceJobInfoResult.h + include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainJobListRequest.h + include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainJobListResult.h + include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainStatusRequest.h + include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainStatusResult.h ) + +set(aicontent_src + src/AiContentClient.cc + src/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest.cc + src/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult.cc + src/model/Personalizedtxt2imgAddInferenceJobRequest.cc + src/model/Personalizedtxt2imgAddInferenceJobResult.cc + src/model/Personalizedtxt2imgAddModelTrainJobRequest.cc + src/model/Personalizedtxt2imgAddModelTrainJobResult.cc + src/model/Personalizedtxt2imgQueryImageAssetRequest.cc + src/model/Personalizedtxt2imgQueryImageAssetResult.cc + src/model/Personalizedtxt2imgQueryInferenceJobInfoRequest.cc + src/model/Personalizedtxt2imgQueryInferenceJobInfoResult.cc + src/model/Personalizedtxt2imgQueryModelTrainJobListRequest.cc + src/model/Personalizedtxt2imgQueryModelTrainJobListResult.cc + src/model/Personalizedtxt2imgQueryModelTrainStatusRequest.cc + src/model/Personalizedtxt2imgQueryModelTrainStatusResult.cc ) + +add_library(aicontent ${LIB_TYPE} + ${aicontent_public_header} + ${aicontent_public_header_model} + ${aicontent_src}) + +set_target_properties(aicontent + 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}aicontent + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(aicontent + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_AICONTENT_LIBRARY) +endif() + +target_include_directories(aicontent + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(aicontent + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(aicontent + jsoncpp) + target_include_directories(aicontent + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(aicontent + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(aicontent + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(aicontent + PRIVATE /usr/include/jsoncpp) + target_link_libraries(aicontent + jsoncpp) +endif() + +install(FILES ${aicontent_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aicontent) +install(FILES ${aicontent_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aicontent/model) +install(TARGETS aicontent + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/aicontent/include/alibabacloud/aicontent/AiContentClient.h b/aicontent/include/alibabacloud/aicontent/AiContentClient.h new file mode 100644 index 000000000..9e24d388b --- /dev/null +++ b/aicontent/include/alibabacloud/aicontent/AiContentClient.h @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AICONTENT_AICONTENTCLIENT_H_ +#define ALIBABACLOUD_AICONTENT_AICONTENTCLIENT_H_ + +#include +#include +#include +#include +#include "AiContentExport.h" +#include "model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest.h" +#include "model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult.h" +#include "model/Personalizedtxt2imgAddInferenceJobRequest.h" +#include "model/Personalizedtxt2imgAddInferenceJobResult.h" +#include "model/Personalizedtxt2imgAddModelTrainJobRequest.h" +#include "model/Personalizedtxt2imgAddModelTrainJobResult.h" +#include "model/Personalizedtxt2imgQueryImageAssetRequest.h" +#include "model/Personalizedtxt2imgQueryImageAssetResult.h" +#include "model/Personalizedtxt2imgQueryInferenceJobInfoRequest.h" +#include "model/Personalizedtxt2imgQueryInferenceJobInfoResult.h" +#include "model/Personalizedtxt2imgQueryModelTrainJobListRequest.h" +#include "model/Personalizedtxt2imgQueryModelTrainJobListResult.h" +#include "model/Personalizedtxt2imgQueryModelTrainStatusRequest.h" +#include "model/Personalizedtxt2imgQueryModelTrainStatusResult.h" + + +namespace AlibabaCloud +{ + namespace AiContent + { + class ALIBABACLOUD_AICONTENT_EXPORT AiContentClient : public RoaServiceClient + { + public: + typedef Outcome AliyunConsoleOpenApiQueryAliyunConsoleServcieListOutcome; + typedef std::future AliyunConsoleOpenApiQueryAliyunConsoleServcieListOutcomeCallable; + typedef std::function&)> AliyunConsoleOpenApiQueryAliyunConsoleServcieListAsyncHandler; + typedef Outcome Personalizedtxt2imgAddInferenceJobOutcome; + typedef std::future Personalizedtxt2imgAddInferenceJobOutcomeCallable; + typedef std::function&)> Personalizedtxt2imgAddInferenceJobAsyncHandler; + typedef Outcome Personalizedtxt2imgAddModelTrainJobOutcome; + typedef std::future Personalizedtxt2imgAddModelTrainJobOutcomeCallable; + typedef std::function&)> Personalizedtxt2imgAddModelTrainJobAsyncHandler; + typedef Outcome Personalizedtxt2imgQueryImageAssetOutcome; + typedef std::future Personalizedtxt2imgQueryImageAssetOutcomeCallable; + typedef std::function&)> Personalizedtxt2imgQueryImageAssetAsyncHandler; + typedef Outcome Personalizedtxt2imgQueryInferenceJobInfoOutcome; + typedef std::future Personalizedtxt2imgQueryInferenceJobInfoOutcomeCallable; + typedef std::function&)> Personalizedtxt2imgQueryInferenceJobInfoAsyncHandler; + typedef Outcome Personalizedtxt2imgQueryModelTrainJobListOutcome; + typedef std::future Personalizedtxt2imgQueryModelTrainJobListOutcomeCallable; + typedef std::function&)> Personalizedtxt2imgQueryModelTrainJobListAsyncHandler; + typedef Outcome Personalizedtxt2imgQueryModelTrainStatusOutcome; + typedef std::future Personalizedtxt2imgQueryModelTrainStatusOutcomeCallable; + typedef std::function&)> Personalizedtxt2imgQueryModelTrainStatusAsyncHandler; + + AiContentClient(const Credentials &credentials, const ClientConfiguration &configuration); + AiContentClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + AiContentClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~AiContentClient(); + AliyunConsoleOpenApiQueryAliyunConsoleServcieListOutcome aliyunConsoleOpenApiQueryAliyunConsoleServcieList(const Model::AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest &request)const; + void aliyunConsoleOpenApiQueryAliyunConsoleServcieListAsync(const Model::AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest& request, const AliyunConsoleOpenApiQueryAliyunConsoleServcieListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AliyunConsoleOpenApiQueryAliyunConsoleServcieListOutcomeCallable aliyunConsoleOpenApiQueryAliyunConsoleServcieListCallable(const Model::AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest& request) const; + Personalizedtxt2imgAddInferenceJobOutcome personalizedtxt2imgAddInferenceJob(const Model::Personalizedtxt2imgAddInferenceJobRequest &request)const; + void personalizedtxt2imgAddInferenceJobAsync(const Model::Personalizedtxt2imgAddInferenceJobRequest& request, const Personalizedtxt2imgAddInferenceJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + Personalizedtxt2imgAddInferenceJobOutcomeCallable personalizedtxt2imgAddInferenceJobCallable(const Model::Personalizedtxt2imgAddInferenceJobRequest& request) const; + Personalizedtxt2imgAddModelTrainJobOutcome personalizedtxt2imgAddModelTrainJob(const Model::Personalizedtxt2imgAddModelTrainJobRequest &request)const; + void personalizedtxt2imgAddModelTrainJobAsync(const Model::Personalizedtxt2imgAddModelTrainJobRequest& request, const Personalizedtxt2imgAddModelTrainJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + Personalizedtxt2imgAddModelTrainJobOutcomeCallable personalizedtxt2imgAddModelTrainJobCallable(const Model::Personalizedtxt2imgAddModelTrainJobRequest& request) const; + Personalizedtxt2imgQueryImageAssetOutcome personalizedtxt2imgQueryImageAsset(const Model::Personalizedtxt2imgQueryImageAssetRequest &request)const; + void personalizedtxt2imgQueryImageAssetAsync(const Model::Personalizedtxt2imgQueryImageAssetRequest& request, const Personalizedtxt2imgQueryImageAssetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + Personalizedtxt2imgQueryImageAssetOutcomeCallable personalizedtxt2imgQueryImageAssetCallable(const Model::Personalizedtxt2imgQueryImageAssetRequest& request) const; + Personalizedtxt2imgQueryInferenceJobInfoOutcome personalizedtxt2imgQueryInferenceJobInfo(const Model::Personalizedtxt2imgQueryInferenceJobInfoRequest &request)const; + void personalizedtxt2imgQueryInferenceJobInfoAsync(const Model::Personalizedtxt2imgQueryInferenceJobInfoRequest& request, const Personalizedtxt2imgQueryInferenceJobInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + Personalizedtxt2imgQueryInferenceJobInfoOutcomeCallable personalizedtxt2imgQueryInferenceJobInfoCallable(const Model::Personalizedtxt2imgQueryInferenceJobInfoRequest& request) const; + Personalizedtxt2imgQueryModelTrainJobListOutcome personalizedtxt2imgQueryModelTrainJobList(const Model::Personalizedtxt2imgQueryModelTrainJobListRequest &request)const; + void personalizedtxt2imgQueryModelTrainJobListAsync(const Model::Personalizedtxt2imgQueryModelTrainJobListRequest& request, const Personalizedtxt2imgQueryModelTrainJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + Personalizedtxt2imgQueryModelTrainJobListOutcomeCallable personalizedtxt2imgQueryModelTrainJobListCallable(const Model::Personalizedtxt2imgQueryModelTrainJobListRequest& request) const; + Personalizedtxt2imgQueryModelTrainStatusOutcome personalizedtxt2imgQueryModelTrainStatus(const Model::Personalizedtxt2imgQueryModelTrainStatusRequest &request)const; + void personalizedtxt2imgQueryModelTrainStatusAsync(const Model::Personalizedtxt2imgQueryModelTrainStatusRequest& request, const Personalizedtxt2imgQueryModelTrainStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + Personalizedtxt2imgQueryModelTrainStatusOutcomeCallable personalizedtxt2imgQueryModelTrainStatusCallable(const Model::Personalizedtxt2imgQueryModelTrainStatusRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_AICONTENT_AICONTENTCLIENT_H_ diff --git a/aicontent/include/alibabacloud/aicontent/AiContentExport.h b/aicontent/include/alibabacloud/aicontent/AiContentExport.h new file mode 100644 index 000000000..955ad5195 --- /dev/null +++ b/aicontent/include/alibabacloud/aicontent/AiContentExport.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_AICONTENT_AICONTENTEXPORT_H_ +#define ALIBABACLOUD_AICONTENT_AICONTENTEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_AICONTENT_LIBRARY) +# define ALIBABACLOUD_AICONTENT_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_AICONTENT_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_AICONTENT_EXPORT +#endif + +#endif // !ALIBABACLOUD_AICONTENT_AICONTENTEXPORT_H_ \ No newline at end of file diff --git a/aicontent/include/alibabacloud/aicontent/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest.h b/aicontent/include/alibabacloud/aicontent/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest.h new file mode 100644 index 000000000..3b6f331ec --- /dev/null +++ b/aicontent/include/alibabacloud/aicontent/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest.h @@ -0,0 +1,39 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AICONTENT_MODEL_ALIYUNCONSOLEOPENAPIQUERYALIYUNCONSOLESERVCIELISTREQUEST_H_ +#define ALIBABACLOUD_AICONTENT_MODEL_ALIYUNCONSOLEOPENAPIQUERYALIYUNCONSOLESERVCIELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace AiContent { +namespace Model { +class ALIBABACLOUD_AICONTENT_EXPORT AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest : public RoaServiceRequest { +public: + AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest(); + ~AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest(); + +private: +}; +} // namespace Model +} // namespace AiContent +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_AICONTENT_MODEL_ALIYUNCONSOLEOPENAPIQUERYALIYUNCONSOLESERVCIELISTREQUEST_H_ diff --git a/aicontent/include/alibabacloud/aicontent/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult.h b/aicontent/include/alibabacloud/aicontent/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult.h new file mode 100644 index 000000000..c2bf0cbad --- /dev/null +++ b/aicontent/include/alibabacloud/aicontent/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult.h @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AICONTENT_MODEL_ALIYUNCONSOLEOPENAPIQUERYALIYUNCONSOLESERVCIELISTRESULT_H_ +#define ALIBABACLOUD_AICONTENT_MODEL_ALIYUNCONSOLEOPENAPIQUERYALIYUNCONSOLESERVCIELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace AiContent + { + namespace Model + { + class ALIBABACLOUD_AICONTENT_EXPORT AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult : public ServiceResult + { + public: + struct DataItem + { + struct InferenceJobListItem + { + std::string jobStatus; + double jobTrainProgress; + std::string createTime; + std::string id; + std::vector resultImageUrl; + std::string promptId; + std::string modelId; + }; + std::string jobStatus; + std::string objectType; + double jobTrainProgress; + std::string createTime; + std::vector imageUrl; + std::string id; + int inferenceImageCount; + std::vector inferenceJobList; + std::string modelId; + std::string name; + }; + + + AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult(); + explicit AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult(const std::string &payload); + ~AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult(); + std::vector getdata()const; + std::string getRequestId()const; + std::string getErrMessage()const; + bool getSuccess()const; + std::string getErrCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + std::string requestId_; + std::string errMessage_; + bool success_; + std::string errCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AICONTENT_MODEL_ALIYUNCONSOLEOPENAPIQUERYALIYUNCONSOLESERVCIELISTRESULT_H_ \ No newline at end of file diff --git a/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgAddInferenceJobRequest.h b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgAddInferenceJobRequest.h new file mode 100644 index 000000000..305d31b48 --- /dev/null +++ b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgAddInferenceJobRequest.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_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDINFERENCEJOBREQUEST_H_ +#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDINFERENCEJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace AiContent { +namespace Model { +class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgAddInferenceJobRequest : public RoaServiceRequest { +public: + Personalizedtxt2imgAddInferenceJobRequest(); + ~Personalizedtxt2imgAddInferenceJobRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace AiContent +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDINFERENCEJOBREQUEST_H_ diff --git a/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgAddInferenceJobResult.h b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgAddInferenceJobResult.h new file mode 100644 index 000000000..2ebb65b1f --- /dev/null +++ b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgAddInferenceJobResult.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_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDINFERENCEJOBRESULT_H_ +#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDINFERENCEJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace AiContent + { + namespace Model + { + class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgAddInferenceJobResult : public ServiceResult + { + public: + struct Data + { + std::string modelTrainStatus; + }; + + + Personalizedtxt2imgAddInferenceJobResult(); + explicit Personalizedtxt2imgAddInferenceJobResult(const std::string &payload); + ~Personalizedtxt2imgAddInferenceJobResult(); + std::string getRequestId()const; + Data getData()const; + std::string getErrMessage()const; + bool getSuccess()const; + std::string getErrCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Data data_; + std::string errMessage_; + bool success_; + std::string errCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDINFERENCEJOBRESULT_H_ \ No newline at end of file diff --git a/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgAddModelTrainJobRequest.h b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgAddModelTrainJobRequest.h new file mode 100644 index 000000000..08d85e0fd --- /dev/null +++ b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgAddModelTrainJobRequest.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_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDMODELTRAINJOBREQUEST_H_ +#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDMODELTRAINJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace AiContent { +namespace Model { +class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgAddModelTrainJobRequest : public RoaServiceRequest { +public: + Personalizedtxt2imgAddModelTrainJobRequest(); + ~Personalizedtxt2imgAddModelTrainJobRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace AiContent +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDMODELTRAINJOBREQUEST_H_ diff --git a/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgAddModelTrainJobResult.h b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgAddModelTrainJobResult.h new file mode 100644 index 000000000..71f2058a2 --- /dev/null +++ b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgAddModelTrainJobResult.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_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDMODELTRAINJOBRESULT_H_ +#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDMODELTRAINJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace AiContent + { + namespace Model + { + class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgAddModelTrainJobResult : public ServiceResult + { + public: + struct Data + { + std::string modelTrainStatus; + }; + + + Personalizedtxt2imgAddModelTrainJobResult(); + explicit Personalizedtxt2imgAddModelTrainJobResult(const std::string &payload); + ~Personalizedtxt2imgAddModelTrainJobResult(); + std::string getRequestId()const; + Data getData()const; + std::string getErrMessage()const; + bool getSuccess()const; + std::string getErrCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Data data_; + std::string errMessage_; + bool success_; + std::string errCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDMODELTRAINJOBRESULT_H_ \ No newline at end of file diff --git a/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryImageAssetRequest.h b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryImageAssetRequest.h new file mode 100644 index 000000000..09bc80bc4 --- /dev/null +++ b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryImageAssetRequest.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_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYIMAGEASSETREQUEST_H_ +#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYIMAGEASSETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace AiContent { +namespace Model { +class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgQueryImageAssetRequest : public RoaServiceRequest { +public: + Personalizedtxt2imgQueryImageAssetRequest(); + ~Personalizedtxt2imgQueryImageAssetRequest(); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getModelId() const; + void setModelId(const std::string &modelId); + std::string getEncodeFormat() const; + void setEncodeFormat(const std::string &encodeFormat); + std::string getPromptId() const; + void setPromptId(const std::string &promptId); + +private: + std::string imageId_; + std::string modelId_; + std::string encodeFormat_; + std::string promptId_; +}; +} // namespace Model +} // namespace AiContent +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYIMAGEASSETREQUEST_H_ diff --git a/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryImageAssetResult.h b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryImageAssetResult.h new file mode 100644 index 000000000..993dfa83c --- /dev/null +++ b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryImageAssetResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYIMAGEASSETRESULT_H_ +#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYIMAGEASSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace AiContent + { + namespace Model + { + class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgQueryImageAssetResult : public ServiceResult + { + public: + + + Personalizedtxt2imgQueryImageAssetResult(); + explicit Personalizedtxt2imgQueryImageAssetResult(const std::string &payload); + ~Personalizedtxt2imgQueryImageAssetResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYIMAGEASSETRESULT_H_ \ No newline at end of file diff --git a/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryInferenceJobInfoRequest.h b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryInferenceJobInfoRequest.h new file mode 100644 index 000000000..5812e25bd --- /dev/null +++ b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryInferenceJobInfoRequest.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_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYINFERENCEJOBINFOREQUEST_H_ +#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYINFERENCEJOBINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace AiContent { +namespace Model { +class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgQueryInferenceJobInfoRequest : public RoaServiceRequest { +public: + Personalizedtxt2imgQueryInferenceJobInfoRequest(); + ~Personalizedtxt2imgQueryInferenceJobInfoRequest(); + std::string getInferenceJobId() const; + void setInferenceJobId(const std::string &inferenceJobId); + +private: + std::string inferenceJobId_; +}; +} // namespace Model +} // namespace AiContent +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYINFERENCEJOBINFOREQUEST_H_ diff --git a/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryInferenceJobInfoResult.h b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryInferenceJobInfoResult.h new file mode 100644 index 000000000..2bacee6d0 --- /dev/null +++ b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryInferenceJobInfoResult.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_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYINFERENCEJOBINFORESULT_H_ +#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYINFERENCEJOBINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace AiContent + { + namespace Model + { + class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgQueryInferenceJobInfoResult : public ServiceResult + { + public: + struct Data + { + std::string modelTrainStatus; + }; + + + Personalizedtxt2imgQueryInferenceJobInfoResult(); + explicit Personalizedtxt2imgQueryInferenceJobInfoResult(const std::string &payload); + ~Personalizedtxt2imgQueryInferenceJobInfoResult(); + std::string getRequestId()const; + Data getData()const; + std::string getErrMessage()const; + bool getSuccess()const; + std::string getErrCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Data data_; + std::string errMessage_; + bool success_; + std::string errCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYINFERENCEJOBINFORESULT_H_ \ No newline at end of file diff --git a/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainJobListRequest.h b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainJobListRequest.h new file mode 100644 index 000000000..2b3735b5d --- /dev/null +++ b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainJobListRequest.h @@ -0,0 +1,39 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINJOBLISTREQUEST_H_ +#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace AiContent { +namespace Model { +class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgQueryModelTrainJobListRequest : public RoaServiceRequest { +public: + Personalizedtxt2imgQueryModelTrainJobListRequest(); + ~Personalizedtxt2imgQueryModelTrainJobListRequest(); + +private: +}; +} // namespace Model +} // namespace AiContent +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINJOBLISTREQUEST_H_ diff --git a/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainJobListResult.h b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainJobListResult.h new file mode 100644 index 000000000..1776d4ded --- /dev/null +++ b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainJobListResult.h @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINJOBLISTRESULT_H_ +#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINJOBLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace AiContent + { + namespace Model + { + class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgQueryModelTrainJobListResult : public ServiceResult + { + public: + struct DataItem + { + struct InferenceJobListItem + { + std::string jobStatus; + double jobTrainProgress; + std::string createTime; + std::string id; + std::vector resultImageUrl; + std::string promptId; + std::string modelId; + }; + std::string jobStatus; + std::string objectType; + double jobTrainProgress; + std::string createTime; + std::vector imageUrl; + std::string id; + int inferenceImageCount; + std::vector inferenceJobList; + std::string modelId; + std::string name; + }; + + + Personalizedtxt2imgQueryModelTrainJobListResult(); + explicit Personalizedtxt2imgQueryModelTrainJobListResult(const std::string &payload); + ~Personalizedtxt2imgQueryModelTrainJobListResult(); + std::vector getdata()const; + std::string getRequestId()const; + std::string getErrMessage()const; + bool getSuccess()const; + std::string getErrCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + std::string requestId_; + std::string errMessage_; + bool success_; + std::string errCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINJOBLISTRESULT_H_ \ No newline at end of file diff --git a/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainStatusRequest.h b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainStatusRequest.h new file mode 100644 index 000000000..6357c700b --- /dev/null +++ b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainStatusRequest.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_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINSTATUSREQUEST_H_ +#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace AiContent { +namespace Model { +class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgQueryModelTrainStatusRequest : public RoaServiceRequest { +public: + Personalizedtxt2imgQueryModelTrainStatusRequest(); + ~Personalizedtxt2imgQueryModelTrainStatusRequest(); + std::string getModelId() const; + void setModelId(const std::string &modelId); + +private: + std::string modelId_; +}; +} // namespace Model +} // namespace AiContent +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINSTATUSREQUEST_H_ diff --git a/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainStatusResult.h b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainStatusResult.h new file mode 100644 index 000000000..c936ea875 --- /dev/null +++ b/aicontent/include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainStatusResult.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_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINSTATUSRESULT_H_ +#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace AiContent + { + namespace Model + { + class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgQueryModelTrainStatusResult : public ServiceResult + { + public: + struct Data + { + std::string modelTrainStatus; + }; + + + Personalizedtxt2imgQueryModelTrainStatusResult(); + explicit Personalizedtxt2imgQueryModelTrainStatusResult(const std::string &payload); + ~Personalizedtxt2imgQueryModelTrainStatusResult(); + std::string getRequestId()const; + Data getData()const; + std::string getErrMessage()const; + bool getSuccess()const; + std::string getErrCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Data data_; + std::string errMessage_; + bool success_; + std::string errCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINSTATUSRESULT_H_ \ No newline at end of file diff --git a/aicontent/src/AiContentClient.cc b/aicontent/src/AiContentClient.cc new file mode 100644 index 000000000..5fe266bd6 --- /dev/null +++ b/aicontent/src/AiContentClient.cc @@ -0,0 +1,305 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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::AiContent; +using namespace AlibabaCloud::AiContent::Model; + +namespace +{ + const std::string SERVICE_NAME = "AiContent"; +} + +AiContentClient::AiContentClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RoaServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +AiContentClient::AiContentClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +AiContentClient::AiContentClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RoaServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +AiContentClient::~AiContentClient() +{} + +AiContentClient::AliyunConsoleOpenApiQueryAliyunConsoleServcieListOutcome AiContentClient::aliyunConsoleOpenApiQueryAliyunConsoleServcieList(const AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AliyunConsoleOpenApiQueryAliyunConsoleServcieListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AliyunConsoleOpenApiQueryAliyunConsoleServcieListOutcome(AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult(outcome.result())); + else + return AliyunConsoleOpenApiQueryAliyunConsoleServcieListOutcome(outcome.error()); +} + +void AiContentClient::aliyunConsoleOpenApiQueryAliyunConsoleServcieListAsync(const AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest& request, const AliyunConsoleOpenApiQueryAliyunConsoleServcieListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, aliyunConsoleOpenApiQueryAliyunConsoleServcieList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AiContentClient::AliyunConsoleOpenApiQueryAliyunConsoleServcieListOutcomeCallable AiContentClient::aliyunConsoleOpenApiQueryAliyunConsoleServcieListCallable(const AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->aliyunConsoleOpenApiQueryAliyunConsoleServcieList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AiContentClient::Personalizedtxt2imgAddInferenceJobOutcome AiContentClient::personalizedtxt2imgAddInferenceJob(const Personalizedtxt2imgAddInferenceJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return Personalizedtxt2imgAddInferenceJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return Personalizedtxt2imgAddInferenceJobOutcome(Personalizedtxt2imgAddInferenceJobResult(outcome.result())); + else + return Personalizedtxt2imgAddInferenceJobOutcome(outcome.error()); +} + +void AiContentClient::personalizedtxt2imgAddInferenceJobAsync(const Personalizedtxt2imgAddInferenceJobRequest& request, const Personalizedtxt2imgAddInferenceJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, personalizedtxt2imgAddInferenceJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AiContentClient::Personalizedtxt2imgAddInferenceJobOutcomeCallable AiContentClient::personalizedtxt2imgAddInferenceJobCallable(const Personalizedtxt2imgAddInferenceJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->personalizedtxt2imgAddInferenceJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AiContentClient::Personalizedtxt2imgAddModelTrainJobOutcome AiContentClient::personalizedtxt2imgAddModelTrainJob(const Personalizedtxt2imgAddModelTrainJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return Personalizedtxt2imgAddModelTrainJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return Personalizedtxt2imgAddModelTrainJobOutcome(Personalizedtxt2imgAddModelTrainJobResult(outcome.result())); + else + return Personalizedtxt2imgAddModelTrainJobOutcome(outcome.error()); +} + +void AiContentClient::personalizedtxt2imgAddModelTrainJobAsync(const Personalizedtxt2imgAddModelTrainJobRequest& request, const Personalizedtxt2imgAddModelTrainJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, personalizedtxt2imgAddModelTrainJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AiContentClient::Personalizedtxt2imgAddModelTrainJobOutcomeCallable AiContentClient::personalizedtxt2imgAddModelTrainJobCallable(const Personalizedtxt2imgAddModelTrainJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->personalizedtxt2imgAddModelTrainJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AiContentClient::Personalizedtxt2imgQueryImageAssetOutcome AiContentClient::personalizedtxt2imgQueryImageAsset(const Personalizedtxt2imgQueryImageAssetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return Personalizedtxt2imgQueryImageAssetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return Personalizedtxt2imgQueryImageAssetOutcome(Personalizedtxt2imgQueryImageAssetResult(outcome.result())); + else + return Personalizedtxt2imgQueryImageAssetOutcome(outcome.error()); +} + +void AiContentClient::personalizedtxt2imgQueryImageAssetAsync(const Personalizedtxt2imgQueryImageAssetRequest& request, const Personalizedtxt2imgQueryImageAssetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, personalizedtxt2imgQueryImageAsset(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AiContentClient::Personalizedtxt2imgQueryImageAssetOutcomeCallable AiContentClient::personalizedtxt2imgQueryImageAssetCallable(const Personalizedtxt2imgQueryImageAssetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->personalizedtxt2imgQueryImageAsset(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AiContentClient::Personalizedtxt2imgQueryInferenceJobInfoOutcome AiContentClient::personalizedtxt2imgQueryInferenceJobInfo(const Personalizedtxt2imgQueryInferenceJobInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return Personalizedtxt2imgQueryInferenceJobInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return Personalizedtxt2imgQueryInferenceJobInfoOutcome(Personalizedtxt2imgQueryInferenceJobInfoResult(outcome.result())); + else + return Personalizedtxt2imgQueryInferenceJobInfoOutcome(outcome.error()); +} + +void AiContentClient::personalizedtxt2imgQueryInferenceJobInfoAsync(const Personalizedtxt2imgQueryInferenceJobInfoRequest& request, const Personalizedtxt2imgQueryInferenceJobInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, personalizedtxt2imgQueryInferenceJobInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AiContentClient::Personalizedtxt2imgQueryInferenceJobInfoOutcomeCallable AiContentClient::personalizedtxt2imgQueryInferenceJobInfoCallable(const Personalizedtxt2imgQueryInferenceJobInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->personalizedtxt2imgQueryInferenceJobInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AiContentClient::Personalizedtxt2imgQueryModelTrainJobListOutcome AiContentClient::personalizedtxt2imgQueryModelTrainJobList(const Personalizedtxt2imgQueryModelTrainJobListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return Personalizedtxt2imgQueryModelTrainJobListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return Personalizedtxt2imgQueryModelTrainJobListOutcome(Personalizedtxt2imgQueryModelTrainJobListResult(outcome.result())); + else + return Personalizedtxt2imgQueryModelTrainJobListOutcome(outcome.error()); +} + +void AiContentClient::personalizedtxt2imgQueryModelTrainJobListAsync(const Personalizedtxt2imgQueryModelTrainJobListRequest& request, const Personalizedtxt2imgQueryModelTrainJobListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, personalizedtxt2imgQueryModelTrainJobList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AiContentClient::Personalizedtxt2imgQueryModelTrainJobListOutcomeCallable AiContentClient::personalizedtxt2imgQueryModelTrainJobListCallable(const Personalizedtxt2imgQueryModelTrainJobListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->personalizedtxt2imgQueryModelTrainJobList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AiContentClient::Personalizedtxt2imgQueryModelTrainStatusOutcome AiContentClient::personalizedtxt2imgQueryModelTrainStatus(const Personalizedtxt2imgQueryModelTrainStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return Personalizedtxt2imgQueryModelTrainStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return Personalizedtxt2imgQueryModelTrainStatusOutcome(Personalizedtxt2imgQueryModelTrainStatusResult(outcome.result())); + else + return Personalizedtxt2imgQueryModelTrainStatusOutcome(outcome.error()); +} + +void AiContentClient::personalizedtxt2imgQueryModelTrainStatusAsync(const Personalizedtxt2imgQueryModelTrainStatusRequest& request, const Personalizedtxt2imgQueryModelTrainStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, personalizedtxt2imgQueryModelTrainStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AiContentClient::Personalizedtxt2imgQueryModelTrainStatusOutcomeCallable AiContentClient::personalizedtxt2imgQueryModelTrainStatusCallable(const Personalizedtxt2imgQueryModelTrainStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->personalizedtxt2imgQueryModelTrainStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/aicontent/src/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest.cc b/aicontent/src/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest.cc new file mode 100644 index 000000000..abe7b2a1e --- /dev/null +++ b/aicontent/src/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest.cc @@ -0,0 +1,28 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::AiContent::Model::AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest; + +AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest::AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest() + : RoaServiceRequest("aicontent", "20240611") { + setResourcePath("/api/v1/aliyunconsole/queryAliyunConsoleServcieList"}; + setMethod(HttpRequest::Method::Get); +} + +AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest::~AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest() {} + diff --git a/aicontent/src/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult.cc b/aicontent/src/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult.cc new file mode 100644 index 000000000..a77d9b687 --- /dev/null +++ b/aicontent/src/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult.cc @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::AiContent; +using namespace AlibabaCloud::AiContent::Model; + +AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult::AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult() : + ServiceResult() +{} + +AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult::AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult::~AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult() +{} + +void AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto alldataNode = value["data"]["dataItem"]; + for (auto valuedatadataItem : alldataNode) + { + DataItem dataObject; + if(!valuedatadataItem["id"].isNull()) + dataObject.id = valuedatadataItem["id"].asString(); + if(!valuedatadataItem["modelId"].isNull()) + dataObject.modelId = valuedatadataItem["modelId"].asString(); + if(!valuedatadataItem["name"].isNull()) + dataObject.name = valuedatadataItem["name"].asString(); + if(!valuedatadataItem["objectType"].isNull()) + dataObject.objectType = valuedatadataItem["objectType"].asString(); + if(!valuedatadataItem["jobStatus"].isNull()) + dataObject.jobStatus = valuedatadataItem["jobStatus"].asString(); + if(!valuedatadataItem["jobTrainProgress"].isNull()) + dataObject.jobTrainProgress = valuedatadataItem["jobTrainProgress"].asString(); + if(!valuedatadataItem["inferenceImageCount"].isNull()) + dataObject.inferenceImageCount = std::stoi(valuedatadataItem["inferenceImageCount"].asString()); + if(!valuedatadataItem["createTime"].isNull()) + dataObject.createTime = valuedatadataItem["createTime"].asString(); + auto allinferenceJobListNode = valuedatadataItem["inferenceJobList"]["inferenceJobListItem"]; + for (auto valuedatadataIteminferenceJobListinferenceJobListItem : allinferenceJobListNode) + { + DataItem::InferenceJobListItem inferenceJobListObject; + if(!valuedatadataIteminferenceJobListinferenceJobListItem["id"].isNull()) + inferenceJobListObject.id = valuedatadataIteminferenceJobListinferenceJobListItem["id"].asString(); + if(!valuedatadataIteminferenceJobListinferenceJobListItem["promptId"].isNull()) + inferenceJobListObject.promptId = valuedatadataIteminferenceJobListinferenceJobListItem["promptId"].asString(); + if(!valuedatadataIteminferenceJobListinferenceJobListItem["modelId"].isNull()) + inferenceJobListObject.modelId = valuedatadataIteminferenceJobListinferenceJobListItem["modelId"].asString(); + if(!valuedatadataIteminferenceJobListinferenceJobListItem["jobStatus"].isNull()) + inferenceJobListObject.jobStatus = valuedatadataIteminferenceJobListinferenceJobListItem["jobStatus"].asString(); + if(!valuedatadataIteminferenceJobListinferenceJobListItem["jobTrainProgress"].isNull()) + inferenceJobListObject.jobTrainProgress = valuedatadataIteminferenceJobListinferenceJobListItem["jobTrainProgress"].asString(); + if(!valuedatadataIteminferenceJobListinferenceJobListItem["createTime"].isNull()) + inferenceJobListObject.createTime = valuedatadataIteminferenceJobListinferenceJobListItem["createTime"].asString(); + auto allResultImageUrl = value["resultImageUrl"]["resultImageUrl"]; + for (auto value : allResultImageUrl) + inferenceJobListObject.resultImageUrl.push_back(value.asString()); + dataObject.inferenceJobList.push_back(inferenceJobListObject); + } + auto allImageUrl = value["imageUrl"]["imageUrl"]; + for (auto value : allImageUrl) + dataObject.imageUrl.push_back(value.asString()); + data_.push_back(dataObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errCode"].isNull()) + errCode_ = value["errCode"].asString(); + if(!value["errMessage"].isNull()) + errMessage_ = value["errMessage"].asString(); + +} + +std::vector AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult::getdata()const +{ + return data_; +} + +std::string AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult::getRequestId()const +{ + return requestId_; +} + +std::string AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult::getErrMessage()const +{ + return errMessage_; +} + +bool AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult::getSuccess()const +{ + return success_; +} + +std::string AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult::getErrCode()const +{ + return errCode_; +} + diff --git a/aicontent/src/model/Personalizedtxt2imgAddInferenceJobRequest.cc b/aicontent/src/model/Personalizedtxt2imgAddInferenceJobRequest.cc new file mode 100644 index 000000000..3afc61e4e --- /dev/null +++ b/aicontent/src/model/Personalizedtxt2imgAddInferenceJobRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::AiContent::Model::Personalizedtxt2imgAddInferenceJobRequest; + +Personalizedtxt2imgAddInferenceJobRequest::Personalizedtxt2imgAddInferenceJobRequest() + : RoaServiceRequest("aicontent", "20240611") { + setResourcePath("/api/v1/personalizedtxt2img/addInferenceJob"}; + setMethod(HttpRequest::Method::Post); +} + +Personalizedtxt2imgAddInferenceJobRequest::~Personalizedtxt2imgAddInferenceJobRequest() {} + +std::string Personalizedtxt2imgAddInferenceJobRequest::getBody() const { + return body_; +} + +void Personalizedtxt2imgAddInferenceJobRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/aicontent/src/model/Personalizedtxt2imgAddInferenceJobResult.cc b/aicontent/src/model/Personalizedtxt2imgAddInferenceJobResult.cc new file mode 100644 index 000000000..57f3cf406 --- /dev/null +++ b/aicontent/src/model/Personalizedtxt2imgAddInferenceJobResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::AiContent; +using namespace AlibabaCloud::AiContent::Model; + +Personalizedtxt2imgAddInferenceJobResult::Personalizedtxt2imgAddInferenceJobResult() : + ServiceResult() +{} + +Personalizedtxt2imgAddInferenceJobResult::Personalizedtxt2imgAddInferenceJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +Personalizedtxt2imgAddInferenceJobResult::~Personalizedtxt2imgAddInferenceJobResult() +{} + +void Personalizedtxt2imgAddInferenceJobResult::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["modelTrainStatus"].isNull()) + data_.modelTrainStatus = dataNode["modelTrainStatus"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errCode"].isNull()) + errCode_ = value["errCode"].asString(); + if(!value["errMessage"].isNull()) + errMessage_ = value["errMessage"].asString(); + +} + +std::string Personalizedtxt2imgAddInferenceJobResult::getRequestId()const +{ + return requestId_; +} + +Personalizedtxt2imgAddInferenceJobResult::Data Personalizedtxt2imgAddInferenceJobResult::getData()const +{ + return data_; +} + +std::string Personalizedtxt2imgAddInferenceJobResult::getErrMessage()const +{ + return errMessage_; +} + +bool Personalizedtxt2imgAddInferenceJobResult::getSuccess()const +{ + return success_; +} + +std::string Personalizedtxt2imgAddInferenceJobResult::getErrCode()const +{ + return errCode_; +} + diff --git a/aicontent/src/model/Personalizedtxt2imgAddModelTrainJobRequest.cc b/aicontent/src/model/Personalizedtxt2imgAddModelTrainJobRequest.cc new file mode 100644 index 000000000..9a78fb195 --- /dev/null +++ b/aicontent/src/model/Personalizedtxt2imgAddModelTrainJobRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::AiContent::Model::Personalizedtxt2imgAddModelTrainJobRequest; + +Personalizedtxt2imgAddModelTrainJobRequest::Personalizedtxt2imgAddModelTrainJobRequest() + : RoaServiceRequest("aicontent", "20240611") { + setResourcePath("/api/v1/personalizedtxt2img/addModelTrainJob"}; + setMethod(HttpRequest::Method::Post); +} + +Personalizedtxt2imgAddModelTrainJobRequest::~Personalizedtxt2imgAddModelTrainJobRequest() {} + +std::string Personalizedtxt2imgAddModelTrainJobRequest::getBody() const { + return body_; +} + +void Personalizedtxt2imgAddModelTrainJobRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/aicontent/src/model/Personalizedtxt2imgAddModelTrainJobResult.cc b/aicontent/src/model/Personalizedtxt2imgAddModelTrainJobResult.cc new file mode 100644 index 000000000..9f6578f26 --- /dev/null +++ b/aicontent/src/model/Personalizedtxt2imgAddModelTrainJobResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::AiContent; +using namespace AlibabaCloud::AiContent::Model; + +Personalizedtxt2imgAddModelTrainJobResult::Personalizedtxt2imgAddModelTrainJobResult() : + ServiceResult() +{} + +Personalizedtxt2imgAddModelTrainJobResult::Personalizedtxt2imgAddModelTrainJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +Personalizedtxt2imgAddModelTrainJobResult::~Personalizedtxt2imgAddModelTrainJobResult() +{} + +void Personalizedtxt2imgAddModelTrainJobResult::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["modelTrainStatus"].isNull()) + data_.modelTrainStatus = dataNode["modelTrainStatus"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errCode"].isNull()) + errCode_ = value["errCode"].asString(); + if(!value["errMessage"].isNull()) + errMessage_ = value["errMessage"].asString(); + +} + +std::string Personalizedtxt2imgAddModelTrainJobResult::getRequestId()const +{ + return requestId_; +} + +Personalizedtxt2imgAddModelTrainJobResult::Data Personalizedtxt2imgAddModelTrainJobResult::getData()const +{ + return data_; +} + +std::string Personalizedtxt2imgAddModelTrainJobResult::getErrMessage()const +{ + return errMessage_; +} + +bool Personalizedtxt2imgAddModelTrainJobResult::getSuccess()const +{ + return success_; +} + +std::string Personalizedtxt2imgAddModelTrainJobResult::getErrCode()const +{ + return errCode_; +} + diff --git a/aicontent/src/model/Personalizedtxt2imgQueryImageAssetRequest.cc b/aicontent/src/model/Personalizedtxt2imgQueryImageAssetRequest.cc new file mode 100644 index 000000000..54259a6a4 --- /dev/null +++ b/aicontent/src/model/Personalizedtxt2imgQueryImageAssetRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::AiContent::Model::Personalizedtxt2imgQueryImageAssetRequest; + +Personalizedtxt2imgQueryImageAssetRequest::Personalizedtxt2imgQueryImageAssetRequest() + : RoaServiceRequest("aicontent", "20240611") { + setResourcePath("/api/v1/personalizedtxt2img/queryImageAsset"}; + setMethod(HttpRequest::Method::Get); +} + +Personalizedtxt2imgQueryImageAssetRequest::~Personalizedtxt2imgQueryImageAssetRequest() {} + +std::string Personalizedtxt2imgQueryImageAssetRequest::getImageId() const { + return imageId_; +} + +void Personalizedtxt2imgQueryImageAssetRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("imageId"), imageId); +} + +std::string Personalizedtxt2imgQueryImageAssetRequest::getModelId() const { + return modelId_; +} + +void Personalizedtxt2imgQueryImageAssetRequest::setModelId(const std::string &modelId) { + modelId_ = modelId; + setParameter(std::string("modelId"), modelId); +} + +std::string Personalizedtxt2imgQueryImageAssetRequest::getEncodeFormat() const { + return encodeFormat_; +} + +void Personalizedtxt2imgQueryImageAssetRequest::setEncodeFormat(const std::string &encodeFormat) { + encodeFormat_ = encodeFormat; + setParameter(std::string("encodeFormat"), encodeFormat); +} + +std::string Personalizedtxt2imgQueryImageAssetRequest::getPromptId() const { + return promptId_; +} + +void Personalizedtxt2imgQueryImageAssetRequest::setPromptId(const std::string &promptId) { + promptId_ = promptId; + setParameter(std::string("promptId"), promptId); +} + diff --git a/aicontent/src/model/Personalizedtxt2imgQueryImageAssetResult.cc b/aicontent/src/model/Personalizedtxt2imgQueryImageAssetResult.cc new file mode 100644 index 000000000..2ff680b3d --- /dev/null +++ b/aicontent/src/model/Personalizedtxt2imgQueryImageAssetResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::AiContent; +using namespace AlibabaCloud::AiContent::Model; + +Personalizedtxt2imgQueryImageAssetResult::Personalizedtxt2imgQueryImageAssetResult() : + ServiceResult() +{} + +Personalizedtxt2imgQueryImageAssetResult::Personalizedtxt2imgQueryImageAssetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +Personalizedtxt2imgQueryImageAssetResult::~Personalizedtxt2imgQueryImageAssetResult() +{} + +void Personalizedtxt2imgQueryImageAssetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/aicontent/src/model/Personalizedtxt2imgQueryInferenceJobInfoRequest.cc b/aicontent/src/model/Personalizedtxt2imgQueryInferenceJobInfoRequest.cc new file mode 100644 index 000000000..84d162753 --- /dev/null +++ b/aicontent/src/model/Personalizedtxt2imgQueryInferenceJobInfoRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::AiContent::Model::Personalizedtxt2imgQueryInferenceJobInfoRequest; + +Personalizedtxt2imgQueryInferenceJobInfoRequest::Personalizedtxt2imgQueryInferenceJobInfoRequest() + : RoaServiceRequest("aicontent", "20240611") { + setResourcePath("/api/v1/personalizedtxt2img/queryInferenceJobInfo"}; + setMethod(HttpRequest::Method::Get); +} + +Personalizedtxt2imgQueryInferenceJobInfoRequest::~Personalizedtxt2imgQueryInferenceJobInfoRequest() {} + +std::string Personalizedtxt2imgQueryInferenceJobInfoRequest::getInferenceJobId() const { + return inferenceJobId_; +} + +void Personalizedtxt2imgQueryInferenceJobInfoRequest::setInferenceJobId(const std::string &inferenceJobId) { + inferenceJobId_ = inferenceJobId; + setParameter(std::string("inferenceJobId"), inferenceJobId); +} + diff --git a/aicontent/src/model/Personalizedtxt2imgQueryInferenceJobInfoResult.cc b/aicontent/src/model/Personalizedtxt2imgQueryInferenceJobInfoResult.cc new file mode 100644 index 000000000..0b8a87c72 --- /dev/null +++ b/aicontent/src/model/Personalizedtxt2imgQueryInferenceJobInfoResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::AiContent; +using namespace AlibabaCloud::AiContent::Model; + +Personalizedtxt2imgQueryInferenceJobInfoResult::Personalizedtxt2imgQueryInferenceJobInfoResult() : + ServiceResult() +{} + +Personalizedtxt2imgQueryInferenceJobInfoResult::Personalizedtxt2imgQueryInferenceJobInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +Personalizedtxt2imgQueryInferenceJobInfoResult::~Personalizedtxt2imgQueryInferenceJobInfoResult() +{} + +void Personalizedtxt2imgQueryInferenceJobInfoResult::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["modelTrainStatus"].isNull()) + data_.modelTrainStatus = dataNode["modelTrainStatus"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errCode"].isNull()) + errCode_ = value["errCode"].asString(); + if(!value["errMessage"].isNull()) + errMessage_ = value["errMessage"].asString(); + +} + +std::string Personalizedtxt2imgQueryInferenceJobInfoResult::getRequestId()const +{ + return requestId_; +} + +Personalizedtxt2imgQueryInferenceJobInfoResult::Data Personalizedtxt2imgQueryInferenceJobInfoResult::getData()const +{ + return data_; +} + +std::string Personalizedtxt2imgQueryInferenceJobInfoResult::getErrMessage()const +{ + return errMessage_; +} + +bool Personalizedtxt2imgQueryInferenceJobInfoResult::getSuccess()const +{ + return success_; +} + +std::string Personalizedtxt2imgQueryInferenceJobInfoResult::getErrCode()const +{ + return errCode_; +} + diff --git a/aicontent/src/model/Personalizedtxt2imgQueryModelTrainJobListRequest.cc b/aicontent/src/model/Personalizedtxt2imgQueryModelTrainJobListRequest.cc new file mode 100644 index 000000000..6d3f9b6df --- /dev/null +++ b/aicontent/src/model/Personalizedtxt2imgQueryModelTrainJobListRequest.cc @@ -0,0 +1,28 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::AiContent::Model::Personalizedtxt2imgQueryModelTrainJobListRequest; + +Personalizedtxt2imgQueryModelTrainJobListRequest::Personalizedtxt2imgQueryModelTrainJobListRequest() + : RoaServiceRequest("aicontent", "20240611") { + setResourcePath("/api/v1/personalizedtxt2img/queryModelTrainJobList"}; + setMethod(HttpRequest::Method::Get); +} + +Personalizedtxt2imgQueryModelTrainJobListRequest::~Personalizedtxt2imgQueryModelTrainJobListRequest() {} + diff --git a/aicontent/src/model/Personalizedtxt2imgQueryModelTrainJobListResult.cc b/aicontent/src/model/Personalizedtxt2imgQueryModelTrainJobListResult.cc new file mode 100644 index 000000000..646a555c4 --- /dev/null +++ b/aicontent/src/model/Personalizedtxt2imgQueryModelTrainJobListResult.cc @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::AiContent; +using namespace AlibabaCloud::AiContent::Model; + +Personalizedtxt2imgQueryModelTrainJobListResult::Personalizedtxt2imgQueryModelTrainJobListResult() : + ServiceResult() +{} + +Personalizedtxt2imgQueryModelTrainJobListResult::Personalizedtxt2imgQueryModelTrainJobListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +Personalizedtxt2imgQueryModelTrainJobListResult::~Personalizedtxt2imgQueryModelTrainJobListResult() +{} + +void Personalizedtxt2imgQueryModelTrainJobListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto alldataNode = value["data"]["dataItem"]; + for (auto valuedatadataItem : alldataNode) + { + DataItem dataObject; + if(!valuedatadataItem["id"].isNull()) + dataObject.id = valuedatadataItem["id"].asString(); + if(!valuedatadataItem["modelId"].isNull()) + dataObject.modelId = valuedatadataItem["modelId"].asString(); + if(!valuedatadataItem["name"].isNull()) + dataObject.name = valuedatadataItem["name"].asString(); + if(!valuedatadataItem["objectType"].isNull()) + dataObject.objectType = valuedatadataItem["objectType"].asString(); + if(!valuedatadataItem["jobStatus"].isNull()) + dataObject.jobStatus = valuedatadataItem["jobStatus"].asString(); + if(!valuedatadataItem["jobTrainProgress"].isNull()) + dataObject.jobTrainProgress = valuedatadataItem["jobTrainProgress"].asString(); + if(!valuedatadataItem["inferenceImageCount"].isNull()) + dataObject.inferenceImageCount = std::stoi(valuedatadataItem["inferenceImageCount"].asString()); + if(!valuedatadataItem["createTime"].isNull()) + dataObject.createTime = valuedatadataItem["createTime"].asString(); + auto allinferenceJobListNode = valuedatadataItem["inferenceJobList"]["inferenceJobListItem"]; + for (auto valuedatadataIteminferenceJobListinferenceJobListItem : allinferenceJobListNode) + { + DataItem::InferenceJobListItem inferenceJobListObject; + if(!valuedatadataIteminferenceJobListinferenceJobListItem["id"].isNull()) + inferenceJobListObject.id = valuedatadataIteminferenceJobListinferenceJobListItem["id"].asString(); + if(!valuedatadataIteminferenceJobListinferenceJobListItem["promptId"].isNull()) + inferenceJobListObject.promptId = valuedatadataIteminferenceJobListinferenceJobListItem["promptId"].asString(); + if(!valuedatadataIteminferenceJobListinferenceJobListItem["modelId"].isNull()) + inferenceJobListObject.modelId = valuedatadataIteminferenceJobListinferenceJobListItem["modelId"].asString(); + if(!valuedatadataIteminferenceJobListinferenceJobListItem["jobStatus"].isNull()) + inferenceJobListObject.jobStatus = valuedatadataIteminferenceJobListinferenceJobListItem["jobStatus"].asString(); + if(!valuedatadataIteminferenceJobListinferenceJobListItem["jobTrainProgress"].isNull()) + inferenceJobListObject.jobTrainProgress = valuedatadataIteminferenceJobListinferenceJobListItem["jobTrainProgress"].asString(); + if(!valuedatadataIteminferenceJobListinferenceJobListItem["createTime"].isNull()) + inferenceJobListObject.createTime = valuedatadataIteminferenceJobListinferenceJobListItem["createTime"].asString(); + auto allResultImageUrl = value["resultImageUrl"]["resultImageUrl"]; + for (auto value : allResultImageUrl) + inferenceJobListObject.resultImageUrl.push_back(value.asString()); + dataObject.inferenceJobList.push_back(inferenceJobListObject); + } + auto allImageUrl = value["imageUrl"]["imageUrl"]; + for (auto value : allImageUrl) + dataObject.imageUrl.push_back(value.asString()); + data_.push_back(dataObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errCode"].isNull()) + errCode_ = value["errCode"].asString(); + if(!value["errMessage"].isNull()) + errMessage_ = value["errMessage"].asString(); + +} + +std::vector Personalizedtxt2imgQueryModelTrainJobListResult::getdata()const +{ + return data_; +} + +std::string Personalizedtxt2imgQueryModelTrainJobListResult::getRequestId()const +{ + return requestId_; +} + +std::string Personalizedtxt2imgQueryModelTrainJobListResult::getErrMessage()const +{ + return errMessage_; +} + +bool Personalizedtxt2imgQueryModelTrainJobListResult::getSuccess()const +{ + return success_; +} + +std::string Personalizedtxt2imgQueryModelTrainJobListResult::getErrCode()const +{ + return errCode_; +} + diff --git a/aicontent/src/model/Personalizedtxt2imgQueryModelTrainStatusRequest.cc b/aicontent/src/model/Personalizedtxt2imgQueryModelTrainStatusRequest.cc new file mode 100644 index 000000000..4c39cc090 --- /dev/null +++ b/aicontent/src/model/Personalizedtxt2imgQueryModelTrainStatusRequest.cc @@ -0,0 +1,37 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::AiContent::Model::Personalizedtxt2imgQueryModelTrainStatusRequest; + +Personalizedtxt2imgQueryModelTrainStatusRequest::Personalizedtxt2imgQueryModelTrainStatusRequest() + : RoaServiceRequest("aicontent", "20240611") { + setResourcePath("/api/v1/personalizedtxt2img/queryModelTrainStatus"}; + setMethod(HttpRequest::Method::Get); +} + +Personalizedtxt2imgQueryModelTrainStatusRequest::~Personalizedtxt2imgQueryModelTrainStatusRequest() {} + +std::string Personalizedtxt2imgQueryModelTrainStatusRequest::getModelId() const { + return modelId_; +} + +void Personalizedtxt2imgQueryModelTrainStatusRequest::setModelId(const std::string &modelId) { + modelId_ = modelId; + setParameter(std::string("modelId"), modelId); +} + diff --git a/aicontent/src/model/Personalizedtxt2imgQueryModelTrainStatusResult.cc b/aicontent/src/model/Personalizedtxt2imgQueryModelTrainStatusResult.cc new file mode 100644 index 000000000..a149dbf45 --- /dev/null +++ b/aicontent/src/model/Personalizedtxt2imgQueryModelTrainStatusResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::AiContent; +using namespace AlibabaCloud::AiContent::Model; + +Personalizedtxt2imgQueryModelTrainStatusResult::Personalizedtxt2imgQueryModelTrainStatusResult() : + ServiceResult() +{} + +Personalizedtxt2imgQueryModelTrainStatusResult::Personalizedtxt2imgQueryModelTrainStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +Personalizedtxt2imgQueryModelTrainStatusResult::~Personalizedtxt2imgQueryModelTrainStatusResult() +{} + +void Personalizedtxt2imgQueryModelTrainStatusResult::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["modelTrainStatus"].isNull()) + data_.modelTrainStatus = dataNode["modelTrainStatus"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errCode"].isNull()) + errCode_ = value["errCode"].asString(); + if(!value["errMessage"].isNull()) + errMessage_ = value["errMessage"].asString(); + +} + +std::string Personalizedtxt2imgQueryModelTrainStatusResult::getRequestId()const +{ + return requestId_; +} + +Personalizedtxt2imgQueryModelTrainStatusResult::Data Personalizedtxt2imgQueryModelTrainStatusResult::getData()const +{ + return data_; +} + +std::string Personalizedtxt2imgQueryModelTrainStatusResult::getErrMessage()const +{ + return errMessage_; +} + +bool Personalizedtxt2imgQueryModelTrainStatusResult::getSuccess()const +{ + return success_; +} + +std::string Personalizedtxt2imgQueryModelTrainStatusResult::getErrCode()const +{ + return errCode_; +} +