Generated 2025-04-29 for WebsiteBuild.
This commit is contained in:
98
websitebuild/CMakeLists.txt
Normal file
98
websitebuild/CMakeLists.txt
Normal file
@@ -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}
|
||||
)
|
||||
@@ -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 <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#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<Error, Model::CreateLogoTaskResult> CreateLogoTaskOutcome;
|
||||
typedef std::future<CreateLogoTaskOutcome> CreateLogoTaskOutcomeCallable;
|
||||
typedef std::function<void(const WebsiteBuildClient*, const Model::CreateLogoTaskRequest&, const CreateLogoTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateLogoTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetCreateLogoTaskResult> GetCreateLogoTaskOutcome;
|
||||
typedef std::future<GetCreateLogoTaskOutcome> GetCreateLogoTaskOutcomeCallable;
|
||||
typedef std::function<void(const WebsiteBuildClient*, const Model::GetCreateLogoTaskRequest&, const GetCreateLogoTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCreateLogoTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::OperateAppInstanceForPartnerResult> OperateAppInstanceForPartnerOutcome;
|
||||
typedef std::future<OperateAppInstanceForPartnerOutcome> OperateAppInstanceForPartnerOutcomeCallable;
|
||||
typedef std::function<void(const WebsiteBuildClient*, const Model::OperateAppInstanceForPartnerRequest&, const OperateAppInstanceForPartnerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OperateAppInstanceForPartnerAsyncHandler;
|
||||
typedef Outcome<Error, Model::OperateAppServiceForPartnerResult> OperateAppServiceForPartnerOutcome;
|
||||
typedef std::future<OperateAppServiceForPartnerOutcome> OperateAppServiceForPartnerOutcomeCallable;
|
||||
typedef std::function<void(const WebsiteBuildClient*, const Model::OperateAppServiceForPartnerRequest&, const OperateAppServiceForPartnerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OperateAppServiceForPartnerAsyncHandler;
|
||||
|
||||
WebsiteBuildClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
WebsiteBuildClient(const std::shared_ptr<CredentialsProvider> &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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
|
||||
OperateAppServiceForPartnerOutcomeCallable operateAppServiceForPartnerCallable(const Model::OperateAppServiceForPartnerRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_WEBSITEBUILD_WEBSITEBUILDCLIENT_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 <alibabacloud/core/Global.h>
|
||||
|
||||
#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_
|
||||
@@ -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 <alibabacloud/websitebuild/WebsiteBuildExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/websitebuild/WebsiteBuildExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/websitebuild/WebsiteBuildExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/websitebuild/WebsiteBuildExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace WebsiteBuild
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_WEBSITEBUILD_EXPORT GetCreateLogoTaskResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Task
|
||||
{
|
||||
std::string taskId;
|
||||
std::string taskStatus;
|
||||
std::vector<std::string> 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_
|
||||
@@ -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 <alibabacloud/websitebuild/WebsiteBuildExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/websitebuild/WebsiteBuildExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/websitebuild/WebsiteBuildExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/websitebuild/WebsiteBuildExport.h>
|
||||
|
||||
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_
|
||||
197
websitebuild/src/WebsiteBuildClient.cc
Normal file
197
websitebuild/src/WebsiteBuildClient.cc
Normal file
@@ -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 <alibabacloud/websitebuild/WebsiteBuildClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
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<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
WebsiteBuildClient::WebsiteBuildClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
WebsiteBuildClient::WebsiteBuildClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(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<const AsyncCallerContext>& 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<std::packaged_task<CreateLogoTaskOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<GetCreateLogoTaskOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<OperateAppInstanceForPartnerOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<OperateAppServiceForPartnerOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->operateAppServiceForPartner(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
63
websitebuild/src/model/CreateLogoTaskRequest.cc
Normal file
63
websitebuild/src/model/CreateLogoTaskRequest.cc
Normal file
@@ -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 <alibabacloud/websitebuild/model/CreateLogoTaskRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
72
websitebuild/src/model/CreateLogoTaskResult.cc
Normal file
72
websitebuild/src/model/CreateLogoTaskResult.cc
Normal file
@@ -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 <alibabacloud/websitebuild/model/CreateLogoTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
36
websitebuild/src/model/GetCreateLogoTaskRequest.cc
Normal file
36
websitebuild/src/model/GetCreateLogoTaskRequest.cc
Normal file
@@ -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 <alibabacloud/websitebuild/model/GetCreateLogoTaskRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
78
websitebuild/src/model/GetCreateLogoTaskResult.cc
Normal file
78
websitebuild/src/model/GetCreateLogoTaskResult.cc
Normal file
@@ -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 <alibabacloud/websitebuild/model/GetCreateLogoTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
@@ -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 <alibabacloud/websitebuild/model/OperateAppInstanceForPartnerRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
65
websitebuild/src/model/OperateAppInstanceForPartnerResult.cc
Normal file
65
websitebuild/src/model/OperateAppInstanceForPartnerResult.cc
Normal file
@@ -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 <alibabacloud/websitebuild/model/OperateAppInstanceForPartnerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
63
websitebuild/src/model/OperateAppServiceForPartnerRequest.cc
Normal file
63
websitebuild/src/model/OperateAppServiceForPartnerRequest.cc
Normal file
@@ -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 <alibabacloud/websitebuild/model/OperateAppServiceForPartnerRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
65
websitebuild/src/model/OperateAppServiceForPartnerResult.cc
Normal file
65
websitebuild/src/model/OperateAppServiceForPartnerResult.cc
Normal file
@@ -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 <alibabacloud/websitebuild/model/OperateAppServiceForPartnerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user