Compare commits
43 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e532f5fe74 | ||
|
|
c1c37ba49a | ||
|
|
7d74c183f6 | ||
|
|
1b9c5d6a42 | ||
|
|
e762c1d057 | ||
|
|
16843433e4 | ||
|
|
f80621c4a4 | ||
|
|
4985a32853 | ||
|
|
7f6b7dbfba | ||
|
|
18b7bafcd0 | ||
|
|
4b9242545b | ||
|
|
b3758c1857 | ||
|
|
40e28f2005 | ||
|
|
2e0f1478c6 | ||
|
|
8c7efaba0f | ||
|
|
fd5e85ebf9 | ||
|
|
ef538b5d54 | ||
|
|
4e92d5b648 | ||
|
|
befcff9add | ||
|
|
78426b2c35 | ||
|
|
1c37d47f07 | ||
|
|
afc1ac57c3 | ||
|
|
7ad42a297f | ||
|
|
b2cade322d | ||
|
|
5d8d514785 | ||
|
|
d4d30d5bb7 | ||
|
|
8c606d0357 | ||
|
|
4a7816979a | ||
|
|
ca3378ac03 | ||
|
|
0859b911b2 | ||
|
|
29b4bc0ce3 | ||
|
|
d37523f568 | ||
|
|
928fc975b9 | ||
|
|
6365b9f02d | ||
|
|
fbc3817ea1 | ||
|
|
db6a17b08c | ||
|
|
d80ca0d7e2 | ||
|
|
83f9047345 | ||
|
|
458e22b006 | ||
|
|
a375fa9d99 | ||
|
|
c8d90808f0 | ||
|
|
886cef155f | ||
|
|
051077c805 |
110
aicontent/CMakeLists.txt
Normal file
110
aicontent/CMakeLists.txt
Normal file
@@ -0,0 +1,110 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(aicontent_public_header
|
||||
include/alibabacloud/aicontent/AiContentClient.h
|
||||
include/alibabacloud/aicontent/AiContentExport.h )
|
||||
|
||||
set(aicontent_public_header_model
|
||||
include/alibabacloud/aicontent/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest.h
|
||||
include/alibabacloud/aicontent/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult.h
|
||||
include/alibabacloud/aicontent/model/Personalizedtxt2imgAddInferenceJobRequest.h
|
||||
include/alibabacloud/aicontent/model/Personalizedtxt2imgAddInferenceJobResult.h
|
||||
include/alibabacloud/aicontent/model/Personalizedtxt2imgAddModelTrainJobRequest.h
|
||||
include/alibabacloud/aicontent/model/Personalizedtxt2imgAddModelTrainJobResult.h
|
||||
include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryImageAssetRequest.h
|
||||
include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryImageAssetResult.h
|
||||
include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryInferenceJobInfoRequest.h
|
||||
include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryInferenceJobInfoResult.h
|
||||
include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainJobListRequest.h
|
||||
include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainJobListResult.h
|
||||
include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainStatusRequest.h
|
||||
include/alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainStatusResult.h )
|
||||
|
||||
set(aicontent_src
|
||||
src/AiContentClient.cc
|
||||
src/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest.cc
|
||||
src/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult.cc
|
||||
src/model/Personalizedtxt2imgAddInferenceJobRequest.cc
|
||||
src/model/Personalizedtxt2imgAddInferenceJobResult.cc
|
||||
src/model/Personalizedtxt2imgAddModelTrainJobRequest.cc
|
||||
src/model/Personalizedtxt2imgAddModelTrainJobResult.cc
|
||||
src/model/Personalizedtxt2imgQueryImageAssetRequest.cc
|
||||
src/model/Personalizedtxt2imgQueryImageAssetResult.cc
|
||||
src/model/Personalizedtxt2imgQueryInferenceJobInfoRequest.cc
|
||||
src/model/Personalizedtxt2imgQueryInferenceJobInfoResult.cc
|
||||
src/model/Personalizedtxt2imgQueryModelTrainJobListRequest.cc
|
||||
src/model/Personalizedtxt2imgQueryModelTrainJobListResult.cc
|
||||
src/model/Personalizedtxt2imgQueryModelTrainStatusRequest.cc
|
||||
src/model/Personalizedtxt2imgQueryModelTrainStatusResult.cc )
|
||||
|
||||
add_library(aicontent ${LIB_TYPE}
|
||||
${aicontent_public_header}
|
||||
${aicontent_public_header_model}
|
||||
${aicontent_src})
|
||||
|
||||
set_target_properties(aicontent
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}aicontent
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(aicontent
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_AICONTENT_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(aicontent
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(aicontent
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(aicontent
|
||||
jsoncpp)
|
||||
target_include_directories(aicontent
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(aicontent
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(aicontent
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(aicontent
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(aicontent
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${aicontent_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aicontent)
|
||||
install(FILES ${aicontent_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aicontent/model)
|
||||
install(TARGETS aicontent
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
102
aicontent/include/alibabacloud/aicontent/AiContentClient.h
Normal file
102
aicontent/include/alibabacloud/aicontent/AiContentClient.h
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AICONTENT_AICONTENTCLIENT_H_
|
||||
#define ALIBABACLOUD_AICONTENT_AICONTENTCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RoaServiceClient.h>
|
||||
#include "AiContentExport.h"
|
||||
#include "model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest.h"
|
||||
#include "model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult.h"
|
||||
#include "model/Personalizedtxt2imgAddInferenceJobRequest.h"
|
||||
#include "model/Personalizedtxt2imgAddInferenceJobResult.h"
|
||||
#include "model/Personalizedtxt2imgAddModelTrainJobRequest.h"
|
||||
#include "model/Personalizedtxt2imgAddModelTrainJobResult.h"
|
||||
#include "model/Personalizedtxt2imgQueryImageAssetRequest.h"
|
||||
#include "model/Personalizedtxt2imgQueryImageAssetResult.h"
|
||||
#include "model/Personalizedtxt2imgQueryInferenceJobInfoRequest.h"
|
||||
#include "model/Personalizedtxt2imgQueryInferenceJobInfoResult.h"
|
||||
#include "model/Personalizedtxt2imgQueryModelTrainJobListRequest.h"
|
||||
#include "model/Personalizedtxt2imgQueryModelTrainJobListResult.h"
|
||||
#include "model/Personalizedtxt2imgQueryModelTrainStatusRequest.h"
|
||||
#include "model/Personalizedtxt2imgQueryModelTrainStatusResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AiContent
|
||||
{
|
||||
class ALIBABACLOUD_AICONTENT_EXPORT AiContentClient : public RoaServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult> AliyunConsoleOpenApiQueryAliyunConsoleServcieListOutcome;
|
||||
typedef std::future<AliyunConsoleOpenApiQueryAliyunConsoleServcieListOutcome> AliyunConsoleOpenApiQueryAliyunConsoleServcieListOutcomeCallable;
|
||||
typedef std::function<void(const AiContentClient*, const Model::AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest&, const AliyunConsoleOpenApiQueryAliyunConsoleServcieListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AliyunConsoleOpenApiQueryAliyunConsoleServcieListAsyncHandler;
|
||||
typedef Outcome<Error, Model::Personalizedtxt2imgAddInferenceJobResult> Personalizedtxt2imgAddInferenceJobOutcome;
|
||||
typedef std::future<Personalizedtxt2imgAddInferenceJobOutcome> Personalizedtxt2imgAddInferenceJobOutcomeCallable;
|
||||
typedef std::function<void(const AiContentClient*, const Model::Personalizedtxt2imgAddInferenceJobRequest&, const Personalizedtxt2imgAddInferenceJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> Personalizedtxt2imgAddInferenceJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::Personalizedtxt2imgAddModelTrainJobResult> Personalizedtxt2imgAddModelTrainJobOutcome;
|
||||
typedef std::future<Personalizedtxt2imgAddModelTrainJobOutcome> Personalizedtxt2imgAddModelTrainJobOutcomeCallable;
|
||||
typedef std::function<void(const AiContentClient*, const Model::Personalizedtxt2imgAddModelTrainJobRequest&, const Personalizedtxt2imgAddModelTrainJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> Personalizedtxt2imgAddModelTrainJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::Personalizedtxt2imgQueryImageAssetResult> Personalizedtxt2imgQueryImageAssetOutcome;
|
||||
typedef std::future<Personalizedtxt2imgQueryImageAssetOutcome> Personalizedtxt2imgQueryImageAssetOutcomeCallable;
|
||||
typedef std::function<void(const AiContentClient*, const Model::Personalizedtxt2imgQueryImageAssetRequest&, const Personalizedtxt2imgQueryImageAssetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> Personalizedtxt2imgQueryImageAssetAsyncHandler;
|
||||
typedef Outcome<Error, Model::Personalizedtxt2imgQueryInferenceJobInfoResult> Personalizedtxt2imgQueryInferenceJobInfoOutcome;
|
||||
typedef std::future<Personalizedtxt2imgQueryInferenceJobInfoOutcome> Personalizedtxt2imgQueryInferenceJobInfoOutcomeCallable;
|
||||
typedef std::function<void(const AiContentClient*, const Model::Personalizedtxt2imgQueryInferenceJobInfoRequest&, const Personalizedtxt2imgQueryInferenceJobInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> Personalizedtxt2imgQueryInferenceJobInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::Personalizedtxt2imgQueryModelTrainJobListResult> Personalizedtxt2imgQueryModelTrainJobListOutcome;
|
||||
typedef std::future<Personalizedtxt2imgQueryModelTrainJobListOutcome> Personalizedtxt2imgQueryModelTrainJobListOutcomeCallable;
|
||||
typedef std::function<void(const AiContentClient*, const Model::Personalizedtxt2imgQueryModelTrainJobListRequest&, const Personalizedtxt2imgQueryModelTrainJobListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> Personalizedtxt2imgQueryModelTrainJobListAsyncHandler;
|
||||
typedef Outcome<Error, Model::Personalizedtxt2imgQueryModelTrainStatusResult> Personalizedtxt2imgQueryModelTrainStatusOutcome;
|
||||
typedef std::future<Personalizedtxt2imgQueryModelTrainStatusOutcome> Personalizedtxt2imgQueryModelTrainStatusOutcomeCallable;
|
||||
typedef std::function<void(const AiContentClient*, const Model::Personalizedtxt2imgQueryModelTrainStatusRequest&, const Personalizedtxt2imgQueryModelTrainStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> Personalizedtxt2imgQueryModelTrainStatusAsyncHandler;
|
||||
|
||||
AiContentClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
AiContentClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
AiContentClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~AiContentClient();
|
||||
AliyunConsoleOpenApiQueryAliyunConsoleServcieListOutcome aliyunConsoleOpenApiQueryAliyunConsoleServcieList(const Model::AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest &request)const;
|
||||
void aliyunConsoleOpenApiQueryAliyunConsoleServcieListAsync(const Model::AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest& request, const AliyunConsoleOpenApiQueryAliyunConsoleServcieListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AliyunConsoleOpenApiQueryAliyunConsoleServcieListOutcomeCallable aliyunConsoleOpenApiQueryAliyunConsoleServcieListCallable(const Model::AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest& request) const;
|
||||
Personalizedtxt2imgAddInferenceJobOutcome personalizedtxt2imgAddInferenceJob(const Model::Personalizedtxt2imgAddInferenceJobRequest &request)const;
|
||||
void personalizedtxt2imgAddInferenceJobAsync(const Model::Personalizedtxt2imgAddInferenceJobRequest& request, const Personalizedtxt2imgAddInferenceJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
Personalizedtxt2imgAddInferenceJobOutcomeCallable personalizedtxt2imgAddInferenceJobCallable(const Model::Personalizedtxt2imgAddInferenceJobRequest& request) const;
|
||||
Personalizedtxt2imgAddModelTrainJobOutcome personalizedtxt2imgAddModelTrainJob(const Model::Personalizedtxt2imgAddModelTrainJobRequest &request)const;
|
||||
void personalizedtxt2imgAddModelTrainJobAsync(const Model::Personalizedtxt2imgAddModelTrainJobRequest& request, const Personalizedtxt2imgAddModelTrainJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
Personalizedtxt2imgAddModelTrainJobOutcomeCallable personalizedtxt2imgAddModelTrainJobCallable(const Model::Personalizedtxt2imgAddModelTrainJobRequest& request) const;
|
||||
Personalizedtxt2imgQueryImageAssetOutcome personalizedtxt2imgQueryImageAsset(const Model::Personalizedtxt2imgQueryImageAssetRequest &request)const;
|
||||
void personalizedtxt2imgQueryImageAssetAsync(const Model::Personalizedtxt2imgQueryImageAssetRequest& request, const Personalizedtxt2imgQueryImageAssetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
Personalizedtxt2imgQueryImageAssetOutcomeCallable personalizedtxt2imgQueryImageAssetCallable(const Model::Personalizedtxt2imgQueryImageAssetRequest& request) const;
|
||||
Personalizedtxt2imgQueryInferenceJobInfoOutcome personalizedtxt2imgQueryInferenceJobInfo(const Model::Personalizedtxt2imgQueryInferenceJobInfoRequest &request)const;
|
||||
void personalizedtxt2imgQueryInferenceJobInfoAsync(const Model::Personalizedtxt2imgQueryInferenceJobInfoRequest& request, const Personalizedtxt2imgQueryInferenceJobInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
Personalizedtxt2imgQueryInferenceJobInfoOutcomeCallable personalizedtxt2imgQueryInferenceJobInfoCallable(const Model::Personalizedtxt2imgQueryInferenceJobInfoRequest& request) const;
|
||||
Personalizedtxt2imgQueryModelTrainJobListOutcome personalizedtxt2imgQueryModelTrainJobList(const Model::Personalizedtxt2imgQueryModelTrainJobListRequest &request)const;
|
||||
void personalizedtxt2imgQueryModelTrainJobListAsync(const Model::Personalizedtxt2imgQueryModelTrainJobListRequest& request, const Personalizedtxt2imgQueryModelTrainJobListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
Personalizedtxt2imgQueryModelTrainJobListOutcomeCallable personalizedtxt2imgQueryModelTrainJobListCallable(const Model::Personalizedtxt2imgQueryModelTrainJobListRequest& request) const;
|
||||
Personalizedtxt2imgQueryModelTrainStatusOutcome personalizedtxt2imgQueryModelTrainStatus(const Model::Personalizedtxt2imgQueryModelTrainStatusRequest &request)const;
|
||||
void personalizedtxt2imgQueryModelTrainStatusAsync(const Model::Personalizedtxt2imgQueryModelTrainStatusRequest& request, const Personalizedtxt2imgQueryModelTrainStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
Personalizedtxt2imgQueryModelTrainStatusOutcomeCallable personalizedtxt2imgQueryModelTrainStatusCallable(const Model::Personalizedtxt2imgQueryModelTrainStatusRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_AICONTENT_AICONTENTCLIENT_H_
|
||||
32
aicontent/include/alibabacloud/aicontent/AiContentExport.h
Normal file
32
aicontent/include/alibabacloud/aicontent/AiContentExport.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AICONTENT_AICONTENTEXPORT_H_
|
||||
#define ALIBABACLOUD_AICONTENT_AICONTENTEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_AICONTENT_LIBRARY)
|
||||
# define ALIBABACLOUD_AICONTENT_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_AICONTENT_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_AICONTENT_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_AICONTENT_AICONTENTEXPORT_H_
|
||||
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AICONTENT_MODEL_ALIYUNCONSOLEOPENAPIQUERYALIYUNCONSOLESERVCIELISTREQUEST_H_
|
||||
#define ALIBABACLOUD_AICONTENT_MODEL_ALIYUNCONSOLEOPENAPIQUERYALIYUNCONSOLESERVCIELISTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/aicontent/AiContentExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace AiContent {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AICONTENT_EXPORT AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest : public RoaServiceRequest {
|
||||
public:
|
||||
AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest();
|
||||
~AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest();
|
||||
|
||||
private:
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace AiContent
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AICONTENT_MODEL_ALIYUNCONSOLEOPENAPIQUERYALIYUNCONSOLESERVCIELISTREQUEST_H_
|
||||
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AICONTENT_MODEL_ALIYUNCONSOLEOPENAPIQUERYALIYUNCONSOLESERVCIELISTRESULT_H_
|
||||
#define ALIBABACLOUD_AICONTENT_MODEL_ALIYUNCONSOLEOPENAPIQUERYALIYUNCONSOLESERVCIELISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aicontent/AiContentExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AiContent
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AICONTENT_EXPORT AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataItem
|
||||
{
|
||||
struct InferenceJobListItem
|
||||
{
|
||||
std::string jobStatus;
|
||||
double jobTrainProgress;
|
||||
std::string createTime;
|
||||
std::string id;
|
||||
std::vector<std::string> resultImageUrl;
|
||||
std::string promptId;
|
||||
std::string modelId;
|
||||
};
|
||||
std::string jobStatus;
|
||||
std::string objectType;
|
||||
double jobTrainProgress;
|
||||
std::string createTime;
|
||||
std::vector<std::string> imageUrl;
|
||||
std::string id;
|
||||
int inferenceImageCount;
|
||||
std::vector<DataItem::InferenceJobListItem> inferenceJobList;
|
||||
std::string modelId;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult();
|
||||
explicit AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult(const std::string &payload);
|
||||
~AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult();
|
||||
std::vector<DataItem> getdata()const;
|
||||
std::string getRequestId()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<DataItem> data_;
|
||||
std::string requestId_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AICONTENT_MODEL_ALIYUNCONSOLEOPENAPIQUERYALIYUNCONSOLESERVCIELISTRESULT_H_
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDINFERENCEJOBREQUEST_H_
|
||||
#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDINFERENCEJOBREQUEST_H_
|
||||
|
||||
#include <alibabacloud/aicontent/AiContentExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace AiContent {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgAddInferenceJobRequest : public RoaServiceRequest {
|
||||
public:
|
||||
Personalizedtxt2imgAddInferenceJobRequest();
|
||||
~Personalizedtxt2imgAddInferenceJobRequest();
|
||||
std::string getBody() const;
|
||||
void setBody(const std::string &body);
|
||||
|
||||
private:
|
||||
std::string body_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace AiContent
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDINFERENCEJOBREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDINFERENCEJOBRESULT_H_
|
||||
#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDINFERENCEJOBRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aicontent/AiContentExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AiContent
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgAddInferenceJobResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string modelTrainStatus;
|
||||
};
|
||||
|
||||
|
||||
Personalizedtxt2imgAddInferenceJobResult();
|
||||
explicit Personalizedtxt2imgAddInferenceJobResult(const std::string &payload);
|
||||
~Personalizedtxt2imgAddInferenceJobResult();
|
||||
std::string getRequestId()const;
|
||||
Data getData()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string requestId_;
|
||||
Data data_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDINFERENCEJOBRESULT_H_
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDMODELTRAINJOBREQUEST_H_
|
||||
#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDMODELTRAINJOBREQUEST_H_
|
||||
|
||||
#include <alibabacloud/aicontent/AiContentExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace AiContent {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgAddModelTrainJobRequest : public RoaServiceRequest {
|
||||
public:
|
||||
Personalizedtxt2imgAddModelTrainJobRequest();
|
||||
~Personalizedtxt2imgAddModelTrainJobRequest();
|
||||
std::string getBody() const;
|
||||
void setBody(const std::string &body);
|
||||
|
||||
private:
|
||||
std::string body_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace AiContent
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDMODELTRAINJOBREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDMODELTRAINJOBRESULT_H_
|
||||
#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDMODELTRAINJOBRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aicontent/AiContentExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AiContent
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgAddModelTrainJobResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string modelTrainStatus;
|
||||
};
|
||||
|
||||
|
||||
Personalizedtxt2imgAddModelTrainJobResult();
|
||||
explicit Personalizedtxt2imgAddModelTrainJobResult(const std::string &payload);
|
||||
~Personalizedtxt2imgAddModelTrainJobResult();
|
||||
std::string getRequestId()const;
|
||||
Data getData()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string requestId_;
|
||||
Data data_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGADDMODELTRAINJOBRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYIMAGEASSETREQUEST_H_
|
||||
#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYIMAGEASSETREQUEST_H_
|
||||
|
||||
#include <alibabacloud/aicontent/AiContentExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace AiContent {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgQueryImageAssetRequest : public RoaServiceRequest {
|
||||
public:
|
||||
Personalizedtxt2imgQueryImageAssetRequest();
|
||||
~Personalizedtxt2imgQueryImageAssetRequest();
|
||||
std::string getImageId() const;
|
||||
void setImageId(const std::string &imageId);
|
||||
std::string getModelId() const;
|
||||
void setModelId(const std::string &modelId);
|
||||
std::string getEncodeFormat() const;
|
||||
void setEncodeFormat(const std::string &encodeFormat);
|
||||
std::string getPromptId() const;
|
||||
void setPromptId(const std::string &promptId);
|
||||
|
||||
private:
|
||||
std::string imageId_;
|
||||
std::string modelId_;
|
||||
std::string encodeFormat_;
|
||||
std::string promptId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace AiContent
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYIMAGEASSETREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYIMAGEASSETRESULT_H_
|
||||
#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYIMAGEASSETRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aicontent/AiContentExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AiContent
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgQueryImageAssetResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
Personalizedtxt2imgQueryImageAssetResult();
|
||||
explicit Personalizedtxt2imgQueryImageAssetResult(const std::string &payload);
|
||||
~Personalizedtxt2imgQueryImageAssetResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYIMAGEASSETRESULT_H_
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYINFERENCEJOBINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYINFERENCEJOBINFOREQUEST_H_
|
||||
|
||||
#include <alibabacloud/aicontent/AiContentExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace AiContent {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgQueryInferenceJobInfoRequest : public RoaServiceRequest {
|
||||
public:
|
||||
Personalizedtxt2imgQueryInferenceJobInfoRequest();
|
||||
~Personalizedtxt2imgQueryInferenceJobInfoRequest();
|
||||
std::string getInferenceJobId() const;
|
||||
void setInferenceJobId(const std::string &inferenceJobId);
|
||||
|
||||
private:
|
||||
std::string inferenceJobId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace AiContent
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYINFERENCEJOBINFOREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYINFERENCEJOBINFORESULT_H_
|
||||
#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYINFERENCEJOBINFORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aicontent/AiContentExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AiContent
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgQueryInferenceJobInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string modelTrainStatus;
|
||||
};
|
||||
|
||||
|
||||
Personalizedtxt2imgQueryInferenceJobInfoResult();
|
||||
explicit Personalizedtxt2imgQueryInferenceJobInfoResult(const std::string &payload);
|
||||
~Personalizedtxt2imgQueryInferenceJobInfoResult();
|
||||
std::string getRequestId()const;
|
||||
Data getData()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string requestId_;
|
||||
Data data_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYINFERENCEJOBINFORESULT_H_
|
||||
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINJOBLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINJOBLISTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/aicontent/AiContentExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace AiContent {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgQueryModelTrainJobListRequest : public RoaServiceRequest {
|
||||
public:
|
||||
Personalizedtxt2imgQueryModelTrainJobListRequest();
|
||||
~Personalizedtxt2imgQueryModelTrainJobListRequest();
|
||||
|
||||
private:
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace AiContent
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINJOBLISTREQUEST_H_
|
||||
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINJOBLISTRESULT_H_
|
||||
#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINJOBLISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aicontent/AiContentExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AiContent
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgQueryModelTrainJobListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataItem
|
||||
{
|
||||
struct InferenceJobListItem
|
||||
{
|
||||
std::string jobStatus;
|
||||
double jobTrainProgress;
|
||||
std::string createTime;
|
||||
std::string id;
|
||||
std::vector<std::string> resultImageUrl;
|
||||
std::string promptId;
|
||||
std::string modelId;
|
||||
};
|
||||
std::string jobStatus;
|
||||
std::string objectType;
|
||||
double jobTrainProgress;
|
||||
std::string createTime;
|
||||
std::vector<std::string> imageUrl;
|
||||
std::string id;
|
||||
int inferenceImageCount;
|
||||
std::vector<DataItem::InferenceJobListItem> inferenceJobList;
|
||||
std::string modelId;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
Personalizedtxt2imgQueryModelTrainJobListResult();
|
||||
explicit Personalizedtxt2imgQueryModelTrainJobListResult(const std::string &payload);
|
||||
~Personalizedtxt2imgQueryModelTrainJobListResult();
|
||||
std::vector<DataItem> getdata()const;
|
||||
std::string getRequestId()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<DataItem> data_;
|
||||
std::string requestId_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINJOBLISTRESULT_H_
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINSTATUSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/aicontent/AiContentExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace AiContent {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgQueryModelTrainStatusRequest : public RoaServiceRequest {
|
||||
public:
|
||||
Personalizedtxt2imgQueryModelTrainStatusRequest();
|
||||
~Personalizedtxt2imgQueryModelTrainStatusRequest();
|
||||
std::string getModelId() const;
|
||||
void setModelId(const std::string &modelId);
|
||||
|
||||
private:
|
||||
std::string modelId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace AiContent
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINSTATUSREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINSTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aicontent/AiContentExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AiContent
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AICONTENT_EXPORT Personalizedtxt2imgQueryModelTrainStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string modelTrainStatus;
|
||||
};
|
||||
|
||||
|
||||
Personalizedtxt2imgQueryModelTrainStatusResult();
|
||||
explicit Personalizedtxt2imgQueryModelTrainStatusResult(const std::string &payload);
|
||||
~Personalizedtxt2imgQueryModelTrainStatusResult();
|
||||
std::string getRequestId()const;
|
||||
Data getData()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string requestId_;
|
||||
Data data_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AICONTENT_MODEL_PERSONALIZEDTXT2IMGQUERYMODELTRAINSTATUSRESULT_H_
|
||||
305
aicontent/src/AiContentClient.cc
Normal file
305
aicontent/src/AiContentClient.cc
Normal file
@@ -0,0 +1,305 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aicontent/AiContentClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::AiContent;
|
||||
using namespace AlibabaCloud::AiContent::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "AiContent";
|
||||
}
|
||||
|
||||
AiContentClient::AiContentClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RoaServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
AiContentClient::AiContentClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
AiContentClient::AiContentClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RoaServiceClient(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, "");
|
||||
}
|
||||
|
||||
AiContentClient::~AiContentClient()
|
||||
{}
|
||||
|
||||
AiContentClient::AliyunConsoleOpenApiQueryAliyunConsoleServcieListOutcome AiContentClient::aliyunConsoleOpenApiQueryAliyunConsoleServcieList(const AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AliyunConsoleOpenApiQueryAliyunConsoleServcieListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AliyunConsoleOpenApiQueryAliyunConsoleServcieListOutcome(AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult(outcome.result()));
|
||||
else
|
||||
return AliyunConsoleOpenApiQueryAliyunConsoleServcieListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AiContentClient::aliyunConsoleOpenApiQueryAliyunConsoleServcieListAsync(const AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest& request, const AliyunConsoleOpenApiQueryAliyunConsoleServcieListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, aliyunConsoleOpenApiQueryAliyunConsoleServcieList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AiContentClient::AliyunConsoleOpenApiQueryAliyunConsoleServcieListOutcomeCallable AiContentClient::aliyunConsoleOpenApiQueryAliyunConsoleServcieListCallable(const AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AliyunConsoleOpenApiQueryAliyunConsoleServcieListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->aliyunConsoleOpenApiQueryAliyunConsoleServcieList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AiContentClient::Personalizedtxt2imgAddInferenceJobOutcome AiContentClient::personalizedtxt2imgAddInferenceJob(const Personalizedtxt2imgAddInferenceJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return Personalizedtxt2imgAddInferenceJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return Personalizedtxt2imgAddInferenceJobOutcome(Personalizedtxt2imgAddInferenceJobResult(outcome.result()));
|
||||
else
|
||||
return Personalizedtxt2imgAddInferenceJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AiContentClient::personalizedtxt2imgAddInferenceJobAsync(const Personalizedtxt2imgAddInferenceJobRequest& request, const Personalizedtxt2imgAddInferenceJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, personalizedtxt2imgAddInferenceJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AiContentClient::Personalizedtxt2imgAddInferenceJobOutcomeCallable AiContentClient::personalizedtxt2imgAddInferenceJobCallable(const Personalizedtxt2imgAddInferenceJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<Personalizedtxt2imgAddInferenceJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->personalizedtxt2imgAddInferenceJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AiContentClient::Personalizedtxt2imgAddModelTrainJobOutcome AiContentClient::personalizedtxt2imgAddModelTrainJob(const Personalizedtxt2imgAddModelTrainJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return Personalizedtxt2imgAddModelTrainJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return Personalizedtxt2imgAddModelTrainJobOutcome(Personalizedtxt2imgAddModelTrainJobResult(outcome.result()));
|
||||
else
|
||||
return Personalizedtxt2imgAddModelTrainJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AiContentClient::personalizedtxt2imgAddModelTrainJobAsync(const Personalizedtxt2imgAddModelTrainJobRequest& request, const Personalizedtxt2imgAddModelTrainJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, personalizedtxt2imgAddModelTrainJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AiContentClient::Personalizedtxt2imgAddModelTrainJobOutcomeCallable AiContentClient::personalizedtxt2imgAddModelTrainJobCallable(const Personalizedtxt2imgAddModelTrainJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<Personalizedtxt2imgAddModelTrainJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->personalizedtxt2imgAddModelTrainJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AiContentClient::Personalizedtxt2imgQueryImageAssetOutcome AiContentClient::personalizedtxt2imgQueryImageAsset(const Personalizedtxt2imgQueryImageAssetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return Personalizedtxt2imgQueryImageAssetOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return Personalizedtxt2imgQueryImageAssetOutcome(Personalizedtxt2imgQueryImageAssetResult(outcome.result()));
|
||||
else
|
||||
return Personalizedtxt2imgQueryImageAssetOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AiContentClient::personalizedtxt2imgQueryImageAssetAsync(const Personalizedtxt2imgQueryImageAssetRequest& request, const Personalizedtxt2imgQueryImageAssetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, personalizedtxt2imgQueryImageAsset(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AiContentClient::Personalizedtxt2imgQueryImageAssetOutcomeCallable AiContentClient::personalizedtxt2imgQueryImageAssetCallable(const Personalizedtxt2imgQueryImageAssetRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<Personalizedtxt2imgQueryImageAssetOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->personalizedtxt2imgQueryImageAsset(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AiContentClient::Personalizedtxt2imgQueryInferenceJobInfoOutcome AiContentClient::personalizedtxt2imgQueryInferenceJobInfo(const Personalizedtxt2imgQueryInferenceJobInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return Personalizedtxt2imgQueryInferenceJobInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return Personalizedtxt2imgQueryInferenceJobInfoOutcome(Personalizedtxt2imgQueryInferenceJobInfoResult(outcome.result()));
|
||||
else
|
||||
return Personalizedtxt2imgQueryInferenceJobInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AiContentClient::personalizedtxt2imgQueryInferenceJobInfoAsync(const Personalizedtxt2imgQueryInferenceJobInfoRequest& request, const Personalizedtxt2imgQueryInferenceJobInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, personalizedtxt2imgQueryInferenceJobInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AiContentClient::Personalizedtxt2imgQueryInferenceJobInfoOutcomeCallable AiContentClient::personalizedtxt2imgQueryInferenceJobInfoCallable(const Personalizedtxt2imgQueryInferenceJobInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<Personalizedtxt2imgQueryInferenceJobInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->personalizedtxt2imgQueryInferenceJobInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AiContentClient::Personalizedtxt2imgQueryModelTrainJobListOutcome AiContentClient::personalizedtxt2imgQueryModelTrainJobList(const Personalizedtxt2imgQueryModelTrainJobListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return Personalizedtxt2imgQueryModelTrainJobListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return Personalizedtxt2imgQueryModelTrainJobListOutcome(Personalizedtxt2imgQueryModelTrainJobListResult(outcome.result()));
|
||||
else
|
||||
return Personalizedtxt2imgQueryModelTrainJobListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AiContentClient::personalizedtxt2imgQueryModelTrainJobListAsync(const Personalizedtxt2imgQueryModelTrainJobListRequest& request, const Personalizedtxt2imgQueryModelTrainJobListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, personalizedtxt2imgQueryModelTrainJobList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AiContentClient::Personalizedtxt2imgQueryModelTrainJobListOutcomeCallable AiContentClient::personalizedtxt2imgQueryModelTrainJobListCallable(const Personalizedtxt2imgQueryModelTrainJobListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<Personalizedtxt2imgQueryModelTrainJobListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->personalizedtxt2imgQueryModelTrainJobList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AiContentClient::Personalizedtxt2imgQueryModelTrainStatusOutcome AiContentClient::personalizedtxt2imgQueryModelTrainStatus(const Personalizedtxt2imgQueryModelTrainStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return Personalizedtxt2imgQueryModelTrainStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return Personalizedtxt2imgQueryModelTrainStatusOutcome(Personalizedtxt2imgQueryModelTrainStatusResult(outcome.result()));
|
||||
else
|
||||
return Personalizedtxt2imgQueryModelTrainStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AiContentClient::personalizedtxt2imgQueryModelTrainStatusAsync(const Personalizedtxt2imgQueryModelTrainStatusRequest& request, const Personalizedtxt2imgQueryModelTrainStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, personalizedtxt2imgQueryModelTrainStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AiContentClient::Personalizedtxt2imgQueryModelTrainStatusOutcomeCallable AiContentClient::personalizedtxt2imgQueryModelTrainStatusCallable(const Personalizedtxt2imgQueryModelTrainStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<Personalizedtxt2imgQueryModelTrainStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->personalizedtxt2imgQueryModelTrainStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aicontent/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest.h>
|
||||
|
||||
using AlibabaCloud::AiContent::Model::AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest;
|
||||
|
||||
AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest::AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest()
|
||||
: RoaServiceRequest("aicontent", "20240611") {
|
||||
setResourcePath("/api/v1/aliyunconsole/queryAliyunConsoleServcieList"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest::~AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest() {}
|
||||
|
||||
@@ -0,0 +1,123 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aicontent/model/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::AiContent;
|
||||
using namespace AlibabaCloud::AiContent::Model;
|
||||
|
||||
AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult::AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult::AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult::~AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult()
|
||||
{}
|
||||
|
||||
void AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto alldataNode = value["data"]["dataItem"];
|
||||
for (auto valuedatadataItem : alldataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valuedatadataItem["id"].isNull())
|
||||
dataObject.id = valuedatadataItem["id"].asString();
|
||||
if(!valuedatadataItem["modelId"].isNull())
|
||||
dataObject.modelId = valuedatadataItem["modelId"].asString();
|
||||
if(!valuedatadataItem["name"].isNull())
|
||||
dataObject.name = valuedatadataItem["name"].asString();
|
||||
if(!valuedatadataItem["objectType"].isNull())
|
||||
dataObject.objectType = valuedatadataItem["objectType"].asString();
|
||||
if(!valuedatadataItem["jobStatus"].isNull())
|
||||
dataObject.jobStatus = valuedatadataItem["jobStatus"].asString();
|
||||
if(!valuedatadataItem["jobTrainProgress"].isNull())
|
||||
dataObject.jobTrainProgress = valuedatadataItem["jobTrainProgress"].asString();
|
||||
if(!valuedatadataItem["inferenceImageCount"].isNull())
|
||||
dataObject.inferenceImageCount = std::stoi(valuedatadataItem["inferenceImageCount"].asString());
|
||||
if(!valuedatadataItem["createTime"].isNull())
|
||||
dataObject.createTime = valuedatadataItem["createTime"].asString();
|
||||
auto allinferenceJobListNode = valuedatadataItem["inferenceJobList"]["inferenceJobListItem"];
|
||||
for (auto valuedatadataIteminferenceJobListinferenceJobListItem : allinferenceJobListNode)
|
||||
{
|
||||
DataItem::InferenceJobListItem inferenceJobListObject;
|
||||
if(!valuedatadataIteminferenceJobListinferenceJobListItem["id"].isNull())
|
||||
inferenceJobListObject.id = valuedatadataIteminferenceJobListinferenceJobListItem["id"].asString();
|
||||
if(!valuedatadataIteminferenceJobListinferenceJobListItem["promptId"].isNull())
|
||||
inferenceJobListObject.promptId = valuedatadataIteminferenceJobListinferenceJobListItem["promptId"].asString();
|
||||
if(!valuedatadataIteminferenceJobListinferenceJobListItem["modelId"].isNull())
|
||||
inferenceJobListObject.modelId = valuedatadataIteminferenceJobListinferenceJobListItem["modelId"].asString();
|
||||
if(!valuedatadataIteminferenceJobListinferenceJobListItem["jobStatus"].isNull())
|
||||
inferenceJobListObject.jobStatus = valuedatadataIteminferenceJobListinferenceJobListItem["jobStatus"].asString();
|
||||
if(!valuedatadataIteminferenceJobListinferenceJobListItem["jobTrainProgress"].isNull())
|
||||
inferenceJobListObject.jobTrainProgress = valuedatadataIteminferenceJobListinferenceJobListItem["jobTrainProgress"].asString();
|
||||
if(!valuedatadataIteminferenceJobListinferenceJobListItem["createTime"].isNull())
|
||||
inferenceJobListObject.createTime = valuedatadataIteminferenceJobListinferenceJobListItem["createTime"].asString();
|
||||
auto allResultImageUrl = value["resultImageUrl"]["resultImageUrl"];
|
||||
for (auto value : allResultImageUrl)
|
||||
inferenceJobListObject.resultImageUrl.push_back(value.asString());
|
||||
dataObject.inferenceJobList.push_back(inferenceJobListObject);
|
||||
}
|
||||
auto allImageUrl = value["imageUrl"]["imageUrl"];
|
||||
for (auto value : allImageUrl)
|
||||
dataObject.imageUrl.push_back(value.asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
if(!value["success"].isNull())
|
||||
success_ = value["success"].asString() == "true";
|
||||
if(!value["errCode"].isNull())
|
||||
errCode_ = value["errCode"].asString();
|
||||
if(!value["errMessage"].isNull())
|
||||
errMessage_ = value["errMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult::DataItem> AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult::getdata()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
std::string AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string AliyunConsoleOpenApiQueryAliyunConsoleServcieListResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aicontent/model/Personalizedtxt2imgAddInferenceJobRequest.h>
|
||||
|
||||
using AlibabaCloud::AiContent::Model::Personalizedtxt2imgAddInferenceJobRequest;
|
||||
|
||||
Personalizedtxt2imgAddInferenceJobRequest::Personalizedtxt2imgAddInferenceJobRequest()
|
||||
: RoaServiceRequest("aicontent", "20240611") {
|
||||
setResourcePath("/api/v1/personalizedtxt2img/addInferenceJob"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
Personalizedtxt2imgAddInferenceJobRequest::~Personalizedtxt2imgAddInferenceJobRequest() {}
|
||||
|
||||
std::string Personalizedtxt2imgAddInferenceJobRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void Personalizedtxt2imgAddInferenceJobRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aicontent/model/Personalizedtxt2imgAddInferenceJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::AiContent;
|
||||
using namespace AlibabaCloud::AiContent::Model;
|
||||
|
||||
Personalizedtxt2imgAddInferenceJobResult::Personalizedtxt2imgAddInferenceJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
Personalizedtxt2imgAddInferenceJobResult::Personalizedtxt2imgAddInferenceJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
Personalizedtxt2imgAddInferenceJobResult::~Personalizedtxt2imgAddInferenceJobResult()
|
||||
{}
|
||||
|
||||
void Personalizedtxt2imgAddInferenceJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["modelTrainStatus"].isNull())
|
||||
data_.modelTrainStatus = dataNode["modelTrainStatus"].asString();
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
if(!value["success"].isNull())
|
||||
success_ = value["success"].asString() == "true";
|
||||
if(!value["errCode"].isNull())
|
||||
errCode_ = value["errCode"].asString();
|
||||
if(!value["errMessage"].isNull())
|
||||
errMessage_ = value["errMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string Personalizedtxt2imgAddInferenceJobResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
Personalizedtxt2imgAddInferenceJobResult::Data Personalizedtxt2imgAddInferenceJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string Personalizedtxt2imgAddInferenceJobResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool Personalizedtxt2imgAddInferenceJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string Personalizedtxt2imgAddInferenceJobResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aicontent/model/Personalizedtxt2imgAddModelTrainJobRequest.h>
|
||||
|
||||
using AlibabaCloud::AiContent::Model::Personalizedtxt2imgAddModelTrainJobRequest;
|
||||
|
||||
Personalizedtxt2imgAddModelTrainJobRequest::Personalizedtxt2imgAddModelTrainJobRequest()
|
||||
: RoaServiceRequest("aicontent", "20240611") {
|
||||
setResourcePath("/api/v1/personalizedtxt2img/addModelTrainJob"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
Personalizedtxt2imgAddModelTrainJobRequest::~Personalizedtxt2imgAddModelTrainJobRequest() {}
|
||||
|
||||
std::string Personalizedtxt2imgAddModelTrainJobRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void Personalizedtxt2imgAddModelTrainJobRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aicontent/model/Personalizedtxt2imgAddModelTrainJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::AiContent;
|
||||
using namespace AlibabaCloud::AiContent::Model;
|
||||
|
||||
Personalizedtxt2imgAddModelTrainJobResult::Personalizedtxt2imgAddModelTrainJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
Personalizedtxt2imgAddModelTrainJobResult::Personalizedtxt2imgAddModelTrainJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
Personalizedtxt2imgAddModelTrainJobResult::~Personalizedtxt2imgAddModelTrainJobResult()
|
||||
{}
|
||||
|
||||
void Personalizedtxt2imgAddModelTrainJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["modelTrainStatus"].isNull())
|
||||
data_.modelTrainStatus = dataNode["modelTrainStatus"].asString();
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
if(!value["success"].isNull())
|
||||
success_ = value["success"].asString() == "true";
|
||||
if(!value["errCode"].isNull())
|
||||
errCode_ = value["errCode"].asString();
|
||||
if(!value["errMessage"].isNull())
|
||||
errMessage_ = value["errMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string Personalizedtxt2imgAddModelTrainJobResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
Personalizedtxt2imgAddModelTrainJobResult::Data Personalizedtxt2imgAddModelTrainJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string Personalizedtxt2imgAddModelTrainJobResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool Personalizedtxt2imgAddModelTrainJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string Personalizedtxt2imgAddModelTrainJobResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aicontent/model/Personalizedtxt2imgQueryImageAssetRequest.h>
|
||||
|
||||
using AlibabaCloud::AiContent::Model::Personalizedtxt2imgQueryImageAssetRequest;
|
||||
|
||||
Personalizedtxt2imgQueryImageAssetRequest::Personalizedtxt2imgQueryImageAssetRequest()
|
||||
: RoaServiceRequest("aicontent", "20240611") {
|
||||
setResourcePath("/api/v1/personalizedtxt2img/queryImageAsset"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
Personalizedtxt2imgQueryImageAssetRequest::~Personalizedtxt2imgQueryImageAssetRequest() {}
|
||||
|
||||
std::string Personalizedtxt2imgQueryImageAssetRequest::getImageId() const {
|
||||
return imageId_;
|
||||
}
|
||||
|
||||
void Personalizedtxt2imgQueryImageAssetRequest::setImageId(const std::string &imageId) {
|
||||
imageId_ = imageId;
|
||||
setParameter(std::string("imageId"), imageId);
|
||||
}
|
||||
|
||||
std::string Personalizedtxt2imgQueryImageAssetRequest::getModelId() const {
|
||||
return modelId_;
|
||||
}
|
||||
|
||||
void Personalizedtxt2imgQueryImageAssetRequest::setModelId(const std::string &modelId) {
|
||||
modelId_ = modelId;
|
||||
setParameter(std::string("modelId"), modelId);
|
||||
}
|
||||
|
||||
std::string Personalizedtxt2imgQueryImageAssetRequest::getEncodeFormat() const {
|
||||
return encodeFormat_;
|
||||
}
|
||||
|
||||
void Personalizedtxt2imgQueryImageAssetRequest::setEncodeFormat(const std::string &encodeFormat) {
|
||||
encodeFormat_ = encodeFormat;
|
||||
setParameter(std::string("encodeFormat"), encodeFormat);
|
||||
}
|
||||
|
||||
std::string Personalizedtxt2imgQueryImageAssetRequest::getPromptId() const {
|
||||
return promptId_;
|
||||
}
|
||||
|
||||
void Personalizedtxt2imgQueryImageAssetRequest::setPromptId(const std::string &promptId) {
|
||||
promptId_ = promptId;
|
||||
setParameter(std::string("promptId"), promptId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aicontent/model/Personalizedtxt2imgQueryImageAssetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::AiContent;
|
||||
using namespace AlibabaCloud::AiContent::Model;
|
||||
|
||||
Personalizedtxt2imgQueryImageAssetResult::Personalizedtxt2imgQueryImageAssetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
Personalizedtxt2imgQueryImageAssetResult::Personalizedtxt2imgQueryImageAssetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
Personalizedtxt2imgQueryImageAssetResult::~Personalizedtxt2imgQueryImageAssetResult()
|
||||
{}
|
||||
|
||||
void Personalizedtxt2imgQueryImageAssetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aicontent/model/Personalizedtxt2imgQueryInferenceJobInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::AiContent::Model::Personalizedtxt2imgQueryInferenceJobInfoRequest;
|
||||
|
||||
Personalizedtxt2imgQueryInferenceJobInfoRequest::Personalizedtxt2imgQueryInferenceJobInfoRequest()
|
||||
: RoaServiceRequest("aicontent", "20240611") {
|
||||
setResourcePath("/api/v1/personalizedtxt2img/queryInferenceJobInfo"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
Personalizedtxt2imgQueryInferenceJobInfoRequest::~Personalizedtxt2imgQueryInferenceJobInfoRequest() {}
|
||||
|
||||
std::string Personalizedtxt2imgQueryInferenceJobInfoRequest::getInferenceJobId() const {
|
||||
return inferenceJobId_;
|
||||
}
|
||||
|
||||
void Personalizedtxt2imgQueryInferenceJobInfoRequest::setInferenceJobId(const std::string &inferenceJobId) {
|
||||
inferenceJobId_ = inferenceJobId;
|
||||
setParameter(std::string("inferenceJobId"), inferenceJobId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aicontent/model/Personalizedtxt2imgQueryInferenceJobInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::AiContent;
|
||||
using namespace AlibabaCloud::AiContent::Model;
|
||||
|
||||
Personalizedtxt2imgQueryInferenceJobInfoResult::Personalizedtxt2imgQueryInferenceJobInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
Personalizedtxt2imgQueryInferenceJobInfoResult::Personalizedtxt2imgQueryInferenceJobInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
Personalizedtxt2imgQueryInferenceJobInfoResult::~Personalizedtxt2imgQueryInferenceJobInfoResult()
|
||||
{}
|
||||
|
||||
void Personalizedtxt2imgQueryInferenceJobInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["modelTrainStatus"].isNull())
|
||||
data_.modelTrainStatus = dataNode["modelTrainStatus"].asString();
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
if(!value["success"].isNull())
|
||||
success_ = value["success"].asString() == "true";
|
||||
if(!value["errCode"].isNull())
|
||||
errCode_ = value["errCode"].asString();
|
||||
if(!value["errMessage"].isNull())
|
||||
errMessage_ = value["errMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string Personalizedtxt2imgQueryInferenceJobInfoResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
Personalizedtxt2imgQueryInferenceJobInfoResult::Data Personalizedtxt2imgQueryInferenceJobInfoResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string Personalizedtxt2imgQueryInferenceJobInfoResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool Personalizedtxt2imgQueryInferenceJobInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string Personalizedtxt2imgQueryInferenceJobInfoResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainJobListRequest.h>
|
||||
|
||||
using AlibabaCloud::AiContent::Model::Personalizedtxt2imgQueryModelTrainJobListRequest;
|
||||
|
||||
Personalizedtxt2imgQueryModelTrainJobListRequest::Personalizedtxt2imgQueryModelTrainJobListRequest()
|
||||
: RoaServiceRequest("aicontent", "20240611") {
|
||||
setResourcePath("/api/v1/personalizedtxt2img/queryModelTrainJobList"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
Personalizedtxt2imgQueryModelTrainJobListRequest::~Personalizedtxt2imgQueryModelTrainJobListRequest() {}
|
||||
|
||||
@@ -0,0 +1,123 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainJobListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::AiContent;
|
||||
using namespace AlibabaCloud::AiContent::Model;
|
||||
|
||||
Personalizedtxt2imgQueryModelTrainJobListResult::Personalizedtxt2imgQueryModelTrainJobListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
Personalizedtxt2imgQueryModelTrainJobListResult::Personalizedtxt2imgQueryModelTrainJobListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
Personalizedtxt2imgQueryModelTrainJobListResult::~Personalizedtxt2imgQueryModelTrainJobListResult()
|
||||
{}
|
||||
|
||||
void Personalizedtxt2imgQueryModelTrainJobListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto alldataNode = value["data"]["dataItem"];
|
||||
for (auto valuedatadataItem : alldataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valuedatadataItem["id"].isNull())
|
||||
dataObject.id = valuedatadataItem["id"].asString();
|
||||
if(!valuedatadataItem["modelId"].isNull())
|
||||
dataObject.modelId = valuedatadataItem["modelId"].asString();
|
||||
if(!valuedatadataItem["name"].isNull())
|
||||
dataObject.name = valuedatadataItem["name"].asString();
|
||||
if(!valuedatadataItem["objectType"].isNull())
|
||||
dataObject.objectType = valuedatadataItem["objectType"].asString();
|
||||
if(!valuedatadataItem["jobStatus"].isNull())
|
||||
dataObject.jobStatus = valuedatadataItem["jobStatus"].asString();
|
||||
if(!valuedatadataItem["jobTrainProgress"].isNull())
|
||||
dataObject.jobTrainProgress = valuedatadataItem["jobTrainProgress"].asString();
|
||||
if(!valuedatadataItem["inferenceImageCount"].isNull())
|
||||
dataObject.inferenceImageCount = std::stoi(valuedatadataItem["inferenceImageCount"].asString());
|
||||
if(!valuedatadataItem["createTime"].isNull())
|
||||
dataObject.createTime = valuedatadataItem["createTime"].asString();
|
||||
auto allinferenceJobListNode = valuedatadataItem["inferenceJobList"]["inferenceJobListItem"];
|
||||
for (auto valuedatadataIteminferenceJobListinferenceJobListItem : allinferenceJobListNode)
|
||||
{
|
||||
DataItem::InferenceJobListItem inferenceJobListObject;
|
||||
if(!valuedatadataIteminferenceJobListinferenceJobListItem["id"].isNull())
|
||||
inferenceJobListObject.id = valuedatadataIteminferenceJobListinferenceJobListItem["id"].asString();
|
||||
if(!valuedatadataIteminferenceJobListinferenceJobListItem["promptId"].isNull())
|
||||
inferenceJobListObject.promptId = valuedatadataIteminferenceJobListinferenceJobListItem["promptId"].asString();
|
||||
if(!valuedatadataIteminferenceJobListinferenceJobListItem["modelId"].isNull())
|
||||
inferenceJobListObject.modelId = valuedatadataIteminferenceJobListinferenceJobListItem["modelId"].asString();
|
||||
if(!valuedatadataIteminferenceJobListinferenceJobListItem["jobStatus"].isNull())
|
||||
inferenceJobListObject.jobStatus = valuedatadataIteminferenceJobListinferenceJobListItem["jobStatus"].asString();
|
||||
if(!valuedatadataIteminferenceJobListinferenceJobListItem["jobTrainProgress"].isNull())
|
||||
inferenceJobListObject.jobTrainProgress = valuedatadataIteminferenceJobListinferenceJobListItem["jobTrainProgress"].asString();
|
||||
if(!valuedatadataIteminferenceJobListinferenceJobListItem["createTime"].isNull())
|
||||
inferenceJobListObject.createTime = valuedatadataIteminferenceJobListinferenceJobListItem["createTime"].asString();
|
||||
auto allResultImageUrl = value["resultImageUrl"]["resultImageUrl"];
|
||||
for (auto value : allResultImageUrl)
|
||||
inferenceJobListObject.resultImageUrl.push_back(value.asString());
|
||||
dataObject.inferenceJobList.push_back(inferenceJobListObject);
|
||||
}
|
||||
auto allImageUrl = value["imageUrl"]["imageUrl"];
|
||||
for (auto value : allImageUrl)
|
||||
dataObject.imageUrl.push_back(value.asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
if(!value["success"].isNull())
|
||||
success_ = value["success"].asString() == "true";
|
||||
if(!value["errCode"].isNull())
|
||||
errCode_ = value["errCode"].asString();
|
||||
if(!value["errMessage"].isNull())
|
||||
errMessage_ = value["errMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<Personalizedtxt2imgQueryModelTrainJobListResult::DataItem> Personalizedtxt2imgQueryModelTrainJobListResult::getdata()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string Personalizedtxt2imgQueryModelTrainJobListResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
std::string Personalizedtxt2imgQueryModelTrainJobListResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool Personalizedtxt2imgQueryModelTrainJobListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string Personalizedtxt2imgQueryModelTrainJobListResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::AiContent::Model::Personalizedtxt2imgQueryModelTrainStatusRequest;
|
||||
|
||||
Personalizedtxt2imgQueryModelTrainStatusRequest::Personalizedtxt2imgQueryModelTrainStatusRequest()
|
||||
: RoaServiceRequest("aicontent", "20240611") {
|
||||
setResourcePath("/api/v1/personalizedtxt2img/queryModelTrainStatus"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
Personalizedtxt2imgQueryModelTrainStatusRequest::~Personalizedtxt2imgQueryModelTrainStatusRequest() {}
|
||||
|
||||
std::string Personalizedtxt2imgQueryModelTrainStatusRequest::getModelId() const {
|
||||
return modelId_;
|
||||
}
|
||||
|
||||
void Personalizedtxt2imgQueryModelTrainStatusRequest::setModelId(const std::string &modelId) {
|
||||
modelId_ = modelId;
|
||||
setParameter(std::string("modelId"), modelId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aicontent/model/Personalizedtxt2imgQueryModelTrainStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::AiContent;
|
||||
using namespace AlibabaCloud::AiContent::Model;
|
||||
|
||||
Personalizedtxt2imgQueryModelTrainStatusResult::Personalizedtxt2imgQueryModelTrainStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
Personalizedtxt2imgQueryModelTrainStatusResult::Personalizedtxt2imgQueryModelTrainStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
Personalizedtxt2imgQueryModelTrainStatusResult::~Personalizedtxt2imgQueryModelTrainStatusResult()
|
||||
{}
|
||||
|
||||
void Personalizedtxt2imgQueryModelTrainStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["modelTrainStatus"].isNull())
|
||||
data_.modelTrainStatus = dataNode["modelTrainStatus"].asString();
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
if(!value["success"].isNull())
|
||||
success_ = value["success"].asString() == "true";
|
||||
if(!value["errCode"].isNull())
|
||||
errCode_ = value["errCode"].asString();
|
||||
if(!value["errMessage"].isNull())
|
||||
errMessage_ = value["errMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string Personalizedtxt2imgQueryModelTrainStatusResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
Personalizedtxt2imgQueryModelTrainStatusResult::Data Personalizedtxt2imgQueryModelTrainStatusResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string Personalizedtxt2imgQueryModelTrainStatusResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool Personalizedtxt2imgQueryModelTrainStatusResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string Personalizedtxt2imgQueryModelTrainStatusResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
138
beian/CMakeLists.txt
Normal file
138
beian/CMakeLists.txt
Normal file
@@ -0,0 +1,138 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT 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(beian_public_header
|
||||
include/alibabacloud/beian/BeianClient.h
|
||||
include/alibabacloud/beian/BeianExport.h )
|
||||
|
||||
set(beian_public_header_model
|
||||
include/alibabacloud/beian/model/DeleteUnbeianIpCheckTypeRequest.h
|
||||
include/alibabacloud/beian/model/DeleteUnbeianIpCheckTypeResult.h
|
||||
include/alibabacloud/beian/model/GetMainDomainRequest.h
|
||||
include/alibabacloud/beian/model/GetMainDomainResult.h
|
||||
include/alibabacloud/beian/model/InsertUnbeianIpCheckTypeRequest.h
|
||||
include/alibabacloud/beian/model/InsertUnbeianIpCheckTypeResult.h
|
||||
include/alibabacloud/beian/model/ListUnbeianIpCheckTypeRequest.h
|
||||
include/alibabacloud/beian/model/ListUnbeianIpCheckTypeResult.h
|
||||
include/alibabacloud/beian/model/ManageAccessorDomainRequest.h
|
||||
include/alibabacloud/beian/model/ManageAccessorDomainResult.h
|
||||
include/alibabacloud/beian/model/ManageAccessorDomainWhiteListRequest.h
|
||||
include/alibabacloud/beian/model/ManageAccessorDomainWhiteListResult.h
|
||||
include/alibabacloud/beian/model/ManageAccessorIpRequest.h
|
||||
include/alibabacloud/beian/model/ManageAccessorIpResult.h
|
||||
include/alibabacloud/beian/model/QueryAccessorDomainRequest.h
|
||||
include/alibabacloud/beian/model/QueryAccessorDomainResult.h
|
||||
include/alibabacloud/beian/model/QueryAccessorDomainListRequest.h
|
||||
include/alibabacloud/beian/model/QueryAccessorDomainListResult.h
|
||||
include/alibabacloud/beian/model/QueryAccessorDomainStatusRequest.h
|
||||
include/alibabacloud/beian/model/QueryAccessorDomainStatusResult.h
|
||||
include/alibabacloud/beian/model/QueryAccessorDomainWhiteListRequest.h
|
||||
include/alibabacloud/beian/model/QueryAccessorDomainWhiteListResult.h
|
||||
include/alibabacloud/beian/model/QueryAccessorDomainsStatusRequest.h
|
||||
include/alibabacloud/beian/model/QueryAccessorDomainsStatusResult.h
|
||||
include/alibabacloud/beian/model/QueryAccessorIpRequest.h
|
||||
include/alibabacloud/beian/model/QueryAccessorIpResult.h
|
||||
include/alibabacloud/beian/model/SubmitAccessorFullDomainsOssListRequest.h
|
||||
include/alibabacloud/beian/model/SubmitAccessorFullDomainsOssListResult.h )
|
||||
|
||||
set(beian_src
|
||||
src/BeianClient.cc
|
||||
src/model/DeleteUnbeianIpCheckTypeRequest.cc
|
||||
src/model/DeleteUnbeianIpCheckTypeResult.cc
|
||||
src/model/GetMainDomainRequest.cc
|
||||
src/model/GetMainDomainResult.cc
|
||||
src/model/InsertUnbeianIpCheckTypeRequest.cc
|
||||
src/model/InsertUnbeianIpCheckTypeResult.cc
|
||||
src/model/ListUnbeianIpCheckTypeRequest.cc
|
||||
src/model/ListUnbeianIpCheckTypeResult.cc
|
||||
src/model/ManageAccessorDomainRequest.cc
|
||||
src/model/ManageAccessorDomainResult.cc
|
||||
src/model/ManageAccessorDomainWhiteListRequest.cc
|
||||
src/model/ManageAccessorDomainWhiteListResult.cc
|
||||
src/model/ManageAccessorIpRequest.cc
|
||||
src/model/ManageAccessorIpResult.cc
|
||||
src/model/QueryAccessorDomainRequest.cc
|
||||
src/model/QueryAccessorDomainResult.cc
|
||||
src/model/QueryAccessorDomainListRequest.cc
|
||||
src/model/QueryAccessorDomainListResult.cc
|
||||
src/model/QueryAccessorDomainStatusRequest.cc
|
||||
src/model/QueryAccessorDomainStatusResult.cc
|
||||
src/model/QueryAccessorDomainWhiteListRequest.cc
|
||||
src/model/QueryAccessorDomainWhiteListResult.cc
|
||||
src/model/QueryAccessorDomainsStatusRequest.cc
|
||||
src/model/QueryAccessorDomainsStatusResult.cc
|
||||
src/model/QueryAccessorIpRequest.cc
|
||||
src/model/QueryAccessorIpResult.cc
|
||||
src/model/SubmitAccessorFullDomainsOssListRequest.cc
|
||||
src/model/SubmitAccessorFullDomainsOssListResult.cc )
|
||||
|
||||
add_library(beian ${LIB_TYPE}
|
||||
${beian_public_header}
|
||||
${beian_public_header_model}
|
||||
${beian_src})
|
||||
|
||||
set_target_properties(beian
|
||||
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}beian
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(beian
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_BEIAN_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(beian
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(beian
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(beian
|
||||
jsoncpp)
|
||||
target_include_directories(beian
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(beian
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(beian
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(beian
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(beian
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${beian_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/beian)
|
||||
install(FILES ${beian_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/beian/model)
|
||||
install(TARGETS beian
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
158
beian/include/alibabacloud/beian/BeianClient.h
Normal file
158
beian/include/alibabacloud/beian/BeianClient.h
Normal file
@@ -0,0 +1,158 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_BEIAN_BEIANCLIENT_H_
|
||||
#define ALIBABACLOUD_BEIAN_BEIANCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "BeianExport.h"
|
||||
#include "model/DeleteUnbeianIpCheckTypeRequest.h"
|
||||
#include "model/DeleteUnbeianIpCheckTypeResult.h"
|
||||
#include "model/GetMainDomainRequest.h"
|
||||
#include "model/GetMainDomainResult.h"
|
||||
#include "model/InsertUnbeianIpCheckTypeRequest.h"
|
||||
#include "model/InsertUnbeianIpCheckTypeResult.h"
|
||||
#include "model/ListUnbeianIpCheckTypeRequest.h"
|
||||
#include "model/ListUnbeianIpCheckTypeResult.h"
|
||||
#include "model/ManageAccessorDomainRequest.h"
|
||||
#include "model/ManageAccessorDomainResult.h"
|
||||
#include "model/ManageAccessorDomainWhiteListRequest.h"
|
||||
#include "model/ManageAccessorDomainWhiteListResult.h"
|
||||
#include "model/ManageAccessorIpRequest.h"
|
||||
#include "model/ManageAccessorIpResult.h"
|
||||
#include "model/QueryAccessorDomainRequest.h"
|
||||
#include "model/QueryAccessorDomainResult.h"
|
||||
#include "model/QueryAccessorDomainListRequest.h"
|
||||
#include "model/QueryAccessorDomainListResult.h"
|
||||
#include "model/QueryAccessorDomainStatusRequest.h"
|
||||
#include "model/QueryAccessorDomainStatusResult.h"
|
||||
#include "model/QueryAccessorDomainWhiteListRequest.h"
|
||||
#include "model/QueryAccessorDomainWhiteListResult.h"
|
||||
#include "model/QueryAccessorDomainsStatusRequest.h"
|
||||
#include "model/QueryAccessorDomainsStatusResult.h"
|
||||
#include "model/QueryAccessorIpRequest.h"
|
||||
#include "model/QueryAccessorIpResult.h"
|
||||
#include "model/SubmitAccessorFullDomainsOssListRequest.h"
|
||||
#include "model/SubmitAccessorFullDomainsOssListResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Beian
|
||||
{
|
||||
class ALIBABACLOUD_BEIAN_EXPORT BeianClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::DeleteUnbeianIpCheckTypeResult> DeleteUnbeianIpCheckTypeOutcome;
|
||||
typedef std::future<DeleteUnbeianIpCheckTypeOutcome> DeleteUnbeianIpCheckTypeOutcomeCallable;
|
||||
typedef std::function<void(const BeianClient*, const Model::DeleteUnbeianIpCheckTypeRequest&, const DeleteUnbeianIpCheckTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteUnbeianIpCheckTypeAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetMainDomainResult> GetMainDomainOutcome;
|
||||
typedef std::future<GetMainDomainOutcome> GetMainDomainOutcomeCallable;
|
||||
typedef std::function<void(const BeianClient*, const Model::GetMainDomainRequest&, const GetMainDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMainDomainAsyncHandler;
|
||||
typedef Outcome<Error, Model::InsertUnbeianIpCheckTypeResult> InsertUnbeianIpCheckTypeOutcome;
|
||||
typedef std::future<InsertUnbeianIpCheckTypeOutcome> InsertUnbeianIpCheckTypeOutcomeCallable;
|
||||
typedef std::function<void(const BeianClient*, const Model::InsertUnbeianIpCheckTypeRequest&, const InsertUnbeianIpCheckTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InsertUnbeianIpCheckTypeAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListUnbeianIpCheckTypeResult> ListUnbeianIpCheckTypeOutcome;
|
||||
typedef std::future<ListUnbeianIpCheckTypeOutcome> ListUnbeianIpCheckTypeOutcomeCallable;
|
||||
typedef std::function<void(const BeianClient*, const Model::ListUnbeianIpCheckTypeRequest&, const ListUnbeianIpCheckTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUnbeianIpCheckTypeAsyncHandler;
|
||||
typedef Outcome<Error, Model::ManageAccessorDomainResult> ManageAccessorDomainOutcome;
|
||||
typedef std::future<ManageAccessorDomainOutcome> ManageAccessorDomainOutcomeCallable;
|
||||
typedef std::function<void(const BeianClient*, const Model::ManageAccessorDomainRequest&, const ManageAccessorDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ManageAccessorDomainAsyncHandler;
|
||||
typedef Outcome<Error, Model::ManageAccessorDomainWhiteListResult> ManageAccessorDomainWhiteListOutcome;
|
||||
typedef std::future<ManageAccessorDomainWhiteListOutcome> ManageAccessorDomainWhiteListOutcomeCallable;
|
||||
typedef std::function<void(const BeianClient*, const Model::ManageAccessorDomainWhiteListRequest&, const ManageAccessorDomainWhiteListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ManageAccessorDomainWhiteListAsyncHandler;
|
||||
typedef Outcome<Error, Model::ManageAccessorIpResult> ManageAccessorIpOutcome;
|
||||
typedef std::future<ManageAccessorIpOutcome> ManageAccessorIpOutcomeCallable;
|
||||
typedef std::function<void(const BeianClient*, const Model::ManageAccessorIpRequest&, const ManageAccessorIpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ManageAccessorIpAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryAccessorDomainResult> QueryAccessorDomainOutcome;
|
||||
typedef std::future<QueryAccessorDomainOutcome> QueryAccessorDomainOutcomeCallable;
|
||||
typedef std::function<void(const BeianClient*, const Model::QueryAccessorDomainRequest&, const QueryAccessorDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccessorDomainAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryAccessorDomainListResult> QueryAccessorDomainListOutcome;
|
||||
typedef std::future<QueryAccessorDomainListOutcome> QueryAccessorDomainListOutcomeCallable;
|
||||
typedef std::function<void(const BeianClient*, const Model::QueryAccessorDomainListRequest&, const QueryAccessorDomainListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccessorDomainListAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryAccessorDomainStatusResult> QueryAccessorDomainStatusOutcome;
|
||||
typedef std::future<QueryAccessorDomainStatusOutcome> QueryAccessorDomainStatusOutcomeCallable;
|
||||
typedef std::function<void(const BeianClient*, const Model::QueryAccessorDomainStatusRequest&, const QueryAccessorDomainStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccessorDomainStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryAccessorDomainWhiteListResult> QueryAccessorDomainWhiteListOutcome;
|
||||
typedef std::future<QueryAccessorDomainWhiteListOutcome> QueryAccessorDomainWhiteListOutcomeCallable;
|
||||
typedef std::function<void(const BeianClient*, const Model::QueryAccessorDomainWhiteListRequest&, const QueryAccessorDomainWhiteListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccessorDomainWhiteListAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryAccessorDomainsStatusResult> QueryAccessorDomainsStatusOutcome;
|
||||
typedef std::future<QueryAccessorDomainsStatusOutcome> QueryAccessorDomainsStatusOutcomeCallable;
|
||||
typedef std::function<void(const BeianClient*, const Model::QueryAccessorDomainsStatusRequest&, const QueryAccessorDomainsStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccessorDomainsStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryAccessorIpResult> QueryAccessorIpOutcome;
|
||||
typedef std::future<QueryAccessorIpOutcome> QueryAccessorIpOutcomeCallable;
|
||||
typedef std::function<void(const BeianClient*, const Model::QueryAccessorIpRequest&, const QueryAccessorIpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccessorIpAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubmitAccessorFullDomainsOssListResult> SubmitAccessorFullDomainsOssListOutcome;
|
||||
typedef std::future<SubmitAccessorFullDomainsOssListOutcome> SubmitAccessorFullDomainsOssListOutcomeCallable;
|
||||
typedef std::function<void(const BeianClient*, const Model::SubmitAccessorFullDomainsOssListRequest&, const SubmitAccessorFullDomainsOssListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitAccessorFullDomainsOssListAsyncHandler;
|
||||
|
||||
BeianClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
BeianClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
BeianClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~BeianClient();
|
||||
DeleteUnbeianIpCheckTypeOutcome deleteUnbeianIpCheckType(const Model::DeleteUnbeianIpCheckTypeRequest &request)const;
|
||||
void deleteUnbeianIpCheckTypeAsync(const Model::DeleteUnbeianIpCheckTypeRequest& request, const DeleteUnbeianIpCheckTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteUnbeianIpCheckTypeOutcomeCallable deleteUnbeianIpCheckTypeCallable(const Model::DeleteUnbeianIpCheckTypeRequest& request) const;
|
||||
GetMainDomainOutcome getMainDomain(const Model::GetMainDomainRequest &request)const;
|
||||
void getMainDomainAsync(const Model::GetMainDomainRequest& request, const GetMainDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMainDomainOutcomeCallable getMainDomainCallable(const Model::GetMainDomainRequest& request) const;
|
||||
InsertUnbeianIpCheckTypeOutcome insertUnbeianIpCheckType(const Model::InsertUnbeianIpCheckTypeRequest &request)const;
|
||||
void insertUnbeianIpCheckTypeAsync(const Model::InsertUnbeianIpCheckTypeRequest& request, const InsertUnbeianIpCheckTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InsertUnbeianIpCheckTypeOutcomeCallable insertUnbeianIpCheckTypeCallable(const Model::InsertUnbeianIpCheckTypeRequest& request) const;
|
||||
ListUnbeianIpCheckTypeOutcome listUnbeianIpCheckType(const Model::ListUnbeianIpCheckTypeRequest &request)const;
|
||||
void listUnbeianIpCheckTypeAsync(const Model::ListUnbeianIpCheckTypeRequest& request, const ListUnbeianIpCheckTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListUnbeianIpCheckTypeOutcomeCallable listUnbeianIpCheckTypeCallable(const Model::ListUnbeianIpCheckTypeRequest& request) const;
|
||||
ManageAccessorDomainOutcome manageAccessorDomain(const Model::ManageAccessorDomainRequest &request)const;
|
||||
void manageAccessorDomainAsync(const Model::ManageAccessorDomainRequest& request, const ManageAccessorDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ManageAccessorDomainOutcomeCallable manageAccessorDomainCallable(const Model::ManageAccessorDomainRequest& request) const;
|
||||
ManageAccessorDomainWhiteListOutcome manageAccessorDomainWhiteList(const Model::ManageAccessorDomainWhiteListRequest &request)const;
|
||||
void manageAccessorDomainWhiteListAsync(const Model::ManageAccessorDomainWhiteListRequest& request, const ManageAccessorDomainWhiteListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ManageAccessorDomainWhiteListOutcomeCallable manageAccessorDomainWhiteListCallable(const Model::ManageAccessorDomainWhiteListRequest& request) const;
|
||||
ManageAccessorIpOutcome manageAccessorIp(const Model::ManageAccessorIpRequest &request)const;
|
||||
void manageAccessorIpAsync(const Model::ManageAccessorIpRequest& request, const ManageAccessorIpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ManageAccessorIpOutcomeCallable manageAccessorIpCallable(const Model::ManageAccessorIpRequest& request) const;
|
||||
QueryAccessorDomainOutcome queryAccessorDomain(const Model::QueryAccessorDomainRequest &request)const;
|
||||
void queryAccessorDomainAsync(const Model::QueryAccessorDomainRequest& request, const QueryAccessorDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAccessorDomainOutcomeCallable queryAccessorDomainCallable(const Model::QueryAccessorDomainRequest& request) const;
|
||||
QueryAccessorDomainListOutcome queryAccessorDomainList(const Model::QueryAccessorDomainListRequest &request)const;
|
||||
void queryAccessorDomainListAsync(const Model::QueryAccessorDomainListRequest& request, const QueryAccessorDomainListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAccessorDomainListOutcomeCallable queryAccessorDomainListCallable(const Model::QueryAccessorDomainListRequest& request) const;
|
||||
QueryAccessorDomainStatusOutcome queryAccessorDomainStatus(const Model::QueryAccessorDomainStatusRequest &request)const;
|
||||
void queryAccessorDomainStatusAsync(const Model::QueryAccessorDomainStatusRequest& request, const QueryAccessorDomainStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAccessorDomainStatusOutcomeCallable queryAccessorDomainStatusCallable(const Model::QueryAccessorDomainStatusRequest& request) const;
|
||||
QueryAccessorDomainWhiteListOutcome queryAccessorDomainWhiteList(const Model::QueryAccessorDomainWhiteListRequest &request)const;
|
||||
void queryAccessorDomainWhiteListAsync(const Model::QueryAccessorDomainWhiteListRequest& request, const QueryAccessorDomainWhiteListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAccessorDomainWhiteListOutcomeCallable queryAccessorDomainWhiteListCallable(const Model::QueryAccessorDomainWhiteListRequest& request) const;
|
||||
QueryAccessorDomainsStatusOutcome queryAccessorDomainsStatus(const Model::QueryAccessorDomainsStatusRequest &request)const;
|
||||
void queryAccessorDomainsStatusAsync(const Model::QueryAccessorDomainsStatusRequest& request, const QueryAccessorDomainsStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAccessorDomainsStatusOutcomeCallable queryAccessorDomainsStatusCallable(const Model::QueryAccessorDomainsStatusRequest& request) const;
|
||||
QueryAccessorIpOutcome queryAccessorIp(const Model::QueryAccessorIpRequest &request)const;
|
||||
void queryAccessorIpAsync(const Model::QueryAccessorIpRequest& request, const QueryAccessorIpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAccessorIpOutcomeCallable queryAccessorIpCallable(const Model::QueryAccessorIpRequest& request) const;
|
||||
SubmitAccessorFullDomainsOssListOutcome submitAccessorFullDomainsOssList(const Model::SubmitAccessorFullDomainsOssListRequest &request)const;
|
||||
void submitAccessorFullDomainsOssListAsync(const Model::SubmitAccessorFullDomainsOssListRequest& request, const SubmitAccessorFullDomainsOssListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitAccessorFullDomainsOssListOutcomeCallable submitAccessorFullDomainsOssListCallable(const Model::SubmitAccessorFullDomainsOssListRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_BEIAN_BEIANCLIENT_H_
|
||||
32
beian/include/alibabacloud/beian/BeianExport.h
Normal file
32
beian/include/alibabacloud/beian/BeianExport.h
Normal file
@@ -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_BEIAN_BEIANEXPORT_H_
|
||||
#define ALIBABACLOUD_BEIAN_BEIANEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_BEIAN_LIBRARY)
|
||||
# define ALIBABACLOUD_BEIAN_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_BEIAN_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_BEIAN_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_BEIAN_BEIANEXPORT_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_BEIAN_MODEL_DELETEUNBEIANIPCHECKTYPEREQUEST_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_DELETEUNBEIANIPCHECKTYPEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Beian {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_BEIAN_EXPORT DeleteUnbeianIpCheckTypeRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeleteUnbeianIpCheckTypeRequest();
|
||||
~DeleteUnbeianIpCheckTypeRequest();
|
||||
std::string getIp() const;
|
||||
void setIp(const std::string &ip);
|
||||
std::string getRemark() const;
|
||||
void setRemark(const std::string &remark);
|
||||
int getCheckType() const;
|
||||
void setCheckType(int checkType);
|
||||
std::string getCaller() const;
|
||||
void setCaller(const std::string &caller);
|
||||
|
||||
private:
|
||||
std::string ip_;
|
||||
std::string remark_;
|
||||
int checkType_;
|
||||
std::string caller_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Beian
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_DELETEUNBEIANIPCHECKTYPEREQUEST_H_
|
||||
@@ -14,53 +14,49 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_MTS_MODEL_QUERYTERRORISMPIPELINELISTRESULT_H_
|
||||
#define ALIBABACLOUD_MTS_MODEL_QUERYTERRORISMPIPELINELISTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_BEIAN_MODEL_DELETEUNBEIANIPCHECKTYPERESULT_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_DELETEUNBEIANIPCHECKTYPERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/mts/MtsExport.h>
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Mts
|
||||
namespace Beian
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_MTS_EXPORT QueryTerrorismPipelineListResult : public ServiceResult
|
||||
class ALIBABACLOUD_BEIAN_EXPORT DeleteUnbeianIpCheckTypeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Pipeline
|
||||
struct HuntressIpCheckTypeResultDO
|
||||
{
|
||||
struct NotifyConfig
|
||||
{
|
||||
std::string topic;
|
||||
std::string queue;
|
||||
};
|
||||
std::string state;
|
||||
std::string priority;
|
||||
NotifyConfig notifyConfig;
|
||||
std::string id;
|
||||
std::string name;
|
||||
std::string msg;
|
||||
bool success;
|
||||
};
|
||||
|
||||
|
||||
QueryTerrorismPipelineListResult();
|
||||
explicit QueryTerrorismPipelineListResult(const std::string &payload);
|
||||
~QueryTerrorismPipelineListResult();
|
||||
std::vector<Pipeline> getPipelineList()const;
|
||||
std::vector<std::string> getNonExistIds()const;
|
||||
DeleteUnbeianIpCheckTypeResult();
|
||||
explicit DeleteUnbeianIpCheckTypeResult(const std::string &payload);
|
||||
~DeleteUnbeianIpCheckTypeResult();
|
||||
HuntressIpCheckTypeResultDO getHuntressIpCheckTypeResultDO()const;
|
||||
int getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Pipeline> pipelineList_;
|
||||
std::vector<std::string> nonExistIds_;
|
||||
HuntressIpCheckTypeResultDO huntressIpCheckTypeResultDO_;
|
||||
int errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_MTS_MODEL_QUERYTERRORISMPIPELINELISTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_DELETEUNBEIANIPCHECKTYPERESULT_H_
|
||||
@@ -14,29 +14,29 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_MTS_MODEL_DETECTIMAGESYNCREQUEST_H_
|
||||
#define ALIBABACLOUD_MTS_MODEL_DETECTIMAGESYNCREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_BEIAN_MODEL_GETMAINDOMAINREQUEST_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_GETMAINDOMAINREQUEST_H_
|
||||
|
||||
#include <alibabacloud/mts/MtsExport.h>
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Mts {
|
||||
namespace Beian {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_MTS_EXPORT DetectImageSyncRequest : public RpcServiceRequest {
|
||||
class ALIBABACLOUD_BEIAN_EXPORT GetMainDomainRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DetectImageSyncRequest();
|
||||
~DetectImageSyncRequest();
|
||||
std::string getImage() const;
|
||||
void setImage(const std::string &image);
|
||||
GetMainDomainRequest();
|
||||
~GetMainDomainRequest();
|
||||
std::string getDomain() const;
|
||||
void setDomain(const std::string &domain);
|
||||
|
||||
private:
|
||||
std::string image_;
|
||||
std::string domain_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Mts
|
||||
} // namespace Beian
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_MTS_MODEL_DETECTIMAGESYNCREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_GETMAINDOMAINREQUEST_H_
|
||||
@@ -14,40 +14,42 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_MTS_MODEL_CREATEINFERENCESERVERRESULT_H_
|
||||
#define ALIBABACLOUD_MTS_MODEL_CREATEINFERENCESERVERRESULT_H_
|
||||
#ifndef ALIBABACLOUD_BEIAN_MODEL_GETMAINDOMAINRESULT_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_GETMAINDOMAINRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/mts/MtsExport.h>
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Mts
|
||||
namespace Beian
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_MTS_EXPORT CreateInferenceServerResult : public ServiceResult
|
||||
class ALIBABACLOUD_BEIAN_EXPORT GetMainDomainResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateInferenceServerResult();
|
||||
explicit CreateInferenceServerResult(const std::string &payload);
|
||||
~CreateInferenceServerResult();
|
||||
GetMainDomainResult();
|
||||
explicit GetMainDomainResult(const std::string &payload);
|
||||
~GetMainDomainResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_MTS_MODEL_CREATEINFERENCESERVERRESULT_H_
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_GETMAINDOMAINRESULT_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_BEIAN_MODEL_INSERTUNBEIANIPCHECKTYPEREQUEST_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_INSERTUNBEIANIPCHECKTYPEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Beian {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_BEIAN_EXPORT InsertUnbeianIpCheckTypeRequest : public RpcServiceRequest {
|
||||
public:
|
||||
InsertUnbeianIpCheckTypeRequest();
|
||||
~InsertUnbeianIpCheckTypeRequest();
|
||||
std::string getIp() const;
|
||||
void setIp(const std::string &ip);
|
||||
std::string getRemark() const;
|
||||
void setRemark(const std::string &remark);
|
||||
int getCheckType() const;
|
||||
void setCheckType(int checkType);
|
||||
std::string getCaller() const;
|
||||
void setCaller(const std::string &caller);
|
||||
|
||||
private:
|
||||
std::string ip_;
|
||||
std::string remark_;
|
||||
int checkType_;
|
||||
std::string caller_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Beian
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_INSERTUNBEIANIPCHECKTYPEREQUEST_H_
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BEIAN_MODEL_INSERTUNBEIANIPCHECKTYPERESULT_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_INSERTUNBEIANIPCHECKTYPERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Beian
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BEIAN_EXPORT InsertUnbeianIpCheckTypeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct HuntressIpCheckTypeResultDO
|
||||
{
|
||||
std::string msg;
|
||||
bool success;
|
||||
};
|
||||
|
||||
|
||||
InsertUnbeianIpCheckTypeResult();
|
||||
explicit InsertUnbeianIpCheckTypeResult(const std::string &payload);
|
||||
~InsertUnbeianIpCheckTypeResult();
|
||||
HuntressIpCheckTypeResultDO getHuntressIpCheckTypeResultDO()const;
|
||||
int getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
HuntressIpCheckTypeResultDO huntressIpCheckTypeResultDO_;
|
||||
int errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_INSERTUNBEIANIPCHECKTYPERESULT_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_BEIAN_MODEL_LISTUNBEIANIPCHECKTYPEREQUEST_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_LISTUNBEIANIPCHECKTYPEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Beian {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_BEIAN_EXPORT ListUnbeianIpCheckTypeRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListUnbeianIpCheckTypeRequest();
|
||||
~ListUnbeianIpCheckTypeRequest();
|
||||
std::string getIp() const;
|
||||
void setIp(const std::string &ip);
|
||||
std::string getRemark() const;
|
||||
void setRemark(const std::string &remark);
|
||||
int getCheckType() const;
|
||||
void setCheckType(int checkType);
|
||||
std::string getCaller() const;
|
||||
void setCaller(const std::string &caller);
|
||||
int getLimit() const;
|
||||
void setLimit(int limit);
|
||||
int getPage() const;
|
||||
void setPage(int page);
|
||||
|
||||
private:
|
||||
std::string ip_;
|
||||
std::string remark_;
|
||||
int checkType_;
|
||||
std::string caller_;
|
||||
int limit_;
|
||||
int page_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Beian
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_LISTUNBEIANIPCHECKTYPEREQUEST_H_
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BEIAN_MODEL_LISTUNBEIANIPCHECKTYPERESULT_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_LISTUNBEIANIPCHECKTYPERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Beian
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BEIAN_EXPORT ListUnbeianIpCheckTypeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct HuntressIpCheckTypeResultDO
|
||||
{
|
||||
struct ListItem
|
||||
{
|
||||
std::string caller;
|
||||
int checkType;
|
||||
std::string ip;
|
||||
long aliuid;
|
||||
std::string remark;
|
||||
};
|
||||
std::string msg;
|
||||
std::vector<ListItem> list;
|
||||
bool success;
|
||||
};
|
||||
|
||||
|
||||
ListUnbeianIpCheckTypeResult();
|
||||
explicit ListUnbeianIpCheckTypeResult(const std::string &payload);
|
||||
~ListUnbeianIpCheckTypeResult();
|
||||
HuntressIpCheckTypeResultDO getHuntressIpCheckTypeResultDO()const;
|
||||
int getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
HuntressIpCheckTypeResultDO huntressIpCheckTypeResultDO_;
|
||||
int errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_LISTUNBEIANIPCHECKTYPERESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BEIAN_MODEL_MANAGEACCESSORDOMAINREQUEST_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_MANAGEACCESSORDOMAINREQUEST_H_
|
||||
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Beian {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_BEIAN_EXPORT ManageAccessorDomainRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ManageAccessorDomainRequest();
|
||||
~ManageAccessorDomainRequest();
|
||||
std::string getCaller() const;
|
||||
void setCaller(const std::string &caller);
|
||||
std::string getDomain() const;
|
||||
void setDomain(const std::string &domain);
|
||||
std::string getOperation() const;
|
||||
void setOperation(const std::string &operation);
|
||||
|
||||
private:
|
||||
std::string caller_;
|
||||
std::string domain_;
|
||||
std::string operation_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Beian
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_MANAGEACCESSORDOMAINREQUEST_H_
|
||||
@@ -14,29 +14,29 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LIVE_MODEL_DELETEMULTIRATECONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_LIVE_MODEL_DELETEMULTIRATECONFIGRESULT_H_
|
||||
#ifndef ALIBABACLOUD_BEIAN_MODEL_MANAGEACCESSORDOMAINRESULT_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_MANAGEACCESSORDOMAINRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Live
|
||||
namespace Beian
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LIVE_EXPORT DeleteMultiRateConfigResult : public ServiceResult
|
||||
class ALIBABACLOUD_BEIAN_EXPORT ManageAccessorDomainResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteMultiRateConfigResult();
|
||||
explicit DeleteMultiRateConfigResult(const std::string &payload);
|
||||
~DeleteMultiRateConfigResult();
|
||||
ManageAccessorDomainResult();
|
||||
explicit ManageAccessorDomainResult(const std::string &payload);
|
||||
~ManageAccessorDomainResult();
|
||||
std::string getMessage()const;
|
||||
int getCode()const;
|
||||
|
||||
@@ -50,4 +50,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LIVE_MODEL_DELETEMULTIRATECONFIGRESULT_H_
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_MANAGEACCESSORDOMAINRESULT_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_BEIAN_MODEL_MANAGEACCESSORDOMAINWHITELISTREQUEST_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_MANAGEACCESSORDOMAINWHITELISTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Beian {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_BEIAN_EXPORT ManageAccessorDomainWhiteListRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ManageAccessorDomainWhiteListRequest();
|
||||
~ManageAccessorDomainWhiteListRequest();
|
||||
std::string getEndTime() const;
|
||||
void setEndTime(const std::string &endTime);
|
||||
std::vector<std::string> getDomains() const;
|
||||
void setDomains(const std::vector<std::string> &domains);
|
||||
std::string getRemark() const;
|
||||
void setRemark(const std::string &remark);
|
||||
std::string getStartTime() const;
|
||||
void setStartTime(const std::string &startTime);
|
||||
std::string getCaller() const;
|
||||
void setCaller(const std::string &caller);
|
||||
std::string getOperation() const;
|
||||
void setOperation(const std::string &operation);
|
||||
|
||||
private:
|
||||
std::string endTime_;
|
||||
std::vector<std::string> domains_;
|
||||
std::string remark_;
|
||||
std::string startTime_;
|
||||
std::string caller_;
|
||||
std::string operation_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Beian
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_MANAGEACCESSORDOMAINWHITELISTREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_BEIAN_MODEL_MANAGEACCESSORDOMAINWHITELISTRESULT_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_MANAGEACCESSORDOMAINWHITELISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Beian
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BEIAN_EXPORT ManageAccessorDomainWhiteListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ManageAccessorDomainWhiteListResult();
|
||||
explicit ManageAccessorDomainWhiteListResult(const std::string &payload);
|
||||
~ManageAccessorDomainWhiteListResult();
|
||||
std::string getMessage()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_MANAGEACCESSORDOMAINWHITELISTRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BEIAN_MODEL_MANAGEACCESSORIPREQUEST_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_MANAGEACCESSORIPREQUEST_H_
|
||||
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Beian {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_BEIAN_EXPORT ManageAccessorIpRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ManageAccessorIpRequest();
|
||||
~ManageAccessorIpRequest();
|
||||
std::string getIp() const;
|
||||
void setIp(const std::string &ip);
|
||||
std::string getRemark() const;
|
||||
void setRemark(const std::string &remark);
|
||||
std::string getCaller() const;
|
||||
void setCaller(const std::string &caller);
|
||||
int getIpVersion() const;
|
||||
void setIpVersion(int ipVersion);
|
||||
std::string getOperation() const;
|
||||
void setOperation(const std::string &operation);
|
||||
|
||||
private:
|
||||
std::string ip_;
|
||||
std::string remark_;
|
||||
std::string caller_;
|
||||
int ipVersion_;
|
||||
std::string operation_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Beian
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_MANAGEACCESSORIPREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_BEIAN_MODEL_MANAGEACCESSORIPRESULT_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_MANAGEACCESSORIPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Beian
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BEIAN_EXPORT ManageAccessorIpResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ManageAccessorIpResult();
|
||||
explicit ManageAccessorIpResult(const std::string &payload);
|
||||
~ManageAccessorIpResult();
|
||||
std::string getMessage()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_MANAGEACCESSORIPRESULT_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_BEIAN_MODEL_QUERYACCESSORDOMAINLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINLISTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Beian {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_BEIAN_EXPORT QueryAccessorDomainListRequest : public RpcServiceRequest {
|
||||
public:
|
||||
QueryAccessorDomainListRequest();
|
||||
~QueryAccessorDomainListRequest();
|
||||
std::string getCaller() const;
|
||||
void setCaller(const std::string &caller);
|
||||
int getPageNo() const;
|
||||
void setPageNo(int pageNo);
|
||||
std::string getDomain() const;
|
||||
void setDomain(const std::string &domain);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
std::string caller_;
|
||||
int pageNo_;
|
||||
std::string domain_;
|
||||
int pageSize_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Beian
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINLISTREQUEST_H_
|
||||
@@ -14,49 +14,46 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LIVE_MODEL_GETMULTIRATECONFIGLISTRESULT_H_
|
||||
#define ALIBABACLOUD_LIVE_MODEL_GETMULTIRATECONFIGLISTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINLISTRESULT_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINLISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Live
|
||||
namespace Beian
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LIVE_EXPORT GetMultiRateConfigListResult : public ServiceResult
|
||||
class ALIBABACLOUD_BEIAN_EXPORT QueryAccessorDomainListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Info
|
||||
struct Data
|
||||
{
|
||||
std::string app;
|
||||
int count;
|
||||
std::string avFormat;
|
||||
std::string groupId;
|
||||
std::vector<std::string> domains;
|
||||
};
|
||||
|
||||
|
||||
GetMultiRateConfigListResult();
|
||||
explicit GetMultiRateConfigListResult(const std::string &payload);
|
||||
~GetMultiRateConfigListResult();
|
||||
QueryAccessorDomainListResult();
|
||||
explicit QueryAccessorDomainListResult(const std::string &payload);
|
||||
~QueryAccessorDomainListResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<Info> getGroupInfo()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<Info> groupInfo_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LIVE_MODEL_GETMULTIRATECONFIGLISTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINLISTRESULT_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_BEIAN_MODEL_QUERYACCESSORDOMAINREQUEST_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINREQUEST_H_
|
||||
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Beian {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_BEIAN_EXPORT QueryAccessorDomainRequest : public RpcServiceRequest {
|
||||
public:
|
||||
QueryAccessorDomainRequest();
|
||||
~QueryAccessorDomainRequest();
|
||||
std::string getCaller() const;
|
||||
void setCaller(const std::string &caller);
|
||||
std::string getDomain() const;
|
||||
void setDomain(const std::string &domain);
|
||||
|
||||
private:
|
||||
std::string caller_;
|
||||
std::string domain_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Beian
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINREQUEST_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_BEIAN_MODEL_QUERYACCESSORDOMAINRESULT_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Beian
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BEIAN_EXPORT QueryAccessorDomainResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
QueryAccessorDomainResult();
|
||||
explicit QueryAccessorDomainResult(const std::string &payload);
|
||||
~QueryAccessorDomainResult();
|
||||
std::string getMessage()const;
|
||||
bool getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
bool data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINRESULT_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_BEIAN_MODEL_QUERYACCESSORDOMAINSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINSTATUSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Beian {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_BEIAN_EXPORT QueryAccessorDomainStatusRequest : public RpcServiceRequest {
|
||||
public:
|
||||
QueryAccessorDomainStatusRequest();
|
||||
~QueryAccessorDomainStatusRequest();
|
||||
std::string getCaller() const;
|
||||
void setCaller(const std::string &caller);
|
||||
std::string getDomain() const;
|
||||
void setDomain(const std::string &domain);
|
||||
|
||||
private:
|
||||
std::string caller_;
|
||||
std::string domain_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Beian
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINSTATUSREQUEST_H_
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINSTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Beian
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BEIAN_EXPORT QueryAccessorDomainStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string status;
|
||||
std::string domain;
|
||||
int reasonCode;
|
||||
std::string reason;
|
||||
};
|
||||
|
||||
|
||||
QueryAccessorDomainStatusResult();
|
||||
explicit QueryAccessorDomainStatusResult(const std::string &payload);
|
||||
~QueryAccessorDomainStatusResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINSTATUSRESULT_H_
|
||||
@@ -14,35 +14,32 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_MTS_MODEL_DESCRIBEMTSUSERRESOURCEPACKAGEREQUEST_H_
|
||||
#define ALIBABACLOUD_MTS_MODEL_DESCRIBEMTSUSERRESOURCEPACKAGEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINWHITELISTREQUEST_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINWHITELISTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/mts/MtsExport.h>
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Mts {
|
||||
namespace Beian {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_MTS_EXPORT DescribeMtsUserResourcePackageRequest : public RpcServiceRequest {
|
||||
class ALIBABACLOUD_BEIAN_EXPORT QueryAccessorDomainWhiteListRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeMtsUserResourcePackageRequest();
|
||||
~DescribeMtsUserResourcePackageRequest();
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getSecurityToken() const;
|
||||
void setSecurityToken(const std::string &securityToken);
|
||||
std::string getShowLog() const;
|
||||
void setShowLog(const std::string &showLog);
|
||||
QueryAccessorDomainWhiteListRequest();
|
||||
~QueryAccessorDomainWhiteListRequest();
|
||||
std::string getCaller() const;
|
||||
void setCaller(const std::string &caller);
|
||||
std::string getDomain() const;
|
||||
void setDomain(const std::string &domain);
|
||||
|
||||
private:
|
||||
long ownerId_;
|
||||
std::string securityToken_;
|
||||
std::string showLog_;
|
||||
std::string caller_;
|
||||
std::string domain_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Mts
|
||||
} // namespace Beian
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_MTS_MODEL_DESCRIBEMTSUSERRESOURCEPACKAGEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINWHITELISTREQUEST_H_
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINWHITELISTRESULT_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINWHITELISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Beian
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BEIAN_EXPORT QueryAccessorDomainWhiteListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct ItemsItem
|
||||
{
|
||||
std::string type;
|
||||
std::string endTime;
|
||||
bool valid;
|
||||
std::string createTime;
|
||||
std::string startTime;
|
||||
};
|
||||
bool white;
|
||||
std::vector<ItemsItem> items;
|
||||
};
|
||||
|
||||
|
||||
QueryAccessorDomainWhiteListResult();
|
||||
explicit QueryAccessorDomainWhiteListResult(const std::string &payload);
|
||||
~QueryAccessorDomainWhiteListResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINWHITELISTRESULT_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_BEIAN_MODEL_QUERYACCESSORDOMAINSSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINSSTATUSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Beian {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_BEIAN_EXPORT QueryAccessorDomainsStatusRequest : public RpcServiceRequest {
|
||||
public:
|
||||
QueryAccessorDomainsStatusRequest();
|
||||
~QueryAccessorDomainsStatusRequest();
|
||||
std::vector<std::string> getDomains() const;
|
||||
void setDomains(const std::vector<std::string> &domains);
|
||||
std::string getCaller() const;
|
||||
void setCaller(const std::string &caller);
|
||||
|
||||
private:
|
||||
std::vector<std::string> domains_;
|
||||
std::string caller_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Beian
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINSSTATUSREQUEST_H_
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINSSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINSSTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Beian
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BEIAN_EXPORT QueryAccessorDomainsStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataItem
|
||||
{
|
||||
std::string status;
|
||||
std::string domain;
|
||||
int reasonCode;
|
||||
std::string reason;
|
||||
};
|
||||
|
||||
|
||||
QueryAccessorDomainsStatusResult();
|
||||
explicit QueryAccessorDomainsStatusResult(const std::string &payload);
|
||||
~QueryAccessorDomainsStatusResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<DataItem> getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<DataItem> data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORDOMAINSSTATUSRESULT_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_BEIAN_MODEL_QUERYACCESSORIPREQUEST_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORIPREQUEST_H_
|
||||
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Beian {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_BEIAN_EXPORT QueryAccessorIpRequest : public RpcServiceRequest {
|
||||
public:
|
||||
QueryAccessorIpRequest();
|
||||
~QueryAccessorIpRequest();
|
||||
std::string getIp() const;
|
||||
void setIp(const std::string &ip);
|
||||
std::string getCaller() const;
|
||||
void setCaller(const std::string &caller);
|
||||
|
||||
private:
|
||||
std::string ip_;
|
||||
std::string caller_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Beian
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORIPREQUEST_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_BEIAN_MODEL_QUERYACCESSORIPRESULT_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORIPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Beian
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BEIAN_EXPORT QueryAccessorIpResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
QueryAccessorIpResult();
|
||||
explicit QueryAccessorIpResult(const std::string &payload);
|
||||
~QueryAccessorIpResult();
|
||||
std::string getMessage()const;
|
||||
bool getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
bool data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_QUERYACCESSORIPRESULT_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_BEIAN_MODEL_SUBMITACCESSORFULLDOMAINSOSSLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_SUBMITACCESSORFULLDOMAINSOSSLISTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Beian {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_BEIAN_EXPORT SubmitAccessorFullDomainsOssListRequest : public RpcServiceRequest {
|
||||
public:
|
||||
SubmitAccessorFullDomainsOssListRequest();
|
||||
~SubmitAccessorFullDomainsOssListRequest();
|
||||
std::string getCaller() const;
|
||||
void setCaller(const std::string &caller);
|
||||
std::vector<std::string> getOssList() const;
|
||||
void setOssList(const std::vector<std::string> &ossList);
|
||||
|
||||
private:
|
||||
std::string caller_;
|
||||
std::vector<std::string> ossList_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Beian
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_SUBMITACCESSORFULLDOMAINSOSSLISTREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_BEIAN_MODEL_SUBMITACCESSORFULLDOMAINSOSSLISTRESULT_H_
|
||||
#define ALIBABACLOUD_BEIAN_MODEL_SUBMITACCESSORFULLDOMAINSOSSLISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/beian/BeianExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Beian
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BEIAN_EXPORT SubmitAccessorFullDomainsOssListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
SubmitAccessorFullDomainsOssListResult();
|
||||
explicit SubmitAccessorFullDomainsOssListResult(const std::string &payload);
|
||||
~SubmitAccessorFullDomainsOssListResult();
|
||||
std::string getMessage()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BEIAN_MODEL_SUBMITACCESSORFULLDOMAINSOSSLISTRESULT_H_
|
||||
557
beian/src/BeianClient.cc
Normal file
557
beian/src/BeianClient.cc
Normal file
@@ -0,0 +1,557 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/beian/BeianClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Beian;
|
||||
using namespace AlibabaCloud::Beian::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "Beian";
|
||||
}
|
||||
|
||||
BeianClient::BeianClient(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, "");
|
||||
}
|
||||
|
||||
BeianClient::BeianClient(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, "");
|
||||
}
|
||||
|
||||
BeianClient::BeianClient(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, "");
|
||||
}
|
||||
|
||||
BeianClient::~BeianClient()
|
||||
{}
|
||||
|
||||
BeianClient::DeleteUnbeianIpCheckTypeOutcome BeianClient::deleteUnbeianIpCheckType(const DeleteUnbeianIpCheckTypeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteUnbeianIpCheckTypeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteUnbeianIpCheckTypeOutcome(DeleteUnbeianIpCheckTypeResult(outcome.result()));
|
||||
else
|
||||
return DeleteUnbeianIpCheckTypeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BeianClient::deleteUnbeianIpCheckTypeAsync(const DeleteUnbeianIpCheckTypeRequest& request, const DeleteUnbeianIpCheckTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteUnbeianIpCheckType(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BeianClient::DeleteUnbeianIpCheckTypeOutcomeCallable BeianClient::deleteUnbeianIpCheckTypeCallable(const DeleteUnbeianIpCheckTypeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteUnbeianIpCheckTypeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteUnbeianIpCheckType(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BeianClient::GetMainDomainOutcome BeianClient::getMainDomain(const GetMainDomainRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMainDomainOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMainDomainOutcome(GetMainDomainResult(outcome.result()));
|
||||
else
|
||||
return GetMainDomainOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BeianClient::getMainDomainAsync(const GetMainDomainRequest& request, const GetMainDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMainDomain(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BeianClient::GetMainDomainOutcomeCallable BeianClient::getMainDomainCallable(const GetMainDomainRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMainDomainOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMainDomain(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BeianClient::InsertUnbeianIpCheckTypeOutcome BeianClient::insertUnbeianIpCheckType(const InsertUnbeianIpCheckTypeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return InsertUnbeianIpCheckTypeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return InsertUnbeianIpCheckTypeOutcome(InsertUnbeianIpCheckTypeResult(outcome.result()));
|
||||
else
|
||||
return InsertUnbeianIpCheckTypeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BeianClient::insertUnbeianIpCheckTypeAsync(const InsertUnbeianIpCheckTypeRequest& request, const InsertUnbeianIpCheckTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, insertUnbeianIpCheckType(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BeianClient::InsertUnbeianIpCheckTypeOutcomeCallable BeianClient::insertUnbeianIpCheckTypeCallable(const InsertUnbeianIpCheckTypeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<InsertUnbeianIpCheckTypeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->insertUnbeianIpCheckType(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BeianClient::ListUnbeianIpCheckTypeOutcome BeianClient::listUnbeianIpCheckType(const ListUnbeianIpCheckTypeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListUnbeianIpCheckTypeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListUnbeianIpCheckTypeOutcome(ListUnbeianIpCheckTypeResult(outcome.result()));
|
||||
else
|
||||
return ListUnbeianIpCheckTypeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BeianClient::listUnbeianIpCheckTypeAsync(const ListUnbeianIpCheckTypeRequest& request, const ListUnbeianIpCheckTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listUnbeianIpCheckType(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BeianClient::ListUnbeianIpCheckTypeOutcomeCallable BeianClient::listUnbeianIpCheckTypeCallable(const ListUnbeianIpCheckTypeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListUnbeianIpCheckTypeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listUnbeianIpCheckType(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BeianClient::ManageAccessorDomainOutcome BeianClient::manageAccessorDomain(const ManageAccessorDomainRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ManageAccessorDomainOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ManageAccessorDomainOutcome(ManageAccessorDomainResult(outcome.result()));
|
||||
else
|
||||
return ManageAccessorDomainOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BeianClient::manageAccessorDomainAsync(const ManageAccessorDomainRequest& request, const ManageAccessorDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, manageAccessorDomain(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BeianClient::ManageAccessorDomainOutcomeCallable BeianClient::manageAccessorDomainCallable(const ManageAccessorDomainRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ManageAccessorDomainOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->manageAccessorDomain(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BeianClient::ManageAccessorDomainWhiteListOutcome BeianClient::manageAccessorDomainWhiteList(const ManageAccessorDomainWhiteListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ManageAccessorDomainWhiteListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ManageAccessorDomainWhiteListOutcome(ManageAccessorDomainWhiteListResult(outcome.result()));
|
||||
else
|
||||
return ManageAccessorDomainWhiteListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BeianClient::manageAccessorDomainWhiteListAsync(const ManageAccessorDomainWhiteListRequest& request, const ManageAccessorDomainWhiteListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, manageAccessorDomainWhiteList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BeianClient::ManageAccessorDomainWhiteListOutcomeCallable BeianClient::manageAccessorDomainWhiteListCallable(const ManageAccessorDomainWhiteListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ManageAccessorDomainWhiteListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->manageAccessorDomainWhiteList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BeianClient::ManageAccessorIpOutcome BeianClient::manageAccessorIp(const ManageAccessorIpRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ManageAccessorIpOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ManageAccessorIpOutcome(ManageAccessorIpResult(outcome.result()));
|
||||
else
|
||||
return ManageAccessorIpOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BeianClient::manageAccessorIpAsync(const ManageAccessorIpRequest& request, const ManageAccessorIpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, manageAccessorIp(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BeianClient::ManageAccessorIpOutcomeCallable BeianClient::manageAccessorIpCallable(const ManageAccessorIpRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ManageAccessorIpOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->manageAccessorIp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BeianClient::QueryAccessorDomainOutcome BeianClient::queryAccessorDomain(const QueryAccessorDomainRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryAccessorDomainOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryAccessorDomainOutcome(QueryAccessorDomainResult(outcome.result()));
|
||||
else
|
||||
return QueryAccessorDomainOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BeianClient::queryAccessorDomainAsync(const QueryAccessorDomainRequest& request, const QueryAccessorDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryAccessorDomain(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BeianClient::QueryAccessorDomainOutcomeCallable BeianClient::queryAccessorDomainCallable(const QueryAccessorDomainRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryAccessorDomainOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryAccessorDomain(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BeianClient::QueryAccessorDomainListOutcome BeianClient::queryAccessorDomainList(const QueryAccessorDomainListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryAccessorDomainListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryAccessorDomainListOutcome(QueryAccessorDomainListResult(outcome.result()));
|
||||
else
|
||||
return QueryAccessorDomainListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BeianClient::queryAccessorDomainListAsync(const QueryAccessorDomainListRequest& request, const QueryAccessorDomainListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryAccessorDomainList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BeianClient::QueryAccessorDomainListOutcomeCallable BeianClient::queryAccessorDomainListCallable(const QueryAccessorDomainListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryAccessorDomainListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryAccessorDomainList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BeianClient::QueryAccessorDomainStatusOutcome BeianClient::queryAccessorDomainStatus(const QueryAccessorDomainStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryAccessorDomainStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryAccessorDomainStatusOutcome(QueryAccessorDomainStatusResult(outcome.result()));
|
||||
else
|
||||
return QueryAccessorDomainStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BeianClient::queryAccessorDomainStatusAsync(const QueryAccessorDomainStatusRequest& request, const QueryAccessorDomainStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryAccessorDomainStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BeianClient::QueryAccessorDomainStatusOutcomeCallable BeianClient::queryAccessorDomainStatusCallable(const QueryAccessorDomainStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryAccessorDomainStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryAccessorDomainStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BeianClient::QueryAccessorDomainWhiteListOutcome BeianClient::queryAccessorDomainWhiteList(const QueryAccessorDomainWhiteListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryAccessorDomainWhiteListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryAccessorDomainWhiteListOutcome(QueryAccessorDomainWhiteListResult(outcome.result()));
|
||||
else
|
||||
return QueryAccessorDomainWhiteListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BeianClient::queryAccessorDomainWhiteListAsync(const QueryAccessorDomainWhiteListRequest& request, const QueryAccessorDomainWhiteListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryAccessorDomainWhiteList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BeianClient::QueryAccessorDomainWhiteListOutcomeCallable BeianClient::queryAccessorDomainWhiteListCallable(const QueryAccessorDomainWhiteListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryAccessorDomainWhiteListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryAccessorDomainWhiteList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BeianClient::QueryAccessorDomainsStatusOutcome BeianClient::queryAccessorDomainsStatus(const QueryAccessorDomainsStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryAccessorDomainsStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryAccessorDomainsStatusOutcome(QueryAccessorDomainsStatusResult(outcome.result()));
|
||||
else
|
||||
return QueryAccessorDomainsStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BeianClient::queryAccessorDomainsStatusAsync(const QueryAccessorDomainsStatusRequest& request, const QueryAccessorDomainsStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryAccessorDomainsStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BeianClient::QueryAccessorDomainsStatusOutcomeCallable BeianClient::queryAccessorDomainsStatusCallable(const QueryAccessorDomainsStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryAccessorDomainsStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryAccessorDomainsStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BeianClient::QueryAccessorIpOutcome BeianClient::queryAccessorIp(const QueryAccessorIpRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryAccessorIpOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryAccessorIpOutcome(QueryAccessorIpResult(outcome.result()));
|
||||
else
|
||||
return QueryAccessorIpOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BeianClient::queryAccessorIpAsync(const QueryAccessorIpRequest& request, const QueryAccessorIpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryAccessorIp(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BeianClient::QueryAccessorIpOutcomeCallable BeianClient::queryAccessorIpCallable(const QueryAccessorIpRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryAccessorIpOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryAccessorIp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BeianClient::SubmitAccessorFullDomainsOssListOutcome BeianClient::submitAccessorFullDomainsOssList(const SubmitAccessorFullDomainsOssListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubmitAccessorFullDomainsOssListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubmitAccessorFullDomainsOssListOutcome(SubmitAccessorFullDomainsOssListResult(outcome.result()));
|
||||
else
|
||||
return SubmitAccessorFullDomainsOssListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BeianClient::submitAccessorFullDomainsOssListAsync(const SubmitAccessorFullDomainsOssListRequest& request, const SubmitAccessorFullDomainsOssListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, submitAccessorFullDomainsOssList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BeianClient::SubmitAccessorFullDomainsOssListOutcomeCallable BeianClient::submitAccessorFullDomainsOssListCallable(const SubmitAccessorFullDomainsOssListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubmitAccessorFullDomainsOssListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->submitAccessorFullDomainsOssList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
63
beian/src/model/DeleteUnbeianIpCheckTypeRequest.cc
Normal file
63
beian/src/model/DeleteUnbeianIpCheckTypeRequest.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/beian/model/DeleteUnbeianIpCheckTypeRequest.h>
|
||||
|
||||
using AlibabaCloud::Beian::Model::DeleteUnbeianIpCheckTypeRequest;
|
||||
|
||||
DeleteUnbeianIpCheckTypeRequest::DeleteUnbeianIpCheckTypeRequest()
|
||||
: RpcServiceRequest("beian", "2016-08-10", "DeleteUnbeianIpCheckType") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteUnbeianIpCheckTypeRequest::~DeleteUnbeianIpCheckTypeRequest() {}
|
||||
|
||||
std::string DeleteUnbeianIpCheckTypeRequest::getIp() const {
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void DeleteUnbeianIpCheckTypeRequest::setIp(const std::string &ip) {
|
||||
ip_ = ip;
|
||||
setParameter(std::string("Ip"), ip);
|
||||
}
|
||||
|
||||
std::string DeleteUnbeianIpCheckTypeRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void DeleteUnbeianIpCheckTypeRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
int DeleteUnbeianIpCheckTypeRequest::getCheckType() const {
|
||||
return checkType_;
|
||||
}
|
||||
|
||||
void DeleteUnbeianIpCheckTypeRequest::setCheckType(int checkType) {
|
||||
checkType_ = checkType;
|
||||
setParameter(std::string("CheckType"), std::to_string(checkType));
|
||||
}
|
||||
|
||||
std::string DeleteUnbeianIpCheckTypeRequest::getCaller() const {
|
||||
return caller_;
|
||||
}
|
||||
|
||||
void DeleteUnbeianIpCheckTypeRequest::setCaller(const std::string &caller) {
|
||||
caller_ = caller;
|
||||
setParameter(std::string("Caller"), caller);
|
||||
}
|
||||
|
||||
75
beian/src/model/DeleteUnbeianIpCheckTypeResult.cc
Normal file
75
beian/src/model/DeleteUnbeianIpCheckTypeResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/beian/model/DeleteUnbeianIpCheckTypeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Beian;
|
||||
using namespace AlibabaCloud::Beian::Model;
|
||||
|
||||
DeleteUnbeianIpCheckTypeResult::DeleteUnbeianIpCheckTypeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteUnbeianIpCheckTypeResult::DeleteUnbeianIpCheckTypeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteUnbeianIpCheckTypeResult::~DeleteUnbeianIpCheckTypeResult()
|
||||
{}
|
||||
|
||||
void DeleteUnbeianIpCheckTypeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto huntressIpCheckTypeResultDONode = value["HuntressIpCheckTypeResultDO"];
|
||||
if(!huntressIpCheckTypeResultDONode["Msg"].isNull())
|
||||
huntressIpCheckTypeResultDO_.msg = huntressIpCheckTypeResultDONode["Msg"].asString();
|
||||
if(!huntressIpCheckTypeResultDONode["Success"].isNull())
|
||||
huntressIpCheckTypeResultDO_.success = huntressIpCheckTypeResultDONode["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
DeleteUnbeianIpCheckTypeResult::HuntressIpCheckTypeResultDO DeleteUnbeianIpCheckTypeResult::getHuntressIpCheckTypeResultDO()const
|
||||
{
|
||||
return huntressIpCheckTypeResultDO_;
|
||||
}
|
||||
|
||||
int DeleteUnbeianIpCheckTypeResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteUnbeianIpCheckTypeResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool DeleteUnbeianIpCheckTypeResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -14,23 +14,23 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mts/model/DetectImageSyncRequest.h>
|
||||
#include <alibabacloud/beian/model/GetMainDomainRequest.h>
|
||||
|
||||
using AlibabaCloud::Mts::Model::DetectImageSyncRequest;
|
||||
using AlibabaCloud::Beian::Model::GetMainDomainRequest;
|
||||
|
||||
DetectImageSyncRequest::DetectImageSyncRequest()
|
||||
: RpcServiceRequest("mts", "2014-06-18", "DetectImageSync") {
|
||||
GetMainDomainRequest::GetMainDomainRequest()
|
||||
: RpcServiceRequest("beian", "2016-08-10", "GetMainDomain") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DetectImageSyncRequest::~DetectImageSyncRequest() {}
|
||||
GetMainDomainRequest::~GetMainDomainRequest() {}
|
||||
|
||||
std::string DetectImageSyncRequest::getImage() const {
|
||||
return image_;
|
||||
std::string GetMainDomainRequest::getDomain() const {
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void DetectImageSyncRequest::setImage(const std::string &image) {
|
||||
image_ = image;
|
||||
setParameter(std::string("Image"), image);
|
||||
void GetMainDomainRequest::setDomain(const std::string &domain) {
|
||||
domain_ = domain;
|
||||
setParameter(std::string("Domain"), domain);
|
||||
}
|
||||
|
||||
@@ -14,52 +14,52 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mts/model/SubmitVideoQualityJobResult.h>
|
||||
#include <alibabacloud/beian/model/GetMainDomainResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mts;
|
||||
using namespace AlibabaCloud::Mts::Model;
|
||||
using namespace AlibabaCloud::Beian;
|
||||
using namespace AlibabaCloud::Beian::Model;
|
||||
|
||||
SubmitVideoQualityJobResult::SubmitVideoQualityJobResult() :
|
||||
GetMainDomainResult::GetMainDomainResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SubmitVideoQualityJobResult::SubmitVideoQualityJobResult(const std::string &payload) :
|
||||
GetMainDomainResult::GetMainDomainResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SubmitVideoQualityJobResult::~SubmitVideoQualityJobResult()
|
||||
GetMainDomainResult::~GetMainDomainResult()
|
||||
{}
|
||||
|
||||
void SubmitVideoQualityJobResult::parse(const std::string &payload)
|
||||
void GetMainDomainResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = value["JobId"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SubmitVideoQualityJobResult::getMessage()const
|
||||
std::string GetMainDomainResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string SubmitVideoQualityJobResult::getCode()const
|
||||
std::string GetMainDomainResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetMainDomainResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string SubmitVideoQualityJobResult::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
63
beian/src/model/InsertUnbeianIpCheckTypeRequest.cc
Normal file
63
beian/src/model/InsertUnbeianIpCheckTypeRequest.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/beian/model/InsertUnbeianIpCheckTypeRequest.h>
|
||||
|
||||
using AlibabaCloud::Beian::Model::InsertUnbeianIpCheckTypeRequest;
|
||||
|
||||
InsertUnbeianIpCheckTypeRequest::InsertUnbeianIpCheckTypeRequest()
|
||||
: RpcServiceRequest("beian", "2016-08-10", "InsertUnbeianIpCheckType") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InsertUnbeianIpCheckTypeRequest::~InsertUnbeianIpCheckTypeRequest() {}
|
||||
|
||||
std::string InsertUnbeianIpCheckTypeRequest::getIp() const {
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void InsertUnbeianIpCheckTypeRequest::setIp(const std::string &ip) {
|
||||
ip_ = ip;
|
||||
setParameter(std::string("Ip"), ip);
|
||||
}
|
||||
|
||||
std::string InsertUnbeianIpCheckTypeRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void InsertUnbeianIpCheckTypeRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
int InsertUnbeianIpCheckTypeRequest::getCheckType() const {
|
||||
return checkType_;
|
||||
}
|
||||
|
||||
void InsertUnbeianIpCheckTypeRequest::setCheckType(int checkType) {
|
||||
checkType_ = checkType;
|
||||
setParameter(std::string("CheckType"), std::to_string(checkType));
|
||||
}
|
||||
|
||||
std::string InsertUnbeianIpCheckTypeRequest::getCaller() const {
|
||||
return caller_;
|
||||
}
|
||||
|
||||
void InsertUnbeianIpCheckTypeRequest::setCaller(const std::string &caller) {
|
||||
caller_ = caller;
|
||||
setParameter(std::string("Caller"), caller);
|
||||
}
|
||||
|
||||
75
beian/src/model/InsertUnbeianIpCheckTypeResult.cc
Normal file
75
beian/src/model/InsertUnbeianIpCheckTypeResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/beian/model/InsertUnbeianIpCheckTypeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Beian;
|
||||
using namespace AlibabaCloud::Beian::Model;
|
||||
|
||||
InsertUnbeianIpCheckTypeResult::InsertUnbeianIpCheckTypeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InsertUnbeianIpCheckTypeResult::InsertUnbeianIpCheckTypeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InsertUnbeianIpCheckTypeResult::~InsertUnbeianIpCheckTypeResult()
|
||||
{}
|
||||
|
||||
void InsertUnbeianIpCheckTypeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto huntressIpCheckTypeResultDONode = value["HuntressIpCheckTypeResultDO"];
|
||||
if(!huntressIpCheckTypeResultDONode["Msg"].isNull())
|
||||
huntressIpCheckTypeResultDO_.msg = huntressIpCheckTypeResultDONode["Msg"].asString();
|
||||
if(!huntressIpCheckTypeResultDONode["Success"].isNull())
|
||||
huntressIpCheckTypeResultDO_.success = huntressIpCheckTypeResultDONode["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
InsertUnbeianIpCheckTypeResult::HuntressIpCheckTypeResultDO InsertUnbeianIpCheckTypeResult::getHuntressIpCheckTypeResultDO()const
|
||||
{
|
||||
return huntressIpCheckTypeResultDO_;
|
||||
}
|
||||
|
||||
int InsertUnbeianIpCheckTypeResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string InsertUnbeianIpCheckTypeResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool InsertUnbeianIpCheckTypeResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
81
beian/src/model/ListUnbeianIpCheckTypeRequest.cc
Normal file
81
beian/src/model/ListUnbeianIpCheckTypeRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/beian/model/ListUnbeianIpCheckTypeRequest.h>
|
||||
|
||||
using AlibabaCloud::Beian::Model::ListUnbeianIpCheckTypeRequest;
|
||||
|
||||
ListUnbeianIpCheckTypeRequest::ListUnbeianIpCheckTypeRequest()
|
||||
: RpcServiceRequest("beian", "2016-08-10", "ListUnbeianIpCheckType") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListUnbeianIpCheckTypeRequest::~ListUnbeianIpCheckTypeRequest() {}
|
||||
|
||||
std::string ListUnbeianIpCheckTypeRequest::getIp() const {
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void ListUnbeianIpCheckTypeRequest::setIp(const std::string &ip) {
|
||||
ip_ = ip;
|
||||
setParameter(std::string("Ip"), ip);
|
||||
}
|
||||
|
||||
std::string ListUnbeianIpCheckTypeRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void ListUnbeianIpCheckTypeRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
int ListUnbeianIpCheckTypeRequest::getCheckType() const {
|
||||
return checkType_;
|
||||
}
|
||||
|
||||
void ListUnbeianIpCheckTypeRequest::setCheckType(int checkType) {
|
||||
checkType_ = checkType;
|
||||
setParameter(std::string("CheckType"), std::to_string(checkType));
|
||||
}
|
||||
|
||||
std::string ListUnbeianIpCheckTypeRequest::getCaller() const {
|
||||
return caller_;
|
||||
}
|
||||
|
||||
void ListUnbeianIpCheckTypeRequest::setCaller(const std::string &caller) {
|
||||
caller_ = caller;
|
||||
setParameter(std::string("Caller"), caller);
|
||||
}
|
||||
|
||||
int ListUnbeianIpCheckTypeRequest::getLimit() const {
|
||||
return limit_;
|
||||
}
|
||||
|
||||
void ListUnbeianIpCheckTypeRequest::setLimit(int limit) {
|
||||
limit_ = limit;
|
||||
setParameter(std::string("Limit"), std::to_string(limit));
|
||||
}
|
||||
|
||||
int ListUnbeianIpCheckTypeRequest::getPage() const {
|
||||
return page_;
|
||||
}
|
||||
|
||||
void ListUnbeianIpCheckTypeRequest::setPage(int page) {
|
||||
page_ = page;
|
||||
setParameter(std::string("Page"), std::to_string(page));
|
||||
}
|
||||
|
||||
91
beian/src/model/ListUnbeianIpCheckTypeResult.cc
Normal file
91
beian/src/model/ListUnbeianIpCheckTypeResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/beian/model/ListUnbeianIpCheckTypeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Beian;
|
||||
using namespace AlibabaCloud::Beian::Model;
|
||||
|
||||
ListUnbeianIpCheckTypeResult::ListUnbeianIpCheckTypeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListUnbeianIpCheckTypeResult::ListUnbeianIpCheckTypeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListUnbeianIpCheckTypeResult::~ListUnbeianIpCheckTypeResult()
|
||||
{}
|
||||
|
||||
void ListUnbeianIpCheckTypeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto huntressIpCheckTypeResultDONode = value["HuntressIpCheckTypeResultDO"];
|
||||
if(!huntressIpCheckTypeResultDONode["Msg"].isNull())
|
||||
huntressIpCheckTypeResultDO_.msg = huntressIpCheckTypeResultDONode["Msg"].asString();
|
||||
if(!huntressIpCheckTypeResultDONode["Success"].isNull())
|
||||
huntressIpCheckTypeResultDO_.success = huntressIpCheckTypeResultDONode["Success"].asString() == "true";
|
||||
auto allListNode = huntressIpCheckTypeResultDONode["List"]["ListItem"];
|
||||
for (auto huntressIpCheckTypeResultDONodeListListItem : allListNode)
|
||||
{
|
||||
HuntressIpCheckTypeResultDO::ListItem listItemObject;
|
||||
if(!huntressIpCheckTypeResultDONodeListListItem["Ip"].isNull())
|
||||
listItemObject.ip = huntressIpCheckTypeResultDONodeListListItem["Ip"].asString();
|
||||
if(!huntressIpCheckTypeResultDONodeListListItem["Aliuid"].isNull())
|
||||
listItemObject.aliuid = std::stol(huntressIpCheckTypeResultDONodeListListItem["Aliuid"].asString());
|
||||
if(!huntressIpCheckTypeResultDONodeListListItem["CheckType"].isNull())
|
||||
listItemObject.checkType = std::stoi(huntressIpCheckTypeResultDONodeListListItem["CheckType"].asString());
|
||||
if(!huntressIpCheckTypeResultDONodeListListItem["Caller"].isNull())
|
||||
listItemObject.caller = huntressIpCheckTypeResultDONodeListListItem["Caller"].asString();
|
||||
if(!huntressIpCheckTypeResultDONodeListListItem["Remark"].isNull())
|
||||
listItemObject.remark = huntressIpCheckTypeResultDONodeListListItem["Remark"].asString();
|
||||
huntressIpCheckTypeResultDO_.list.push_back(listItemObject);
|
||||
}
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
ListUnbeianIpCheckTypeResult::HuntressIpCheckTypeResultDO ListUnbeianIpCheckTypeResult::getHuntressIpCheckTypeResultDO()const
|
||||
{
|
||||
return huntressIpCheckTypeResultDO_;
|
||||
}
|
||||
|
||||
int ListUnbeianIpCheckTypeResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListUnbeianIpCheckTypeResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListUnbeianIpCheckTypeResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
beian/src/model/ManageAccessorDomainRequest.cc
Normal file
54
beian/src/model/ManageAccessorDomainRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/beian/model/ManageAccessorDomainRequest.h>
|
||||
|
||||
using AlibabaCloud::Beian::Model::ManageAccessorDomainRequest;
|
||||
|
||||
ManageAccessorDomainRequest::ManageAccessorDomainRequest()
|
||||
: RpcServiceRequest("beian", "2016-08-10", "ManageAccessorDomain") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ManageAccessorDomainRequest::~ManageAccessorDomainRequest() {}
|
||||
|
||||
std::string ManageAccessorDomainRequest::getCaller() const {
|
||||
return caller_;
|
||||
}
|
||||
|
||||
void ManageAccessorDomainRequest::setCaller(const std::string &caller) {
|
||||
caller_ = caller;
|
||||
setParameter(std::string("Caller"), caller);
|
||||
}
|
||||
|
||||
std::string ManageAccessorDomainRequest::getDomain() const {
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void ManageAccessorDomainRequest::setDomain(const std::string &domain) {
|
||||
domain_ = domain;
|
||||
setParameter(std::string("Domain"), domain);
|
||||
}
|
||||
|
||||
std::string ManageAccessorDomainRequest::getOperation() const {
|
||||
return operation_;
|
||||
}
|
||||
|
||||
void ManageAccessorDomainRequest::setOperation(const std::string &operation) {
|
||||
operation_ = operation;
|
||||
setParameter(std::string("Operation"), operation);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/live/model/DeleteMultiRateConfigResult.h>
|
||||
#include <alibabacloud/beian/model/ManageAccessorDomainResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
using namespace AlibabaCloud::Beian;
|
||||
using namespace AlibabaCloud::Beian::Model;
|
||||
|
||||
DeleteMultiRateConfigResult::DeleteMultiRateConfigResult() :
|
||||
ManageAccessorDomainResult::ManageAccessorDomainResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteMultiRateConfigResult::DeleteMultiRateConfigResult(const std::string &payload) :
|
||||
ManageAccessorDomainResult::ManageAccessorDomainResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteMultiRateConfigResult::~DeleteMultiRateConfigResult()
|
||||
ManageAccessorDomainResult::~ManageAccessorDomainResult()
|
||||
{}
|
||||
|
||||
void DeleteMultiRateConfigResult::parse(const std::string &payload)
|
||||
void ManageAccessorDomainResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -46,12 +46,12 @@ void DeleteMultiRateConfigResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteMultiRateConfigResult::getMessage()const
|
||||
std::string ManageAccessorDomainResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteMultiRateConfigResult::getCode()const
|
||||
int ManageAccessorDomainResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
80
beian/src/model/ManageAccessorDomainWhiteListRequest.cc
Normal file
80
beian/src/model/ManageAccessorDomainWhiteListRequest.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/beian/model/ManageAccessorDomainWhiteListRequest.h>
|
||||
|
||||
using AlibabaCloud::Beian::Model::ManageAccessorDomainWhiteListRequest;
|
||||
|
||||
ManageAccessorDomainWhiteListRequest::ManageAccessorDomainWhiteListRequest()
|
||||
: RpcServiceRequest("beian", "2016-08-10", "ManageAccessorDomainWhiteList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ManageAccessorDomainWhiteListRequest::~ManageAccessorDomainWhiteListRequest() {}
|
||||
|
||||
std::string ManageAccessorDomainWhiteListRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ManageAccessorDomainWhiteListRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
std::vector<std::string> ManageAccessorDomainWhiteListRequest::getDomains() const {
|
||||
return domains_;
|
||||
}
|
||||
|
||||
void ManageAccessorDomainWhiteListRequest::setDomains(const std::vector<std::string> &domains) {
|
||||
domains_ = domains;
|
||||
}
|
||||
|
||||
std::string ManageAccessorDomainWhiteListRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void ManageAccessorDomainWhiteListRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
std::string ManageAccessorDomainWhiteListRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ManageAccessorDomainWhiteListRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
std::string ManageAccessorDomainWhiteListRequest::getCaller() const {
|
||||
return caller_;
|
||||
}
|
||||
|
||||
void ManageAccessorDomainWhiteListRequest::setCaller(const std::string &caller) {
|
||||
caller_ = caller;
|
||||
setParameter(std::string("Caller"), caller);
|
||||
}
|
||||
|
||||
std::string ManageAccessorDomainWhiteListRequest::getOperation() const {
|
||||
return operation_;
|
||||
}
|
||||
|
||||
void ManageAccessorDomainWhiteListRequest::setOperation(const std::string &operation) {
|
||||
operation_ = operation;
|
||||
setParameter(std::string("Operation"), operation);
|
||||
}
|
||||
|
||||
58
beian/src/model/ManageAccessorDomainWhiteListResult.cc
Normal file
58
beian/src/model/ManageAccessorDomainWhiteListResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/beian/model/ManageAccessorDomainWhiteListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Beian;
|
||||
using namespace AlibabaCloud::Beian::Model;
|
||||
|
||||
ManageAccessorDomainWhiteListResult::ManageAccessorDomainWhiteListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ManageAccessorDomainWhiteListResult::ManageAccessorDomainWhiteListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ManageAccessorDomainWhiteListResult::~ManageAccessorDomainWhiteListResult()
|
||||
{}
|
||||
|
||||
void ManageAccessorDomainWhiteListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ManageAccessorDomainWhiteListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ManageAccessorDomainWhiteListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
72
beian/src/model/ManageAccessorIpRequest.cc
Normal file
72
beian/src/model/ManageAccessorIpRequest.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/beian/model/ManageAccessorIpRequest.h>
|
||||
|
||||
using AlibabaCloud::Beian::Model::ManageAccessorIpRequest;
|
||||
|
||||
ManageAccessorIpRequest::ManageAccessorIpRequest()
|
||||
: RpcServiceRequest("beian", "2016-08-10", "ManageAccessorIp") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ManageAccessorIpRequest::~ManageAccessorIpRequest() {}
|
||||
|
||||
std::string ManageAccessorIpRequest::getIp() const {
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void ManageAccessorIpRequest::setIp(const std::string &ip) {
|
||||
ip_ = ip;
|
||||
setParameter(std::string("Ip"), ip);
|
||||
}
|
||||
|
||||
std::string ManageAccessorIpRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void ManageAccessorIpRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
std::string ManageAccessorIpRequest::getCaller() const {
|
||||
return caller_;
|
||||
}
|
||||
|
||||
void ManageAccessorIpRequest::setCaller(const std::string &caller) {
|
||||
caller_ = caller;
|
||||
setParameter(std::string("Caller"), caller);
|
||||
}
|
||||
|
||||
int ManageAccessorIpRequest::getIpVersion() const {
|
||||
return ipVersion_;
|
||||
}
|
||||
|
||||
void ManageAccessorIpRequest::setIpVersion(int ipVersion) {
|
||||
ipVersion_ = ipVersion;
|
||||
setParameter(std::string("IpVersion"), std::to_string(ipVersion));
|
||||
}
|
||||
|
||||
std::string ManageAccessorIpRequest::getOperation() const {
|
||||
return operation_;
|
||||
}
|
||||
|
||||
void ManageAccessorIpRequest::setOperation(const std::string &operation) {
|
||||
operation_ = operation;
|
||||
setParameter(std::string("Operation"), operation);
|
||||
}
|
||||
|
||||
58
beian/src/model/ManageAccessorIpResult.cc
Normal file
58
beian/src/model/ManageAccessorIpResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/beian/model/ManageAccessorIpResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Beian;
|
||||
using namespace AlibabaCloud::Beian::Model;
|
||||
|
||||
ManageAccessorIpResult::ManageAccessorIpResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ManageAccessorIpResult::ManageAccessorIpResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ManageAccessorIpResult::~ManageAccessorIpResult()
|
||||
{}
|
||||
|
||||
void ManageAccessorIpResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ManageAccessorIpResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ManageAccessorIpResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
beian/src/model/QueryAccessorDomainListRequest.cc
Normal file
63
beian/src/model/QueryAccessorDomainListRequest.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/beian/model/QueryAccessorDomainListRequest.h>
|
||||
|
||||
using AlibabaCloud::Beian::Model::QueryAccessorDomainListRequest;
|
||||
|
||||
QueryAccessorDomainListRequest::QueryAccessorDomainListRequest()
|
||||
: RpcServiceRequest("beian", "2016-08-10", "QueryAccessorDomainList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryAccessorDomainListRequest::~QueryAccessorDomainListRequest() {}
|
||||
|
||||
std::string QueryAccessorDomainListRequest::getCaller() const {
|
||||
return caller_;
|
||||
}
|
||||
|
||||
void QueryAccessorDomainListRequest::setCaller(const std::string &caller) {
|
||||
caller_ = caller;
|
||||
setParameter(std::string("Caller"), caller);
|
||||
}
|
||||
|
||||
int QueryAccessorDomainListRequest::getPageNo() const {
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
void QueryAccessorDomainListRequest::setPageNo(int pageNo) {
|
||||
pageNo_ = pageNo;
|
||||
setParameter(std::string("PageNo"), std::to_string(pageNo));
|
||||
}
|
||||
|
||||
std::string QueryAccessorDomainListRequest::getDomain() const {
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void QueryAccessorDomainListRequest::setDomain(const std::string &domain) {
|
||||
domain_ = domain;
|
||||
setParameter(std::string("Domain"), domain);
|
||||
}
|
||||
|
||||
int QueryAccessorDomainListRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryAccessorDomainListRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
67
beian/src/model/QueryAccessorDomainListResult.cc
Normal file
67
beian/src/model/QueryAccessorDomainListResult.cc
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/beian/model/QueryAccessorDomainListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Beian;
|
||||
using namespace AlibabaCloud::Beian::Model;
|
||||
|
||||
QueryAccessorDomainListResult::QueryAccessorDomainListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryAccessorDomainListResult::QueryAccessorDomainListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryAccessorDomainListResult::~QueryAccessorDomainListResult()
|
||||
{}
|
||||
|
||||
void QueryAccessorDomainListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allDomains = dataNode["Domains"]["domains"];
|
||||
for (auto value : allDomains)
|
||||
data_.domains.push_back(value.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryAccessorDomainListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
QueryAccessorDomainListResult::Data QueryAccessorDomainListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int QueryAccessorDomainListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
45
beian/src/model/QueryAccessorDomainRequest.cc
Normal file
45
beian/src/model/QueryAccessorDomainRequest.cc
Normal file
@@ -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/beian/model/QueryAccessorDomainRequest.h>
|
||||
|
||||
using AlibabaCloud::Beian::Model::QueryAccessorDomainRequest;
|
||||
|
||||
QueryAccessorDomainRequest::QueryAccessorDomainRequest()
|
||||
: RpcServiceRequest("beian", "2016-08-10", "QueryAccessorDomain") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryAccessorDomainRequest::~QueryAccessorDomainRequest() {}
|
||||
|
||||
std::string QueryAccessorDomainRequest::getCaller() const {
|
||||
return caller_;
|
||||
}
|
||||
|
||||
void QueryAccessorDomainRequest::setCaller(const std::string &caller) {
|
||||
caller_ = caller;
|
||||
setParameter(std::string("Caller"), caller);
|
||||
}
|
||||
|
||||
std::string QueryAccessorDomainRequest::getDomain() const {
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void QueryAccessorDomainRequest::setDomain(const std::string &domain) {
|
||||
domain_ = domain;
|
||||
setParameter(std::string("Domain"), domain);
|
||||
}
|
||||
|
||||
65
beian/src/model/QueryAccessorDomainResult.cc
Normal file
65
beian/src/model/QueryAccessorDomainResult.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/beian/model/QueryAccessorDomainResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Beian;
|
||||
using namespace AlibabaCloud::Beian::Model;
|
||||
|
||||
QueryAccessorDomainResult::QueryAccessorDomainResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryAccessorDomainResult::QueryAccessorDomainResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryAccessorDomainResult::~QueryAccessorDomainResult()
|
||||
{}
|
||||
|
||||
void QueryAccessorDomainResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string QueryAccessorDomainResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool QueryAccessorDomainResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int QueryAccessorDomainResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
45
beian/src/model/QueryAccessorDomainStatusRequest.cc
Normal file
45
beian/src/model/QueryAccessorDomainStatusRequest.cc
Normal file
@@ -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/beian/model/QueryAccessorDomainStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Beian::Model::QueryAccessorDomainStatusRequest;
|
||||
|
||||
QueryAccessorDomainStatusRequest::QueryAccessorDomainStatusRequest()
|
||||
: RpcServiceRequest("beian", "2016-08-10", "QueryAccessorDomainStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryAccessorDomainStatusRequest::~QueryAccessorDomainStatusRequest() {}
|
||||
|
||||
std::string QueryAccessorDomainStatusRequest::getCaller() const {
|
||||
return caller_;
|
||||
}
|
||||
|
||||
void QueryAccessorDomainStatusRequest::setCaller(const std::string &caller) {
|
||||
caller_ = caller;
|
||||
setParameter(std::string("Caller"), caller);
|
||||
}
|
||||
|
||||
std::string QueryAccessorDomainStatusRequest::getDomain() const {
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void QueryAccessorDomainStatusRequest::setDomain(const std::string &domain) {
|
||||
domain_ = domain;
|
||||
setParameter(std::string("Domain"), domain);
|
||||
}
|
||||
|
||||
72
beian/src/model/QueryAccessorDomainStatusResult.cc
Normal file
72
beian/src/model/QueryAccessorDomainStatusResult.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/beian/model/QueryAccessorDomainStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Beian;
|
||||
using namespace AlibabaCloud::Beian::Model;
|
||||
|
||||
QueryAccessorDomainStatusResult::QueryAccessorDomainStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryAccessorDomainStatusResult::QueryAccessorDomainStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryAccessorDomainStatusResult::~QueryAccessorDomainStatusResult()
|
||||
{}
|
||||
|
||||
void QueryAccessorDomainStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Domain"].isNull())
|
||||
data_.domain = dataNode["Domain"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!dataNode["ReasonCode"].isNull())
|
||||
data_.reasonCode = std::stoi(dataNode["ReasonCode"].asString());
|
||||
if(!dataNode["Reason"].isNull())
|
||||
data_.reason = dataNode["Reason"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryAccessorDomainStatusResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
QueryAccessorDomainStatusResult::Data QueryAccessorDomainStatusResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int QueryAccessorDomainStatusResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
45
beian/src/model/QueryAccessorDomainWhiteListRequest.cc
Normal file
45
beian/src/model/QueryAccessorDomainWhiteListRequest.cc
Normal file
@@ -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/beian/model/QueryAccessorDomainWhiteListRequest.h>
|
||||
|
||||
using AlibabaCloud::Beian::Model::QueryAccessorDomainWhiteListRequest;
|
||||
|
||||
QueryAccessorDomainWhiteListRequest::QueryAccessorDomainWhiteListRequest()
|
||||
: RpcServiceRequest("beian", "2016-08-10", "QueryAccessorDomainWhiteList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryAccessorDomainWhiteListRequest::~QueryAccessorDomainWhiteListRequest() {}
|
||||
|
||||
std::string QueryAccessorDomainWhiteListRequest::getCaller() const {
|
||||
return caller_;
|
||||
}
|
||||
|
||||
void QueryAccessorDomainWhiteListRequest::setCaller(const std::string &caller) {
|
||||
caller_ = caller;
|
||||
setParameter(std::string("Caller"), caller);
|
||||
}
|
||||
|
||||
std::string QueryAccessorDomainWhiteListRequest::getDomain() const {
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void QueryAccessorDomainWhiteListRequest::setDomain(const std::string &domain) {
|
||||
domain_ = domain;
|
||||
setParameter(std::string("Domain"), domain);
|
||||
}
|
||||
|
||||
82
beian/src/model/QueryAccessorDomainWhiteListResult.cc
Normal file
82
beian/src/model/QueryAccessorDomainWhiteListResult.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/beian/model/QueryAccessorDomainWhiteListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Beian;
|
||||
using namespace AlibabaCloud::Beian::Model;
|
||||
|
||||
QueryAccessorDomainWhiteListResult::QueryAccessorDomainWhiteListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryAccessorDomainWhiteListResult::QueryAccessorDomainWhiteListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryAccessorDomainWhiteListResult::~QueryAccessorDomainWhiteListResult()
|
||||
{}
|
||||
|
||||
void QueryAccessorDomainWhiteListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["White"].isNull())
|
||||
data_.white = dataNode["White"].asString() == "true";
|
||||
auto allItemsNode = dataNode["Items"]["itemsItem"];
|
||||
for (auto dataNodeItemsitemsItem : allItemsNode)
|
||||
{
|
||||
Data::ItemsItem itemsItemObject;
|
||||
if(!dataNodeItemsitemsItem["Type"].isNull())
|
||||
itemsItemObject.type = dataNodeItemsitemsItem["Type"].asString();
|
||||
if(!dataNodeItemsitemsItem["CreateTime"].isNull())
|
||||
itemsItemObject.createTime = dataNodeItemsitemsItem["CreateTime"].asString();
|
||||
if(!dataNodeItemsitemsItem["StartTime"].isNull())
|
||||
itemsItemObject.startTime = dataNodeItemsitemsItem["StartTime"].asString();
|
||||
if(!dataNodeItemsitemsItem["EndTime"].isNull())
|
||||
itemsItemObject.endTime = dataNodeItemsitemsItem["EndTime"].asString();
|
||||
if(!dataNodeItemsitemsItem["Valid"].isNull())
|
||||
itemsItemObject.valid = dataNodeItemsitemsItem["Valid"].asString() == "true";
|
||||
data_.items.push_back(itemsItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryAccessorDomainWhiteListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
QueryAccessorDomainWhiteListResult::Data QueryAccessorDomainWhiteListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int QueryAccessorDomainWhiteListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
44
beian/src/model/QueryAccessorDomainsStatusRequest.cc
Normal file
44
beian/src/model/QueryAccessorDomainsStatusRequest.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/beian/model/QueryAccessorDomainsStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Beian::Model::QueryAccessorDomainsStatusRequest;
|
||||
|
||||
QueryAccessorDomainsStatusRequest::QueryAccessorDomainsStatusRequest()
|
||||
: RpcServiceRequest("beian", "2016-08-10", "QueryAccessorDomainsStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryAccessorDomainsStatusRequest::~QueryAccessorDomainsStatusRequest() {}
|
||||
|
||||
std::vector<std::string> QueryAccessorDomainsStatusRequest::getDomains() const {
|
||||
return domains_;
|
||||
}
|
||||
|
||||
void QueryAccessorDomainsStatusRequest::setDomains(const std::vector<std::string> &domains) {
|
||||
domains_ = domains;
|
||||
}
|
||||
|
||||
std::string QueryAccessorDomainsStatusRequest::getCaller() const {
|
||||
return caller_;
|
||||
}
|
||||
|
||||
void QueryAccessorDomainsStatusRequest::setCaller(const std::string &caller) {
|
||||
caller_ = caller;
|
||||
setParameter(std::string("Caller"), caller);
|
||||
}
|
||||
|
||||
77
beian/src/model/QueryAccessorDomainsStatusResult.cc
Normal file
77
beian/src/model/QueryAccessorDomainsStatusResult.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/beian/model/QueryAccessorDomainsStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Beian;
|
||||
using namespace AlibabaCloud::Beian::Model;
|
||||
|
||||
QueryAccessorDomainsStatusResult::QueryAccessorDomainsStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryAccessorDomainsStatusResult::QueryAccessorDomainsStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryAccessorDomainsStatusResult::~QueryAccessorDomainsStatusResult()
|
||||
{}
|
||||
|
||||
void QueryAccessorDomainsStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["Domain"].isNull())
|
||||
dataObject.domain = valueDataDataItem["Domain"].asString();
|
||||
if(!valueDataDataItem["Status"].isNull())
|
||||
dataObject.status = valueDataDataItem["Status"].asString();
|
||||
if(!valueDataDataItem["ReasonCode"].isNull())
|
||||
dataObject.reasonCode = std::stoi(valueDataDataItem["ReasonCode"].asString());
|
||||
if(!valueDataDataItem["Reason"].isNull())
|
||||
dataObject.reason = valueDataDataItem["Reason"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryAccessorDomainsStatusResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<QueryAccessorDomainsStatusResult::DataItem> QueryAccessorDomainsStatusResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int QueryAccessorDomainsStatusResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
45
beian/src/model/QueryAccessorIpRequest.cc
Normal file
45
beian/src/model/QueryAccessorIpRequest.cc
Normal file
@@ -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/beian/model/QueryAccessorIpRequest.h>
|
||||
|
||||
using AlibabaCloud::Beian::Model::QueryAccessorIpRequest;
|
||||
|
||||
QueryAccessorIpRequest::QueryAccessorIpRequest()
|
||||
: RpcServiceRequest("beian", "2016-08-10", "QueryAccessorIp") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryAccessorIpRequest::~QueryAccessorIpRequest() {}
|
||||
|
||||
std::string QueryAccessorIpRequest::getIp() const {
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void QueryAccessorIpRequest::setIp(const std::string &ip) {
|
||||
ip_ = ip;
|
||||
setParameter(std::string("Ip"), ip);
|
||||
}
|
||||
|
||||
std::string QueryAccessorIpRequest::getCaller() const {
|
||||
return caller_;
|
||||
}
|
||||
|
||||
void QueryAccessorIpRequest::setCaller(const std::string &caller) {
|
||||
caller_ = caller;
|
||||
setParameter(std::string("Caller"), caller);
|
||||
}
|
||||
|
||||
65
beian/src/model/QueryAccessorIpResult.cc
Normal file
65
beian/src/model/QueryAccessorIpResult.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/beian/model/QueryAccessorIpResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Beian;
|
||||
using namespace AlibabaCloud::Beian::Model;
|
||||
|
||||
QueryAccessorIpResult::QueryAccessorIpResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryAccessorIpResult::QueryAccessorIpResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryAccessorIpResult::~QueryAccessorIpResult()
|
||||
{}
|
||||
|
||||
void QueryAccessorIpResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string QueryAccessorIpResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool QueryAccessorIpResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryAccessorIpResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
44
beian/src/model/SubmitAccessorFullDomainsOssListRequest.cc
Normal file
44
beian/src/model/SubmitAccessorFullDomainsOssListRequest.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/beian/model/SubmitAccessorFullDomainsOssListRequest.h>
|
||||
|
||||
using AlibabaCloud::Beian::Model::SubmitAccessorFullDomainsOssListRequest;
|
||||
|
||||
SubmitAccessorFullDomainsOssListRequest::SubmitAccessorFullDomainsOssListRequest()
|
||||
: RpcServiceRequest("beian", "2016-08-10", "SubmitAccessorFullDomainsOssList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SubmitAccessorFullDomainsOssListRequest::~SubmitAccessorFullDomainsOssListRequest() {}
|
||||
|
||||
std::string SubmitAccessorFullDomainsOssListRequest::getCaller() const {
|
||||
return caller_;
|
||||
}
|
||||
|
||||
void SubmitAccessorFullDomainsOssListRequest::setCaller(const std::string &caller) {
|
||||
caller_ = caller;
|
||||
setParameter(std::string("Caller"), caller);
|
||||
}
|
||||
|
||||
std::vector<std::string> SubmitAccessorFullDomainsOssListRequest::getOssList() const {
|
||||
return ossList_;
|
||||
}
|
||||
|
||||
void SubmitAccessorFullDomainsOssListRequest::setOssList(const std::vector<std::string> &ossList) {
|
||||
ossList_ = ossList;
|
||||
}
|
||||
|
||||
58
beian/src/model/SubmitAccessorFullDomainsOssListResult.cc
Normal file
58
beian/src/model/SubmitAccessorFullDomainsOssListResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/beian/model/SubmitAccessorFullDomainsOssListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Beian;
|
||||
using namespace AlibabaCloud::Beian::Model;
|
||||
|
||||
SubmitAccessorFullDomainsOssListResult::SubmitAccessorFullDomainsOssListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SubmitAccessorFullDomainsOssListResult::SubmitAccessorFullDomainsOssListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SubmitAccessorFullDomainsOssListResult::~SubmitAccessorFullDomainsOssListResult()
|
||||
{}
|
||||
|
||||
void SubmitAccessorFullDomainsOssListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SubmitAccessorFullDomainsOssListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int SubmitAccessorFullDomainsOssListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -73,6 +73,8 @@ set(cams_public_header_model
|
||||
include/alibabacloud/cams/model/GetChatappVerifyCodeResult.h
|
||||
include/alibabacloud/cams/model/GetCommerceSettingRequest.h
|
||||
include/alibabacloud/cams/model/GetCommerceSettingResult.h
|
||||
include/alibabacloud/cams/model/GetConversationalAutomationRequest.h
|
||||
include/alibabacloud/cams/model/GetConversationalAutomationResult.h
|
||||
include/alibabacloud/cams/model/GetFlowRequest.h
|
||||
include/alibabacloud/cams/model/GetFlowResult.h
|
||||
include/alibabacloud/cams/model/GetFlowJSONAssestRequest.h
|
||||
@@ -91,6 +93,8 @@ set(cams_public_header_model
|
||||
include/alibabacloud/cams/model/GetPreValidatePhoneIdResult.h
|
||||
include/alibabacloud/cams/model/GetWhatsappConnectionCatalogRequest.h
|
||||
include/alibabacloud/cams/model/GetWhatsappConnectionCatalogResult.h
|
||||
include/alibabacloud/cams/model/GetWhatsappHealthStatusRequest.h
|
||||
include/alibabacloud/cams/model/GetWhatsappHealthStatusResult.h
|
||||
include/alibabacloud/cams/model/IsvGetAppIdRequest.h
|
||||
include/alibabacloud/cams/model/IsvGetAppIdResult.h
|
||||
include/alibabacloud/cams/model/ListChatappTemplateRequest.h
|
||||
@@ -129,6 +133,8 @@ set(cams_public_header_model
|
||||
include/alibabacloud/cams/model/UpdateAccountWebhookResult.h
|
||||
include/alibabacloud/cams/model/UpdateCommerceSettingRequest.h
|
||||
include/alibabacloud/cams/model/UpdateCommerceSettingResult.h
|
||||
include/alibabacloud/cams/model/UpdateConversationalAutomationRequest.h
|
||||
include/alibabacloud/cams/model/UpdateConversationalAutomationResult.h
|
||||
include/alibabacloud/cams/model/UpdateFlowJSONAssetRequest.h
|
||||
include/alibabacloud/cams/model/UpdateFlowJSONAssetResult.h
|
||||
include/alibabacloud/cams/model/UpdatePhoneEncryptionPublicKeyRequest.h
|
||||
@@ -192,6 +198,8 @@ set(cams_src
|
||||
src/model/GetChatappVerifyCodeResult.cc
|
||||
src/model/GetCommerceSettingRequest.cc
|
||||
src/model/GetCommerceSettingResult.cc
|
||||
src/model/GetConversationalAutomationRequest.cc
|
||||
src/model/GetConversationalAutomationResult.cc
|
||||
src/model/GetFlowRequest.cc
|
||||
src/model/GetFlowResult.cc
|
||||
src/model/GetFlowJSONAssestRequest.cc
|
||||
@@ -210,6 +218,8 @@ set(cams_src
|
||||
src/model/GetPreValidatePhoneIdResult.cc
|
||||
src/model/GetWhatsappConnectionCatalogRequest.cc
|
||||
src/model/GetWhatsappConnectionCatalogResult.cc
|
||||
src/model/GetWhatsappHealthStatusRequest.cc
|
||||
src/model/GetWhatsappHealthStatusResult.cc
|
||||
src/model/IsvGetAppIdRequest.cc
|
||||
src/model/IsvGetAppIdResult.cc
|
||||
src/model/ListChatappTemplateRequest.cc
|
||||
@@ -248,6 +258,8 @@ set(cams_src
|
||||
src/model/UpdateAccountWebhookResult.cc
|
||||
src/model/UpdateCommerceSettingRequest.cc
|
||||
src/model/UpdateCommerceSettingResult.cc
|
||||
src/model/UpdateConversationalAutomationRequest.cc
|
||||
src/model/UpdateConversationalAutomationResult.cc
|
||||
src/model/UpdateFlowJSONAssetRequest.cc
|
||||
src/model/UpdateFlowJSONAssetResult.cc
|
||||
src/model/UpdatePhoneEncryptionPublicKeyRequest.cc
|
||||
|
||||
@@ -74,6 +74,8 @@
|
||||
#include "model/GetChatappVerifyCodeResult.h"
|
||||
#include "model/GetCommerceSettingRequest.h"
|
||||
#include "model/GetCommerceSettingResult.h"
|
||||
#include "model/GetConversationalAutomationRequest.h"
|
||||
#include "model/GetConversationalAutomationResult.h"
|
||||
#include "model/GetFlowRequest.h"
|
||||
#include "model/GetFlowResult.h"
|
||||
#include "model/GetFlowJSONAssestRequest.h"
|
||||
@@ -92,6 +94,8 @@
|
||||
#include "model/GetPreValidatePhoneIdResult.h"
|
||||
#include "model/GetWhatsappConnectionCatalogRequest.h"
|
||||
#include "model/GetWhatsappConnectionCatalogResult.h"
|
||||
#include "model/GetWhatsappHealthStatusRequest.h"
|
||||
#include "model/GetWhatsappHealthStatusResult.h"
|
||||
#include "model/IsvGetAppIdRequest.h"
|
||||
#include "model/IsvGetAppIdResult.h"
|
||||
#include "model/ListChatappTemplateRequest.h"
|
||||
@@ -130,6 +134,8 @@
|
||||
#include "model/UpdateAccountWebhookResult.h"
|
||||
#include "model/UpdateCommerceSettingRequest.h"
|
||||
#include "model/UpdateCommerceSettingResult.h"
|
||||
#include "model/UpdateConversationalAutomationRequest.h"
|
||||
#include "model/UpdateConversationalAutomationResult.h"
|
||||
#include "model/UpdateFlowJSONAssetRequest.h"
|
||||
#include "model/UpdateFlowJSONAssetResult.h"
|
||||
#include "model/UpdatePhoneEncryptionPublicKeyRequest.h"
|
||||
@@ -225,6 +231,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetCommerceSettingResult> GetCommerceSettingOutcome;
|
||||
typedef std::future<GetCommerceSettingOutcome> GetCommerceSettingOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::GetCommerceSettingRequest&, const GetCommerceSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCommerceSettingAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetConversationalAutomationResult> GetConversationalAutomationOutcome;
|
||||
typedef std::future<GetConversationalAutomationOutcome> GetConversationalAutomationOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::GetConversationalAutomationRequest&, const GetConversationalAutomationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetConversationalAutomationAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetFlowResult> GetFlowOutcome;
|
||||
typedef std::future<GetFlowOutcome> GetFlowOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::GetFlowRequest&, const GetFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFlowAsyncHandler;
|
||||
@@ -252,6 +261,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetWhatsappConnectionCatalogResult> GetWhatsappConnectionCatalogOutcome;
|
||||
typedef std::future<GetWhatsappConnectionCatalogOutcome> GetWhatsappConnectionCatalogOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::GetWhatsappConnectionCatalogRequest&, const GetWhatsappConnectionCatalogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetWhatsappConnectionCatalogAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetWhatsappHealthStatusResult> GetWhatsappHealthStatusOutcome;
|
||||
typedef std::future<GetWhatsappHealthStatusOutcome> GetWhatsappHealthStatusOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::GetWhatsappHealthStatusRequest&, const GetWhatsappHealthStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetWhatsappHealthStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::IsvGetAppIdResult> IsvGetAppIdOutcome;
|
||||
typedef std::future<IsvGetAppIdOutcome> IsvGetAppIdOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::IsvGetAppIdRequest&, const IsvGetAppIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> IsvGetAppIdAsyncHandler;
|
||||
@@ -309,6 +321,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateCommerceSettingResult> UpdateCommerceSettingOutcome;
|
||||
typedef std::future<UpdateCommerceSettingOutcome> UpdateCommerceSettingOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::UpdateCommerceSettingRequest&, const UpdateCommerceSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCommerceSettingAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateConversationalAutomationResult> UpdateConversationalAutomationOutcome;
|
||||
typedef std::future<UpdateConversationalAutomationOutcome> UpdateConversationalAutomationOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::UpdateConversationalAutomationRequest&, const UpdateConversationalAutomationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateConversationalAutomationAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateFlowJSONAssetResult> UpdateFlowJSONAssetOutcome;
|
||||
typedef std::future<UpdateFlowJSONAssetOutcome> UpdateFlowJSONAssetOutcomeCallable;
|
||||
typedef std::function<void(const CamsClient*, const Model::UpdateFlowJSONAssetRequest&, const UpdateFlowJSONAssetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateFlowJSONAssetAsyncHandler;
|
||||
@@ -404,6 +419,9 @@ namespace AlibabaCloud
|
||||
GetCommerceSettingOutcome getCommerceSetting(const Model::GetCommerceSettingRequest &request)const;
|
||||
void getCommerceSettingAsync(const Model::GetCommerceSettingRequest& request, const GetCommerceSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetCommerceSettingOutcomeCallable getCommerceSettingCallable(const Model::GetCommerceSettingRequest& request) const;
|
||||
GetConversationalAutomationOutcome getConversationalAutomation(const Model::GetConversationalAutomationRequest &request)const;
|
||||
void getConversationalAutomationAsync(const Model::GetConversationalAutomationRequest& request, const GetConversationalAutomationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetConversationalAutomationOutcomeCallable getConversationalAutomationCallable(const Model::GetConversationalAutomationRequest& request) const;
|
||||
GetFlowOutcome getFlow(const Model::GetFlowRequest &request)const;
|
||||
void getFlowAsync(const Model::GetFlowRequest& request, const GetFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetFlowOutcomeCallable getFlowCallable(const Model::GetFlowRequest& request) const;
|
||||
@@ -431,6 +449,9 @@ namespace AlibabaCloud
|
||||
GetWhatsappConnectionCatalogOutcome getWhatsappConnectionCatalog(const Model::GetWhatsappConnectionCatalogRequest &request)const;
|
||||
void getWhatsappConnectionCatalogAsync(const Model::GetWhatsappConnectionCatalogRequest& request, const GetWhatsappConnectionCatalogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetWhatsappConnectionCatalogOutcomeCallable getWhatsappConnectionCatalogCallable(const Model::GetWhatsappConnectionCatalogRequest& request) const;
|
||||
GetWhatsappHealthStatusOutcome getWhatsappHealthStatus(const Model::GetWhatsappHealthStatusRequest &request)const;
|
||||
void getWhatsappHealthStatusAsync(const Model::GetWhatsappHealthStatusRequest& request, const GetWhatsappHealthStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetWhatsappHealthStatusOutcomeCallable getWhatsappHealthStatusCallable(const Model::GetWhatsappHealthStatusRequest& request) const;
|
||||
IsvGetAppIdOutcome isvGetAppId(const Model::IsvGetAppIdRequest &request)const;
|
||||
void isvGetAppIdAsync(const Model::IsvGetAppIdRequest& request, const IsvGetAppIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
IsvGetAppIdOutcomeCallable isvGetAppIdCallable(const Model::IsvGetAppIdRequest& request) const;
|
||||
@@ -488,6 +509,9 @@ namespace AlibabaCloud
|
||||
UpdateCommerceSettingOutcome updateCommerceSetting(const Model::UpdateCommerceSettingRequest &request)const;
|
||||
void updateCommerceSettingAsync(const Model::UpdateCommerceSettingRequest& request, const UpdateCommerceSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateCommerceSettingOutcomeCallable updateCommerceSettingCallable(const Model::UpdateCommerceSettingRequest& request) const;
|
||||
UpdateConversationalAutomationOutcome updateConversationalAutomation(const Model::UpdateConversationalAutomationRequest &request)const;
|
||||
void updateConversationalAutomationAsync(const Model::UpdateConversationalAutomationRequest& request, const UpdateConversationalAutomationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateConversationalAutomationOutcomeCallable updateConversationalAutomationCallable(const Model::UpdateConversationalAutomationRequest& request) const;
|
||||
UpdateFlowJSONAssetOutcome updateFlowJSONAsset(const Model::UpdateFlowJSONAssetRequest &request)const;
|
||||
void updateFlowJSONAssetAsync(const Model::UpdateFlowJSONAssetRequest& request, const UpdateFlowJSONAssetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateFlowJSONAssetOutcomeCallable updateFlowJSONAssetCallable(const Model::UpdateFlowJSONAssetRequest& request) const;
|
||||
|
||||
@@ -30,28 +30,49 @@ class ALIBABACLOUD_CAMS_EXPORT AddChatappPhoneNumberRequest : public RpcServiceR
|
||||
public:
|
||||
AddChatappPhoneNumberRequest();
|
||||
~AddChatappPhoneNumberRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getPreValidateId() const;
|
||||
void setPreValidateId(const std::string &preValidateId);
|
||||
std::string getVerifiedName() const;
|
||||
void setVerifiedName(const std::string &verifiedName);
|
||||
std::string getPhoneNumber() const;
|
||||
void setPhoneNumber(const std::string &phoneNumber);
|
||||
std::string getApiCode() const;
|
||||
void setApiCode(const std::string &apiCode);
|
||||
std::string getLowcodeTenantId() const;
|
||||
void setLowcodeTenantId(const std::string &lowcodeTenantId);
|
||||
std::string getExtendFunction() const;
|
||||
void setExtendFunction(const std::string &extendFunction);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getLowcodePhysicAppName() const;
|
||||
void setLowcodePhysicAppName(const std::string &lowcodePhysicAppName);
|
||||
std::string getRouteName() const;
|
||||
void setRouteName(const std::string &routeName);
|
||||
std::string getCc() const;
|
||||
void setCc(const std::string &cc);
|
||||
std::string getProdCode() const;
|
||||
void setProdCode(const std::string &prodCode);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getLowcodeLogicAppName() const;
|
||||
void setLowcodeLogicAppName(const std::string &lowcodeLogicAppName);
|
||||
std::string getCustSpaceId() const;
|
||||
void setCustSpaceId(const std::string &custSpaceId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string preValidateId_;
|
||||
std::string verifiedName_;
|
||||
std::string phoneNumber_;
|
||||
std::string apiCode_;
|
||||
std::string lowcodeTenantId_;
|
||||
std::string extendFunction_;
|
||||
std::string accessKeyId_;
|
||||
std::string lowcodePhysicAppName_;
|
||||
std::string routeName_;
|
||||
std::string cc_;
|
||||
std::string prodCode_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string lowcodeLogicAppName_;
|
||||
std::string custSpaceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -40,6 +40,7 @@ namespace AlibabaCloud
|
||||
std::string getAccessDeniedDetail()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -47,6 +48,7 @@ namespace AlibabaCloud
|
||||
std::string accessDeniedDetail_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -30,17 +30,38 @@ class ALIBABACLOUD_CAMS_EXPORT ChatappBindWabaRequest : public RpcServiceRequest
|
||||
public:
|
||||
ChatappBindWabaRequest();
|
||||
~ChatappBindWabaRequest();
|
||||
std::string getProdCode() const;
|
||||
void setProdCode(const std::string &prodCode);
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getLowcodeTenantId() const;
|
||||
void setLowcodeTenantId(const std::string &lowcodeTenantId);
|
||||
std::string getExtendFunction() const;
|
||||
void setExtendFunction(const std::string &extendFunction);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getLowcodePhysicAppName() const;
|
||||
void setLowcodePhysicAppName(const std::string &lowcodePhysicAppName);
|
||||
std::string getRouteName() const;
|
||||
void setRouteName(const std::string &routeName);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getLowcodeLogicAppName() const;
|
||||
void setLowcodeLogicAppName(const std::string &lowcodeLogicAppName);
|
||||
std::string getWabaId() const;
|
||||
void setWabaId(const std::string &wabaId);
|
||||
std::string getApiCode() const;
|
||||
void setApiCode(const std::string &apiCode);
|
||||
|
||||
private:
|
||||
std::string prodCode_;
|
||||
long resourceOwnerId_;
|
||||
std::string lowcodeTenantId_;
|
||||
std::string extendFunction_;
|
||||
std::string accessKeyId_;
|
||||
std::string lowcodePhysicAppName_;
|
||||
std::string routeName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string lowcodeLogicAppName_;
|
||||
std::string wabaId_;
|
||||
std::string apiCode_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cams
|
||||
|
||||
@@ -46,6 +46,7 @@ namespace AlibabaCloud
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -54,6 +55,7 @@ namespace AlibabaCloud
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -30,19 +30,40 @@ class ALIBABACLOUD_CAMS_EXPORT ChatappPhoneNumberRegisterRequest : public RpcSer
|
||||
public:
|
||||
ChatappPhoneNumberRegisterRequest();
|
||||
~ChatappPhoneNumberRegisterRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getPhoneNumber() const;
|
||||
void setPhoneNumber(const std::string &phoneNumber);
|
||||
std::string getApiCode() const;
|
||||
void setApiCode(const std::string &apiCode);
|
||||
std::string getProdCode() const;
|
||||
void setProdCode(const std::string &prodCode);
|
||||
std::string getLowcodeTenantId() const;
|
||||
void setLowcodeTenantId(const std::string &lowcodeTenantId);
|
||||
std::string getExtendFunction() const;
|
||||
void setExtendFunction(const std::string &extendFunction);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getLowcodePhysicAppName() const;
|
||||
void setLowcodePhysicAppName(const std::string &lowcodePhysicAppName);
|
||||
std::string getRouteName() const;
|
||||
void setRouteName(const std::string &routeName);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getLowcodeLogicAppName() const;
|
||||
void setLowcodeLogicAppName(const std::string &lowcodeLogicAppName);
|
||||
std::string getCustSpaceId() const;
|
||||
void setCustSpaceId(const std::string &custSpaceId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string phoneNumber_;
|
||||
std::string apiCode_;
|
||||
std::string prodCode_;
|
||||
std::string lowcodeTenantId_;
|
||||
std::string extendFunction_;
|
||||
std::string accessKeyId_;
|
||||
std::string lowcodePhysicAppName_;
|
||||
std::string routeName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string lowcodeLogicAppName_;
|
||||
std::string custSpaceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user