From 44d329a7b7411ac9b285fb1dbf02b64c3617eaff Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 9 Jul 2025 11:45:57 +0000 Subject: [PATCH] Generated 2025-04-29 for WebsiteBuild. --- VERSION | 2 +- websitebuild/CMakeLists.txt | 98 +++++++++ .../websitebuild/WebsiteBuildClient.h | 78 +++++++ .../websitebuild/WebsiteBuildExport.h | 32 +++ .../model/CreateLogoTaskRequest.h | 51 +++++ .../websitebuild/model/CreateLogoTaskResult.h | 57 +++++ .../model/GetCreateLogoTaskRequest.h | 42 ++++ .../model/GetCreateLogoTaskResult.h | 63 ++++++ .../OperateAppInstanceForPartnerRequest.h | 45 ++++ .../OperateAppInstanceForPartnerResult.h | 55 +++++ .../OperateAppServiceForPartnerRequest.h | 51 +++++ .../model/OperateAppServiceForPartnerResult.h | 55 +++++ websitebuild/src/WebsiteBuildClient.cc | 197 ++++++++++++++++++ .../src/model/CreateLogoTaskRequest.cc | 63 ++++++ .../src/model/CreateLogoTaskResult.cc | 72 +++++++ .../src/model/GetCreateLogoTaskRequest.cc | 36 ++++ .../src/model/GetCreateLogoTaskResult.cc | 78 +++++++ .../OperateAppInstanceForPartnerRequest.cc | 45 ++++ .../OperateAppInstanceForPartnerResult.cc | 65 ++++++ .../OperateAppServiceForPartnerRequest.cc | 63 ++++++ .../OperateAppServiceForPartnerResult.cc | 65 ++++++ 21 files changed, 1312 insertions(+), 1 deletion(-) create mode 100644 websitebuild/CMakeLists.txt create mode 100644 websitebuild/include/alibabacloud/websitebuild/WebsiteBuildClient.h create mode 100644 websitebuild/include/alibabacloud/websitebuild/WebsiteBuildExport.h create mode 100644 websitebuild/include/alibabacloud/websitebuild/model/CreateLogoTaskRequest.h create mode 100644 websitebuild/include/alibabacloud/websitebuild/model/CreateLogoTaskResult.h create mode 100644 websitebuild/include/alibabacloud/websitebuild/model/GetCreateLogoTaskRequest.h create mode 100644 websitebuild/include/alibabacloud/websitebuild/model/GetCreateLogoTaskResult.h create mode 100644 websitebuild/include/alibabacloud/websitebuild/model/OperateAppInstanceForPartnerRequest.h create mode 100644 websitebuild/include/alibabacloud/websitebuild/model/OperateAppInstanceForPartnerResult.h create mode 100644 websitebuild/include/alibabacloud/websitebuild/model/OperateAppServiceForPartnerRequest.h create mode 100644 websitebuild/include/alibabacloud/websitebuild/model/OperateAppServiceForPartnerResult.h create mode 100644 websitebuild/src/WebsiteBuildClient.cc create mode 100644 websitebuild/src/model/CreateLogoTaskRequest.cc create mode 100644 websitebuild/src/model/CreateLogoTaskResult.cc create mode 100644 websitebuild/src/model/GetCreateLogoTaskRequest.cc create mode 100644 websitebuild/src/model/GetCreateLogoTaskResult.cc create mode 100644 websitebuild/src/model/OperateAppInstanceForPartnerRequest.cc create mode 100644 websitebuild/src/model/OperateAppInstanceForPartnerResult.cc create mode 100644 websitebuild/src/model/OperateAppServiceForPartnerRequest.cc create mode 100644 websitebuild/src/model/OperateAppServiceForPartnerResult.cc diff --git a/VERSION b/VERSION index b10ab058f..782b68ae5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2083 \ No newline at end of file +1.36.2084 \ No newline at end of file diff --git a/websitebuild/CMakeLists.txt b/websitebuild/CMakeLists.txt new file mode 100644 index 000000000..c4d1c8c41 --- /dev/null +++ b/websitebuild/CMakeLists.txt @@ -0,0 +1,98 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(websitebuild_public_header + include/alibabacloud/websitebuild/WebsiteBuildClient.h + include/alibabacloud/websitebuild/WebsiteBuildExport.h ) + +set(websitebuild_public_header_model + include/alibabacloud/websitebuild/model/CreateLogoTaskRequest.h + include/alibabacloud/websitebuild/model/CreateLogoTaskResult.h + include/alibabacloud/websitebuild/model/GetCreateLogoTaskRequest.h + include/alibabacloud/websitebuild/model/GetCreateLogoTaskResult.h + include/alibabacloud/websitebuild/model/OperateAppInstanceForPartnerRequest.h + include/alibabacloud/websitebuild/model/OperateAppInstanceForPartnerResult.h + include/alibabacloud/websitebuild/model/OperateAppServiceForPartnerRequest.h + include/alibabacloud/websitebuild/model/OperateAppServiceForPartnerResult.h ) + +set(websitebuild_src + src/WebsiteBuildClient.cc + src/model/CreateLogoTaskRequest.cc + src/model/CreateLogoTaskResult.cc + src/model/GetCreateLogoTaskRequest.cc + src/model/GetCreateLogoTaskResult.cc + src/model/OperateAppInstanceForPartnerRequest.cc + src/model/OperateAppInstanceForPartnerResult.cc + src/model/OperateAppServiceForPartnerRequest.cc + src/model/OperateAppServiceForPartnerResult.cc ) + +add_library(websitebuild ${LIB_TYPE} + ${websitebuild_public_header} + ${websitebuild_public_header_model} + ${websitebuild_src}) + +set_target_properties(websitebuild + 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}websitebuild + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(websitebuild + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_WEBSITEBUILD_LIBRARY) +endif() + +target_include_directories(websitebuild + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(websitebuild + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(websitebuild + jsoncpp) + target_include_directories(websitebuild + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(websitebuild + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(websitebuild + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(websitebuild + PRIVATE /usr/include/jsoncpp) + target_link_libraries(websitebuild + jsoncpp) +endif() + +install(FILES ${websitebuild_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/websitebuild) +install(FILES ${websitebuild_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/websitebuild/model) +install(TARGETS websitebuild + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/websitebuild/include/alibabacloud/websitebuild/WebsiteBuildClient.h b/websitebuild/include/alibabacloud/websitebuild/WebsiteBuildClient.h new file mode 100644 index 000000000..8c22352bd --- /dev/null +++ b/websitebuild/include/alibabacloud/websitebuild/WebsiteBuildClient.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_WEBSITEBUILD_WEBSITEBUILDCLIENT_H_ +#define ALIBABACLOUD_WEBSITEBUILD_WEBSITEBUILDCLIENT_H_ + +#include +#include +#include +#include +#include "WebsiteBuildExport.h" +#include "model/CreateLogoTaskRequest.h" +#include "model/CreateLogoTaskResult.h" +#include "model/GetCreateLogoTaskRequest.h" +#include "model/GetCreateLogoTaskResult.h" +#include "model/OperateAppInstanceForPartnerRequest.h" +#include "model/OperateAppInstanceForPartnerResult.h" +#include "model/OperateAppServiceForPartnerRequest.h" +#include "model/OperateAppServiceForPartnerResult.h" + + +namespace AlibabaCloud +{ + namespace WebsiteBuild + { + class ALIBABACLOUD_WEBSITEBUILD_EXPORT WebsiteBuildClient : public RpcServiceClient + { + public: + typedef Outcome CreateLogoTaskOutcome; + typedef std::future CreateLogoTaskOutcomeCallable; + typedef std::function&)> CreateLogoTaskAsyncHandler; + typedef Outcome GetCreateLogoTaskOutcome; + typedef std::future GetCreateLogoTaskOutcomeCallable; + typedef std::function&)> GetCreateLogoTaskAsyncHandler; + typedef Outcome OperateAppInstanceForPartnerOutcome; + typedef std::future OperateAppInstanceForPartnerOutcomeCallable; + typedef std::function&)> OperateAppInstanceForPartnerAsyncHandler; + typedef Outcome OperateAppServiceForPartnerOutcome; + typedef std::future OperateAppServiceForPartnerOutcomeCallable; + typedef std::function&)> OperateAppServiceForPartnerAsyncHandler; + + WebsiteBuildClient(const Credentials &credentials, const ClientConfiguration &configuration); + WebsiteBuildClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + WebsiteBuildClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~WebsiteBuildClient(); + CreateLogoTaskOutcome createLogoTask(const Model::CreateLogoTaskRequest &request)const; + void createLogoTaskAsync(const Model::CreateLogoTaskRequest& request, const CreateLogoTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateLogoTaskOutcomeCallable createLogoTaskCallable(const Model::CreateLogoTaskRequest& request) const; + GetCreateLogoTaskOutcome getCreateLogoTask(const Model::GetCreateLogoTaskRequest &request)const; + void getCreateLogoTaskAsync(const Model::GetCreateLogoTaskRequest& request, const GetCreateLogoTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCreateLogoTaskOutcomeCallable getCreateLogoTaskCallable(const Model::GetCreateLogoTaskRequest& request) const; + OperateAppInstanceForPartnerOutcome operateAppInstanceForPartner(const Model::OperateAppInstanceForPartnerRequest &request)const; + void operateAppInstanceForPartnerAsync(const Model::OperateAppInstanceForPartnerRequest& request, const OperateAppInstanceForPartnerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OperateAppInstanceForPartnerOutcomeCallable operateAppInstanceForPartnerCallable(const Model::OperateAppInstanceForPartnerRequest& request) const; + OperateAppServiceForPartnerOutcome operateAppServiceForPartner(const Model::OperateAppServiceForPartnerRequest &request)const; + void operateAppServiceForPartnerAsync(const Model::OperateAppServiceForPartnerRequest& request, const OperateAppServiceForPartnerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OperateAppServiceForPartnerOutcomeCallable operateAppServiceForPartnerCallable(const Model::OperateAppServiceForPartnerRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_WEBSITEBUILD_WEBSITEBUILDCLIENT_H_ diff --git a/websitebuild/include/alibabacloud/websitebuild/WebsiteBuildExport.h b/websitebuild/include/alibabacloud/websitebuild/WebsiteBuildExport.h new file mode 100644 index 000000000..38dba5396 --- /dev/null +++ b/websitebuild/include/alibabacloud/websitebuild/WebsiteBuildExport.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_WEBSITEBUILD_WEBSITEBUILDEXPORT_H_ +#define ALIBABACLOUD_WEBSITEBUILD_WEBSITEBUILDEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_WEBSITEBUILD_LIBRARY) +# define ALIBABACLOUD_WEBSITEBUILD_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_WEBSITEBUILD_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_WEBSITEBUILD_EXPORT +#endif + +#endif // !ALIBABACLOUD_WEBSITEBUILD_WEBSITEBUILDEXPORT_H_ \ No newline at end of file diff --git a/websitebuild/include/alibabacloud/websitebuild/model/CreateLogoTaskRequest.h b/websitebuild/include/alibabacloud/websitebuild/model/CreateLogoTaskRequest.h new file mode 100644 index 000000000..47fec3d0f --- /dev/null +++ b/websitebuild/include/alibabacloud/websitebuild/model/CreateLogoTaskRequest.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_WEBSITEBUILD_MODEL_CREATELOGOTASKREQUEST_H_ +#define ALIBABACLOUD_WEBSITEBUILD_MODEL_CREATELOGOTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace WebsiteBuild { +namespace Model { +class ALIBABACLOUD_WEBSITEBUILD_EXPORT CreateLogoTaskRequest : public RpcServiceRequest { +public: + CreateLogoTaskRequest(); + ~CreateLogoTaskRequest(); + std::string getNegativePrompt() const; + void setNegativePrompt(const std::string &negativePrompt); + std::string getPrompt() const; + void setPrompt(const std::string &prompt); + std::string getParameters() const; + void setParameters(const std::string ¶meters); + std::string getLogoVersion() const; + void setLogoVersion(const std::string &logoVersion); + +private: + std::string negativePrompt_; + std::string prompt_; + std::string parameters_; + std::string logoVersion_; +}; +} // namespace Model +} // namespace WebsiteBuild +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_WEBSITEBUILD_MODEL_CREATELOGOTASKREQUEST_H_ diff --git a/websitebuild/include/alibabacloud/websitebuild/model/CreateLogoTaskResult.h b/websitebuild/include/alibabacloud/websitebuild/model/CreateLogoTaskResult.h new file mode 100644 index 000000000..7682a9c16 --- /dev/null +++ b/websitebuild/include/alibabacloud/websitebuild/model/CreateLogoTaskResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_WEBSITEBUILD_MODEL_CREATELOGOTASKRESULT_H_ +#define ALIBABACLOUD_WEBSITEBUILD_MODEL_CREATELOGOTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace WebsiteBuild + { + namespace Model + { + class ALIBABACLOUD_WEBSITEBUILD_EXPORT CreateLogoTaskResult : public ServiceResult + { + public: + + + CreateLogoTaskResult(); + explicit CreateLogoTaskResult(const std::string &payload); + ~CreateLogoTaskResult(); + std::string getTaskId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string errorMsg_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_WEBSITEBUILD_MODEL_CREATELOGOTASKRESULT_H_ \ No newline at end of file diff --git a/websitebuild/include/alibabacloud/websitebuild/model/GetCreateLogoTaskRequest.h b/websitebuild/include/alibabacloud/websitebuild/model/GetCreateLogoTaskRequest.h new file mode 100644 index 000000000..aaaea57c2 --- /dev/null +++ b/websitebuild/include/alibabacloud/websitebuild/model/GetCreateLogoTaskRequest.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_WEBSITEBUILD_MODEL_GETCREATELOGOTASKREQUEST_H_ +#define ALIBABACLOUD_WEBSITEBUILD_MODEL_GETCREATELOGOTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace WebsiteBuild { +namespace Model { +class ALIBABACLOUD_WEBSITEBUILD_EXPORT GetCreateLogoTaskRequest : public RpcServiceRequest { +public: + GetCreateLogoTaskRequest(); + ~GetCreateLogoTaskRequest(); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + std::string taskId_; +}; +} // namespace Model +} // namespace WebsiteBuild +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_WEBSITEBUILD_MODEL_GETCREATELOGOTASKREQUEST_H_ diff --git a/websitebuild/include/alibabacloud/websitebuild/model/GetCreateLogoTaskResult.h b/websitebuild/include/alibabacloud/websitebuild/model/GetCreateLogoTaskResult.h new file mode 100644 index 000000000..e4eb92aa3 --- /dev/null +++ b/websitebuild/include/alibabacloud/websitebuild/model/GetCreateLogoTaskResult.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_WEBSITEBUILD_MODEL_GETCREATELOGOTASKRESULT_H_ +#define ALIBABACLOUD_WEBSITEBUILD_MODEL_GETCREATELOGOTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace WebsiteBuild + { + namespace Model + { + class ALIBABACLOUD_WEBSITEBUILD_EXPORT GetCreateLogoTaskResult : public ServiceResult + { + public: + struct Task + { + std::string taskId; + std::string taskStatus; + std::vector urls; + }; + + + GetCreateLogoTaskResult(); + explicit GetCreateLogoTaskResult(const std::string &payload); + ~GetCreateLogoTaskResult(); + Task getTask()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Task task_; + std::string errorMsg_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_WEBSITEBUILD_MODEL_GETCREATELOGOTASKRESULT_H_ \ No newline at end of file diff --git a/websitebuild/include/alibabacloud/websitebuild/model/OperateAppInstanceForPartnerRequest.h b/websitebuild/include/alibabacloud/websitebuild/model/OperateAppInstanceForPartnerRequest.h new file mode 100644 index 000000000..25b2ad5c0 --- /dev/null +++ b/websitebuild/include/alibabacloud/websitebuild/model/OperateAppInstanceForPartnerRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_WEBSITEBUILD_MODEL_OPERATEAPPINSTANCEFORPARTNERREQUEST_H_ +#define ALIBABACLOUD_WEBSITEBUILD_MODEL_OPERATEAPPINSTANCEFORPARTNERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace WebsiteBuild { +namespace Model { +class ALIBABACLOUD_WEBSITEBUILD_EXPORT OperateAppInstanceForPartnerRequest : public RpcServiceRequest { +public: + OperateAppInstanceForPartnerRequest(); + ~OperateAppInstanceForPartnerRequest(); + std::string getExtend() const; + void setExtend(const std::string &extend); + std::string getOperateEvent() const; + void setOperateEvent(const std::string &operateEvent); + +private: + std::string extend_; + std::string operateEvent_; +}; +} // namespace Model +} // namespace WebsiteBuild +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_WEBSITEBUILD_MODEL_OPERATEAPPINSTANCEFORPARTNERREQUEST_H_ diff --git a/websitebuild/include/alibabacloud/websitebuild/model/OperateAppInstanceForPartnerResult.h b/websitebuild/include/alibabacloud/websitebuild/model/OperateAppInstanceForPartnerResult.h new file mode 100644 index 000000000..06dee69ba --- /dev/null +++ b/websitebuild/include/alibabacloud/websitebuild/model/OperateAppInstanceForPartnerResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_WEBSITEBUILD_MODEL_OPERATEAPPINSTANCEFORPARTNERRESULT_H_ +#define ALIBABACLOUD_WEBSITEBUILD_MODEL_OPERATEAPPINSTANCEFORPARTNERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace WebsiteBuild + { + namespace Model + { + class ALIBABACLOUD_WEBSITEBUILD_EXPORT OperateAppInstanceForPartnerResult : public ServiceResult + { + public: + + + OperateAppInstanceForPartnerResult(); + explicit OperateAppInstanceForPartnerResult(const std::string &payload); + ~OperateAppInstanceForPartnerResult(); + std::string getErrorMsg()const; + std::string getErrorCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + std::string errorCode_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_WEBSITEBUILD_MODEL_OPERATEAPPINSTANCEFORPARTNERRESULT_H_ \ No newline at end of file diff --git a/websitebuild/include/alibabacloud/websitebuild/model/OperateAppServiceForPartnerRequest.h b/websitebuild/include/alibabacloud/websitebuild/model/OperateAppServiceForPartnerRequest.h new file mode 100644 index 000000000..cfbfd7ca3 --- /dev/null +++ b/websitebuild/include/alibabacloud/websitebuild/model/OperateAppServiceForPartnerRequest.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_WEBSITEBUILD_MODEL_OPERATEAPPSERVICEFORPARTNERREQUEST_H_ +#define ALIBABACLOUD_WEBSITEBUILD_MODEL_OPERATEAPPSERVICEFORPARTNERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace WebsiteBuild { +namespace Model { +class ALIBABACLOUD_WEBSITEBUILD_EXPORT OperateAppServiceForPartnerRequest : public RpcServiceRequest { +public: + OperateAppServiceForPartnerRequest(); + ~OperateAppServiceForPartnerRequest(); + std::string getExtend() const; + void setExtend(const std::string &extend); + std::string getServiceType() const; + void setServiceType(const std::string &serviceType); + std::string getBizId() const; + void setBizId(const std::string &bizId); + std::string getOperateEvent() const; + void setOperateEvent(const std::string &operateEvent); + +private: + std::string extend_; + std::string serviceType_; + std::string bizId_; + std::string operateEvent_; +}; +} // namespace Model +} // namespace WebsiteBuild +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_WEBSITEBUILD_MODEL_OPERATEAPPSERVICEFORPARTNERREQUEST_H_ diff --git a/websitebuild/include/alibabacloud/websitebuild/model/OperateAppServiceForPartnerResult.h b/websitebuild/include/alibabacloud/websitebuild/model/OperateAppServiceForPartnerResult.h new file mode 100644 index 000000000..b5cd96756 --- /dev/null +++ b/websitebuild/include/alibabacloud/websitebuild/model/OperateAppServiceForPartnerResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_WEBSITEBUILD_MODEL_OPERATEAPPSERVICEFORPARTNERRESULT_H_ +#define ALIBABACLOUD_WEBSITEBUILD_MODEL_OPERATEAPPSERVICEFORPARTNERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace WebsiteBuild + { + namespace Model + { + class ALIBABACLOUD_WEBSITEBUILD_EXPORT OperateAppServiceForPartnerResult : public ServiceResult + { + public: + + + OperateAppServiceForPartnerResult(); + explicit OperateAppServiceForPartnerResult(const std::string &payload); + ~OperateAppServiceForPartnerResult(); + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_WEBSITEBUILD_MODEL_OPERATEAPPSERVICEFORPARTNERRESULT_H_ \ No newline at end of file diff --git a/websitebuild/src/WebsiteBuildClient.cc b/websitebuild/src/WebsiteBuildClient.cc new file mode 100644 index 000000000..3530bfcbc --- /dev/null +++ b/websitebuild/src/WebsiteBuildClient.cc @@ -0,0 +1,197 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::WebsiteBuild; +using namespace AlibabaCloud::WebsiteBuild::Model; + +namespace +{ + const std::string SERVICE_NAME = "WebsiteBuild"; +} + +WebsiteBuildClient::WebsiteBuildClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +WebsiteBuildClient::WebsiteBuildClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +WebsiteBuildClient::WebsiteBuildClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +WebsiteBuildClient::~WebsiteBuildClient() +{} + +WebsiteBuildClient::CreateLogoTaskOutcome WebsiteBuildClient::createLogoTask(const CreateLogoTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateLogoTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateLogoTaskOutcome(CreateLogoTaskResult(outcome.result())); + else + return CreateLogoTaskOutcome(outcome.error()); +} + +void WebsiteBuildClient::createLogoTaskAsync(const CreateLogoTaskRequest& request, const CreateLogoTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createLogoTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +WebsiteBuildClient::CreateLogoTaskOutcomeCallable WebsiteBuildClient::createLogoTaskCallable(const CreateLogoTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createLogoTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +WebsiteBuildClient::GetCreateLogoTaskOutcome WebsiteBuildClient::getCreateLogoTask(const GetCreateLogoTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCreateLogoTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCreateLogoTaskOutcome(GetCreateLogoTaskResult(outcome.result())); + else + return GetCreateLogoTaskOutcome(outcome.error()); +} + +void WebsiteBuildClient::getCreateLogoTaskAsync(const GetCreateLogoTaskRequest& request, const GetCreateLogoTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCreateLogoTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +WebsiteBuildClient::GetCreateLogoTaskOutcomeCallable WebsiteBuildClient::getCreateLogoTaskCallable(const GetCreateLogoTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCreateLogoTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +WebsiteBuildClient::OperateAppInstanceForPartnerOutcome WebsiteBuildClient::operateAppInstanceForPartner(const OperateAppInstanceForPartnerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OperateAppInstanceForPartnerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OperateAppInstanceForPartnerOutcome(OperateAppInstanceForPartnerResult(outcome.result())); + else + return OperateAppInstanceForPartnerOutcome(outcome.error()); +} + +void WebsiteBuildClient::operateAppInstanceForPartnerAsync(const OperateAppInstanceForPartnerRequest& request, const OperateAppInstanceForPartnerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, operateAppInstanceForPartner(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +WebsiteBuildClient::OperateAppInstanceForPartnerOutcomeCallable WebsiteBuildClient::operateAppInstanceForPartnerCallable(const OperateAppInstanceForPartnerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->operateAppInstanceForPartner(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +WebsiteBuildClient::OperateAppServiceForPartnerOutcome WebsiteBuildClient::operateAppServiceForPartner(const OperateAppServiceForPartnerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OperateAppServiceForPartnerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OperateAppServiceForPartnerOutcome(OperateAppServiceForPartnerResult(outcome.result())); + else + return OperateAppServiceForPartnerOutcome(outcome.error()); +} + +void WebsiteBuildClient::operateAppServiceForPartnerAsync(const OperateAppServiceForPartnerRequest& request, const OperateAppServiceForPartnerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, operateAppServiceForPartner(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +WebsiteBuildClient::OperateAppServiceForPartnerOutcomeCallable WebsiteBuildClient::operateAppServiceForPartnerCallable(const OperateAppServiceForPartnerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->operateAppServiceForPartner(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/websitebuild/src/model/CreateLogoTaskRequest.cc b/websitebuild/src/model/CreateLogoTaskRequest.cc new file mode 100644 index 000000000..622e676c1 --- /dev/null +++ b/websitebuild/src/model/CreateLogoTaskRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::WebsiteBuild::Model::CreateLogoTaskRequest; + +CreateLogoTaskRequest::CreateLogoTaskRequest() + : RpcServiceRequest("websitebuild", "2025-04-29", "CreateLogoTask") { + setMethod(HttpRequest::Method::Post); +} + +CreateLogoTaskRequest::~CreateLogoTaskRequest() {} + +std::string CreateLogoTaskRequest::getNegativePrompt() const { + return negativePrompt_; +} + +void CreateLogoTaskRequest::setNegativePrompt(const std::string &negativePrompt) { + negativePrompt_ = negativePrompt; + setParameter(std::string("NegativePrompt"), negativePrompt); +} + +std::string CreateLogoTaskRequest::getPrompt() const { + return prompt_; +} + +void CreateLogoTaskRequest::setPrompt(const std::string &prompt) { + prompt_ = prompt; + setParameter(std::string("Prompt"), prompt); +} + +std::string CreateLogoTaskRequest::getParameters() const { + return parameters_; +} + +void CreateLogoTaskRequest::setParameters(const std::string ¶meters) { + parameters_ = parameters; + setParameter(std::string("Parameters"), parameters); +} + +std::string CreateLogoTaskRequest::getLogoVersion() const { + return logoVersion_; +} + +void CreateLogoTaskRequest::setLogoVersion(const std::string &logoVersion) { + logoVersion_ = logoVersion; + setParameter(std::string("LogoVersion"), logoVersion); +} + diff --git a/websitebuild/src/model/CreateLogoTaskResult.cc b/websitebuild/src/model/CreateLogoTaskResult.cc new file mode 100644 index 000000000..414672298 --- /dev/null +++ b/websitebuild/src/model/CreateLogoTaskResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::WebsiteBuild; +using namespace AlibabaCloud::WebsiteBuild::Model; + +CreateLogoTaskResult::CreateLogoTaskResult() : + ServiceResult() +{} + +CreateLogoTaskResult::CreateLogoTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateLogoTaskResult::~CreateLogoTaskResult() +{} + +void CreateLogoTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string CreateLogoTaskResult::getTaskId()const +{ + return taskId_; +} + +std::string CreateLogoTaskResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string CreateLogoTaskResult::getErrorCode()const +{ + return errorCode_; +} + +bool CreateLogoTaskResult::getSuccess()const +{ + return success_; +} + diff --git a/websitebuild/src/model/GetCreateLogoTaskRequest.cc b/websitebuild/src/model/GetCreateLogoTaskRequest.cc new file mode 100644 index 000000000..526d35168 --- /dev/null +++ b/websitebuild/src/model/GetCreateLogoTaskRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::WebsiteBuild::Model::GetCreateLogoTaskRequest; + +GetCreateLogoTaskRequest::GetCreateLogoTaskRequest() + : RpcServiceRequest("websitebuild", "2025-04-29", "GetCreateLogoTask") { + setMethod(HttpRequest::Method::Post); +} + +GetCreateLogoTaskRequest::~GetCreateLogoTaskRequest() {} + +std::string GetCreateLogoTaskRequest::getTaskId() const { + return taskId_; +} + +void GetCreateLogoTaskRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + diff --git a/websitebuild/src/model/GetCreateLogoTaskResult.cc b/websitebuild/src/model/GetCreateLogoTaskResult.cc new file mode 100644 index 000000000..e324b19ab --- /dev/null +++ b/websitebuild/src/model/GetCreateLogoTaskResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::WebsiteBuild; +using namespace AlibabaCloud::WebsiteBuild::Model; + +GetCreateLogoTaskResult::GetCreateLogoTaskResult() : + ServiceResult() +{} + +GetCreateLogoTaskResult::GetCreateLogoTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCreateLogoTaskResult::~GetCreateLogoTaskResult() +{} + +void GetCreateLogoTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto taskNode = value["Task"]; + if(!taskNode["TaskId"].isNull()) + task_.taskId = taskNode["TaskId"].asString(); + if(!taskNode["TaskStatus"].isNull()) + task_.taskStatus = taskNode["TaskStatus"].asString(); + auto allUrls = taskNode["Urls"]["url"]; + for (auto value : allUrls) + task_.urls.push_back(value.asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +GetCreateLogoTaskResult::Task GetCreateLogoTaskResult::getTask()const +{ + return task_; +} + +std::string GetCreateLogoTaskResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string GetCreateLogoTaskResult::getErrorCode()const +{ + return errorCode_; +} + +bool GetCreateLogoTaskResult::getSuccess()const +{ + return success_; +} + diff --git a/websitebuild/src/model/OperateAppInstanceForPartnerRequest.cc b/websitebuild/src/model/OperateAppInstanceForPartnerRequest.cc new file mode 100644 index 000000000..67aad2434 --- /dev/null +++ b/websitebuild/src/model/OperateAppInstanceForPartnerRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::WebsiteBuild::Model::OperateAppInstanceForPartnerRequest; + +OperateAppInstanceForPartnerRequest::OperateAppInstanceForPartnerRequest() + : RpcServiceRequest("websitebuild", "2025-04-29", "OperateAppInstanceForPartner") { + setMethod(HttpRequest::Method::Post); +} + +OperateAppInstanceForPartnerRequest::~OperateAppInstanceForPartnerRequest() {} + +std::string OperateAppInstanceForPartnerRequest::getExtend() const { + return extend_; +} + +void OperateAppInstanceForPartnerRequest::setExtend(const std::string &extend) { + extend_ = extend; + setParameter(std::string("Extend"), extend); +} + +std::string OperateAppInstanceForPartnerRequest::getOperateEvent() const { + return operateEvent_; +} + +void OperateAppInstanceForPartnerRequest::setOperateEvent(const std::string &operateEvent) { + operateEvent_ = operateEvent; + setParameter(std::string("OperateEvent"), operateEvent); +} + diff --git a/websitebuild/src/model/OperateAppInstanceForPartnerResult.cc b/websitebuild/src/model/OperateAppInstanceForPartnerResult.cc new file mode 100644 index 000000000..790dfb9e5 --- /dev/null +++ b/websitebuild/src/model/OperateAppInstanceForPartnerResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::WebsiteBuild; +using namespace AlibabaCloud::WebsiteBuild::Model; + +OperateAppInstanceForPartnerResult::OperateAppInstanceForPartnerResult() : + ServiceResult() +{} + +OperateAppInstanceForPartnerResult::OperateAppInstanceForPartnerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OperateAppInstanceForPartnerResult::~OperateAppInstanceForPartnerResult() +{} + +void OperateAppInstanceForPartnerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string OperateAppInstanceForPartnerResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string OperateAppInstanceForPartnerResult::getErrorCode()const +{ + return errorCode_; +} + +std::string OperateAppInstanceForPartnerResult::getSuccess()const +{ + return success_; +} + diff --git a/websitebuild/src/model/OperateAppServiceForPartnerRequest.cc b/websitebuild/src/model/OperateAppServiceForPartnerRequest.cc new file mode 100644 index 000000000..631450ea5 --- /dev/null +++ b/websitebuild/src/model/OperateAppServiceForPartnerRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::WebsiteBuild::Model::OperateAppServiceForPartnerRequest; + +OperateAppServiceForPartnerRequest::OperateAppServiceForPartnerRequest() + : RpcServiceRequest("websitebuild", "2025-04-29", "OperateAppServiceForPartner") { + setMethod(HttpRequest::Method::Post); +} + +OperateAppServiceForPartnerRequest::~OperateAppServiceForPartnerRequest() {} + +std::string OperateAppServiceForPartnerRequest::getExtend() const { + return extend_; +} + +void OperateAppServiceForPartnerRequest::setExtend(const std::string &extend) { + extend_ = extend; + setParameter(std::string("Extend"), extend); +} + +std::string OperateAppServiceForPartnerRequest::getServiceType() const { + return serviceType_; +} + +void OperateAppServiceForPartnerRequest::setServiceType(const std::string &serviceType) { + serviceType_ = serviceType; + setParameter(std::string("ServiceType"), serviceType); +} + +std::string OperateAppServiceForPartnerRequest::getBizId() const { + return bizId_; +} + +void OperateAppServiceForPartnerRequest::setBizId(const std::string &bizId) { + bizId_ = bizId; + setParameter(std::string("BizId"), bizId); +} + +std::string OperateAppServiceForPartnerRequest::getOperateEvent() const { + return operateEvent_; +} + +void OperateAppServiceForPartnerRequest::setOperateEvent(const std::string &operateEvent) { + operateEvent_ = operateEvent; + setParameter(std::string("OperateEvent"), operateEvent); +} + diff --git a/websitebuild/src/model/OperateAppServiceForPartnerResult.cc b/websitebuild/src/model/OperateAppServiceForPartnerResult.cc new file mode 100644 index 000000000..ab929a22a --- /dev/null +++ b/websitebuild/src/model/OperateAppServiceForPartnerResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::WebsiteBuild; +using namespace AlibabaCloud::WebsiteBuild::Model; + +OperateAppServiceForPartnerResult::OperateAppServiceForPartnerResult() : + ServiceResult() +{} + +OperateAppServiceForPartnerResult::OperateAppServiceForPartnerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OperateAppServiceForPartnerResult::~OperateAppServiceForPartnerResult() +{} + +void OperateAppServiceForPartnerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +std::string OperateAppServiceForPartnerResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string OperateAppServiceForPartnerResult::getErrorCode()const +{ + return errorCode_; +} + +bool OperateAppServiceForPartnerResult::getSuccess()const +{ + return success_; +} +