Compare commits
61 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d2887a4adc | ||
|
|
e7d1a04d88 | ||
|
|
164bc90823 | ||
|
|
bdba38a5ae | ||
|
|
75a566b4d3 | ||
|
|
1e67a571a1 | ||
|
|
fc5b3998fe | ||
|
|
23a2074f17 | ||
|
|
b4df698c3e | ||
|
|
9f1edb0b33 | ||
|
|
5bd1d921f4 | ||
|
|
c0c834e64a | ||
|
|
9b2557bf41 | ||
|
|
1f2e0e0b42 | ||
|
|
0b9b79f37b | ||
|
|
62ea99cdb2 | ||
|
|
54be46c456 | ||
|
|
8d6c81401f | ||
|
|
72138b276a | ||
|
|
53d26e9957 | ||
|
|
7f21cf83b9 | ||
|
|
cf5863b104 | ||
|
|
28503fa2e5 | ||
|
|
a71e6dd1ae | ||
|
|
af9bc95b0b | ||
|
|
4208be77a5 | ||
|
|
338fe94f31 | ||
|
|
fb513278fe | ||
|
|
ec9cd15b58 | ||
|
|
1954195d9c | ||
|
|
ffd0c138d3 | ||
|
|
40a7995d11 | ||
|
|
2ebf998ace | ||
|
|
444397191f | ||
|
|
a09160460b | ||
|
|
cd9e24cdd0 | ||
|
|
6830235852 | ||
|
|
bc2d245597 | ||
|
|
168c4f1cf1 | ||
|
|
948b05b62e | ||
|
|
3e5235c2ca | ||
|
|
6deaa997fb | ||
|
|
dbe02e376e | ||
|
|
0c2f5f41c4 | ||
|
|
1d1099683e | ||
|
|
48362f9159 | ||
|
|
574a5e964d | ||
|
|
04ef9028c2 | ||
|
|
ff5406a429 | ||
|
|
18687c978c | ||
|
|
5416b57b75 | ||
|
|
43d3080407 | ||
|
|
fe745e81c4 | ||
|
|
e05ba433d0 | ||
|
|
19026e1ca1 | ||
|
|
4d0d423351 | ||
|
|
5d774bf4d2 | ||
|
|
5c863a0c43 | ||
|
|
d5a286f460 | ||
|
|
055e9fa24d | ||
|
|
779a64ae99 |
@@ -11,9 +11,9 @@
|
||||
<a href="https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk"><img src="https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk/branch/master/graph/badge.svg" alt="codecov"></a>
|
||||
</p>
|
||||
|
||||
Alibaba Cloud SDK for C++ 让您不用复杂编程即可访问云服务器、负载均衡、云监控等阿里云服务。这里向您介绍如何获取 Alibaba Cloud SDK for C++ 并开始调用。
|
||||
阿里云 V1.0 SDK 即将进入基础安全维护阶段,不再建议使用,建议使用 V2.0 SDK。
|
||||
|
||||
如果您在使用的过程中遇到任何问题,欢迎前往[阿里云SDK问答社区](https://yq.aliyun.com/tags/type_ask-tagid_23350)提问,提问前请阅读[提问引导](https://help.aliyun.com/document_detail/93957.html)。亦可在当前 GitHub [提交 Issues](https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues/new)。
|
||||
如果您在使用的过程中遇到任何问题,可在当前 GitHub [提交 Issues](https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues/new)。
|
||||
|
||||
## 使用诊断
|
||||
|
||||
|
||||
@@ -11,9 +11,7 @@ English | [简体中文](./README-CN.md)
|
||||
<a href="https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk"><img src="https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk/branch/master/graph/badge.svg" alt="codecov"></a>
|
||||
</p>
|
||||
|
||||
Alibaba Cloud SDK for C++ allows you to access Alibaba Cloud services such as Elastic Compute Service (ECS), Server Load Balancer (SLB), and CloudMonitor. You can access Alibaba Cloud services without the need to handle API related tasks, such as signing and constructing your requests.
|
||||
|
||||
This document introduces how to obtain and call this SDK.
|
||||
The Alibaba Cloud V1.0 SDK will soon enter the Basic Security Maintenance phase and is no longer recommended for use. It is suggested to use the V2.0 SDK instead.
|
||||
|
||||
If you have any problem while using Alibaba Cloud SDK for C++, please submit an [issue](https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues/new).
|
||||
|
||||
|
||||
102
aimath/CMakeLists.txt
Normal file
102
aimath/CMakeLists.txt
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.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(aimath_public_header
|
||||
include/alibabacloud/aimath/AIMathClient.h
|
||||
include/alibabacloud/aimath/AIMathExport.h )
|
||||
|
||||
set(aimath_public_header_model
|
||||
include/alibabacloud/aimath/model/GenAnalysisRequest.h
|
||||
include/alibabacloud/aimath/model/GenAnalysisResult.h
|
||||
include/alibabacloud/aimath/model/GenStepRequest.h
|
||||
include/alibabacloud/aimath/model/GenStepResult.h
|
||||
include/alibabacloud/aimath/model/GlobalConfirmRequest.h
|
||||
include/alibabacloud/aimath/model/GlobalConfirmResult.h
|
||||
include/alibabacloud/aimath/model/UpdateAnalysisRequest.h
|
||||
include/alibabacloud/aimath/model/UpdateAnalysisResult.h
|
||||
include/alibabacloud/aimath/model/UpdateStepRequest.h
|
||||
include/alibabacloud/aimath/model/UpdateStepResult.h )
|
||||
|
||||
set(aimath_src
|
||||
src/AIMathClient.cc
|
||||
src/model/GenAnalysisRequest.cc
|
||||
src/model/GenAnalysisResult.cc
|
||||
src/model/GenStepRequest.cc
|
||||
src/model/GenStepResult.cc
|
||||
src/model/GlobalConfirmRequest.cc
|
||||
src/model/GlobalConfirmResult.cc
|
||||
src/model/UpdateAnalysisRequest.cc
|
||||
src/model/UpdateAnalysisResult.cc
|
||||
src/model/UpdateStepRequest.cc
|
||||
src/model/UpdateStepResult.cc )
|
||||
|
||||
add_library(aimath ${LIB_TYPE}
|
||||
${aimath_public_header}
|
||||
${aimath_public_header_model}
|
||||
${aimath_src})
|
||||
|
||||
set_target_properties(aimath
|
||||
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}aimath
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(aimath
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_AIMATH_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(aimath
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(aimath
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(aimath
|
||||
jsoncpp)
|
||||
target_include_directories(aimath
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(aimath
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(aimath
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(aimath
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(aimath
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${aimath_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aimath)
|
||||
install(FILES ${aimath_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aimath/model)
|
||||
install(TARGETS aimath
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
86
aimath/include/alibabacloud/aimath/AIMathClient.h
Normal file
86
aimath/include/alibabacloud/aimath/AIMathClient.h
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_AIMATH_AIMATHCLIENT_H_
|
||||
#define ALIBABACLOUD_AIMATH_AIMATHCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "AIMathExport.h"
|
||||
#include "model/GenAnalysisRequest.h"
|
||||
#include "model/GenAnalysisResult.h"
|
||||
#include "model/GenStepRequest.h"
|
||||
#include "model/GenStepResult.h"
|
||||
#include "model/GlobalConfirmRequest.h"
|
||||
#include "model/GlobalConfirmResult.h"
|
||||
#include "model/UpdateAnalysisRequest.h"
|
||||
#include "model/UpdateAnalysisResult.h"
|
||||
#include "model/UpdateStepRequest.h"
|
||||
#include "model/UpdateStepResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AIMath
|
||||
{
|
||||
class ALIBABACLOUD_AIMATH_EXPORT AIMathClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::GenAnalysisResult> GenAnalysisOutcome;
|
||||
typedef std::future<GenAnalysisOutcome> GenAnalysisOutcomeCallable;
|
||||
typedef std::function<void(const AIMathClient*, const Model::GenAnalysisRequest&, const GenAnalysisOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenAnalysisAsyncHandler;
|
||||
typedef Outcome<Error, Model::GenStepResult> GenStepOutcome;
|
||||
typedef std::future<GenStepOutcome> GenStepOutcomeCallable;
|
||||
typedef std::function<void(const AIMathClient*, const Model::GenStepRequest&, const GenStepOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenStepAsyncHandler;
|
||||
typedef Outcome<Error, Model::GlobalConfirmResult> GlobalConfirmOutcome;
|
||||
typedef std::future<GlobalConfirmOutcome> GlobalConfirmOutcomeCallable;
|
||||
typedef std::function<void(const AIMathClient*, const Model::GlobalConfirmRequest&, const GlobalConfirmOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GlobalConfirmAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateAnalysisResult> UpdateAnalysisOutcome;
|
||||
typedef std::future<UpdateAnalysisOutcome> UpdateAnalysisOutcomeCallable;
|
||||
typedef std::function<void(const AIMathClient*, const Model::UpdateAnalysisRequest&, const UpdateAnalysisOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAnalysisAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateStepResult> UpdateStepOutcome;
|
||||
typedef std::future<UpdateStepOutcome> UpdateStepOutcomeCallable;
|
||||
typedef std::function<void(const AIMathClient*, const Model::UpdateStepRequest&, const UpdateStepOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateStepAsyncHandler;
|
||||
|
||||
AIMathClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
AIMathClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
AIMathClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~AIMathClient();
|
||||
GenAnalysisOutcome genAnalysis(const Model::GenAnalysisRequest &request)const;
|
||||
void genAnalysisAsync(const Model::GenAnalysisRequest& request, const GenAnalysisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GenAnalysisOutcomeCallable genAnalysisCallable(const Model::GenAnalysisRequest& request) const;
|
||||
GenStepOutcome genStep(const Model::GenStepRequest &request)const;
|
||||
void genStepAsync(const Model::GenStepRequest& request, const GenStepAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GenStepOutcomeCallable genStepCallable(const Model::GenStepRequest& request) const;
|
||||
GlobalConfirmOutcome globalConfirm(const Model::GlobalConfirmRequest &request)const;
|
||||
void globalConfirmAsync(const Model::GlobalConfirmRequest& request, const GlobalConfirmAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GlobalConfirmOutcomeCallable globalConfirmCallable(const Model::GlobalConfirmRequest& request) const;
|
||||
UpdateAnalysisOutcome updateAnalysis(const Model::UpdateAnalysisRequest &request)const;
|
||||
void updateAnalysisAsync(const Model::UpdateAnalysisRequest& request, const UpdateAnalysisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateAnalysisOutcomeCallable updateAnalysisCallable(const Model::UpdateAnalysisRequest& request) const;
|
||||
UpdateStepOutcome updateStep(const Model::UpdateStepRequest &request)const;
|
||||
void updateStepAsync(const Model::UpdateStepRequest& request, const UpdateStepAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateStepOutcomeCallable updateStepCallable(const Model::UpdateStepRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_AIMATH_AIMATHCLIENT_H_
|
||||
32
aimath/include/alibabacloud/aimath/AIMathExport.h
Normal file
32
aimath/include/alibabacloud/aimath/AIMathExport.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_AIMATH_AIMATHEXPORT_H_
|
||||
#define ALIBABACLOUD_AIMATH_AIMATHEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_AIMATH_LIBRARY)
|
||||
# define ALIBABACLOUD_AIMATH_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_AIMATH_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_AIMATH_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_AIMATH_AIMATHEXPORT_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_AIMATH_MODEL_GENANALYSISREQUEST_H_
|
||||
#define ALIBABACLOUD_AIMATH_MODEL_GENANALYSISREQUEST_H_
|
||||
|
||||
#include <alibabacloud/aimath/AIMathExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace AIMath {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AIMATH_EXPORT GenAnalysisRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GenAnalysisRequest();
|
||||
~GenAnalysisRequest();
|
||||
std::string getExerciseContent() const;
|
||||
void setExerciseContent(const std::string &exerciseContent);
|
||||
|
||||
private:
|
||||
std::string exerciseContent_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace AIMath
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AIMATH_MODEL_GENANALYSISREQUEST_H_
|
||||
@@ -14,38 +14,44 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBECSIMPORTEDPRODSTATUSBYUSERRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBECSIMPORTEDPRODSTATUSBYUSERRESULT_H_
|
||||
#ifndef ALIBABACLOUD_AIMATH_MODEL_GENANALYSISRESULT_H_
|
||||
#define ALIBABACLOUD_AIMATH_MODEL_GENANALYSISRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloud-siem/Cloud_siemExport.h>
|
||||
#include <alibabacloud/aimath/AIMathExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloud_siem
|
||||
namespace AIMath
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeCsImportedProdStatusByUserResult : public ServiceResult
|
||||
class ALIBABACLOUD_AIMATH_EXPORT GenAnalysisResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeCsImportedProdStatusByUserResult();
|
||||
explicit DescribeCsImportedProdStatusByUserResult(const std::string &payload);
|
||||
~DescribeCsImportedProdStatusByUserResult();
|
||||
bool getData()const;
|
||||
GenAnalysisResult();
|
||||
explicit GenAnalysisResult(const std::string &payload);
|
||||
~GenAnalysisResult();
|
||||
std::string getEventType()const;
|
||||
std::string getErrMsg()const;
|
||||
std::string getContent()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool data_;
|
||||
std::string eventType_;
|
||||
std::string errMsg_;
|
||||
std::string content_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBECSIMPORTEDPRODSTATUSBYUSERRESULT_H_
|
||||
#endif // !ALIBABACLOUD_AIMATH_MODEL_GENANALYSISRESULT_H_
|
||||
42
aimath/include/alibabacloud/aimath/model/GenStepRequest.h
Normal file
42
aimath/include/alibabacloud/aimath/model/GenStepRequest.h
Normal file
@@ -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_AIMATH_MODEL_GENSTEPREQUEST_H_
|
||||
#define ALIBABACLOUD_AIMATH_MODEL_GENSTEPREQUEST_H_
|
||||
|
||||
#include <alibabacloud/aimath/AIMathExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace AIMath {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AIMATH_EXPORT GenStepRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GenStepRequest();
|
||||
~GenStepRequest();
|
||||
std::string getExerciseCode() const;
|
||||
void setExerciseCode(const std::string &exerciseCode);
|
||||
|
||||
private:
|
||||
std::string exerciseCode_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace AIMath
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AIMATH_MODEL_GENSTEPREQUEST_H_
|
||||
57
aimath/include/alibabacloud/aimath/model/GenStepResult.h
Normal file
57
aimath/include/alibabacloud/aimath/model/GenStepResult.h
Normal file
@@ -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_AIMATH_MODEL_GENSTEPRESULT_H_
|
||||
#define ALIBABACLOUD_AIMATH_MODEL_GENSTEPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aimath/AIMathExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AIMath
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AIMATH_EXPORT GenStepResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GenStepResult();
|
||||
explicit GenStepResult(const std::string &payload);
|
||||
~GenStepResult();
|
||||
std::string getEventType()const;
|
||||
std::string getErrMsg()const;
|
||||
std::string getContent()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string eventType_;
|
||||
std::string errMsg_;
|
||||
std::string content_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AIMATH_MODEL_GENSTEPRESULT_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_AIMATH_MODEL_GLOBALCONFIRMREQUEST_H_
|
||||
#define ALIBABACLOUD_AIMATH_MODEL_GLOBALCONFIRMREQUEST_H_
|
||||
|
||||
#include <alibabacloud/aimath/AIMathExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace AIMath {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AIMATH_EXPORT GlobalConfirmRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GlobalConfirmRequest();
|
||||
~GlobalConfirmRequest();
|
||||
std::string getTag() const;
|
||||
void setTag(const std::string &tag);
|
||||
std::string getExerciseCode() const;
|
||||
void setExerciseCode(const std::string &exerciseCode);
|
||||
|
||||
private:
|
||||
std::string tag_;
|
||||
std::string exerciseCode_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace AIMath
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AIMATH_MODEL_GLOBALCONFIRMREQUEST_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_AIMATH_MODEL_GLOBALCONFIRMRESULT_H_
|
||||
#define ALIBABACLOUD_AIMATH_MODEL_GLOBALCONFIRMRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aimath/AIMathExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AIMath
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AIMATH_EXPORT GlobalConfirmResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GlobalConfirmResult();
|
||||
explicit GlobalConfirmResult(const std::string &payload);
|
||||
~GlobalConfirmResult();
|
||||
std::string getErrMsg()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errMsg_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AIMATH_MODEL_GLOBALCONFIRMRESULT_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_AIMATH_MODEL_UPDATEANALYSISREQUEST_H_
|
||||
#define ALIBABACLOUD_AIMATH_MODEL_UPDATEANALYSISREQUEST_H_
|
||||
|
||||
#include <alibabacloud/aimath/AIMathExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace AIMath {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AIMATH_EXPORT UpdateAnalysisRequest : public RpcServiceRequest {
|
||||
public:
|
||||
UpdateAnalysisRequest();
|
||||
~UpdateAnalysisRequest();
|
||||
std::string getContent() const;
|
||||
void setContent(const std::string &content);
|
||||
std::string getContentCode() const;
|
||||
void setContentCode(const std::string &contentCode);
|
||||
std::string getExerciseCode() const;
|
||||
void setExerciseCode(const std::string &exerciseCode);
|
||||
|
||||
private:
|
||||
std::string content_;
|
||||
std::string contentCode_;
|
||||
std::string exerciseCode_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace AIMath
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AIMATH_MODEL_UPDATEANALYSISREQUEST_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_AIMATH_MODEL_UPDATEANALYSISRESULT_H_
|
||||
#define ALIBABACLOUD_AIMATH_MODEL_UPDATEANALYSISRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aimath/AIMathExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AIMath
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AIMATH_EXPORT UpdateAnalysisResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateAnalysisResult();
|
||||
explicit UpdateAnalysisResult(const std::string &payload);
|
||||
~UpdateAnalysisResult();
|
||||
std::string getErrMsg()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errMsg_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AIMATH_MODEL_UPDATEANALYSISRESULT_H_
|
||||
48
aimath/include/alibabacloud/aimath/model/UpdateStepRequest.h
Normal file
48
aimath/include/alibabacloud/aimath/model/UpdateStepRequest.h
Normal file
@@ -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_AIMATH_MODEL_UPDATESTEPREQUEST_H_
|
||||
#define ALIBABACLOUD_AIMATH_MODEL_UPDATESTEPREQUEST_H_
|
||||
|
||||
#include <alibabacloud/aimath/AIMathExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace AIMath {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AIMATH_EXPORT UpdateStepRequest : public RpcServiceRequest {
|
||||
public:
|
||||
UpdateStepRequest();
|
||||
~UpdateStepRequest();
|
||||
std::string getContent() const;
|
||||
void setContent(const std::string &content);
|
||||
std::string getContentCode() const;
|
||||
void setContentCode(const std::string &contentCode);
|
||||
std::string getExerciseCode() const;
|
||||
void setExerciseCode(const std::string &exerciseCode);
|
||||
|
||||
private:
|
||||
std::string content_;
|
||||
std::string contentCode_;
|
||||
std::string exerciseCode_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace AIMath
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AIMATH_MODEL_UPDATESTEPREQUEST_H_
|
||||
55
aimath/include/alibabacloud/aimath/model/UpdateStepResult.h
Normal file
55
aimath/include/alibabacloud/aimath/model/UpdateStepResult.h
Normal file
@@ -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_AIMATH_MODEL_UPDATESTEPRESULT_H_
|
||||
#define ALIBABACLOUD_AIMATH_MODEL_UPDATESTEPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aimath/AIMathExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AIMath
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AIMATH_EXPORT UpdateStepResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateStepResult();
|
||||
explicit UpdateStepResult(const std::string &payload);
|
||||
~UpdateStepResult();
|
||||
std::string getErrMsg()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errMsg_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AIMATH_MODEL_UPDATESTEPRESULT_H_
|
||||
233
aimath/src/AIMathClient.cc
Normal file
233
aimath/src/AIMathClient.cc
Normal file
@@ -0,0 +1,233 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/aimath/AIMathClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::AIMath;
|
||||
using namespace AlibabaCloud::AIMath::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "AIMath";
|
||||
}
|
||||
|
||||
AIMathClient::AIMathClient(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, "");
|
||||
}
|
||||
|
||||
AIMathClient::AIMathClient(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, "");
|
||||
}
|
||||
|
||||
AIMathClient::AIMathClient(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, "");
|
||||
}
|
||||
|
||||
AIMathClient::~AIMathClient()
|
||||
{}
|
||||
|
||||
AIMathClient::GenAnalysisOutcome AIMathClient::genAnalysis(const GenAnalysisRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GenAnalysisOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GenAnalysisOutcome(GenAnalysisResult(outcome.result()));
|
||||
else
|
||||
return GenAnalysisOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AIMathClient::genAnalysisAsync(const GenAnalysisRequest& request, const GenAnalysisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, genAnalysis(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AIMathClient::GenAnalysisOutcomeCallable AIMathClient::genAnalysisCallable(const GenAnalysisRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GenAnalysisOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->genAnalysis(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AIMathClient::GenStepOutcome AIMathClient::genStep(const GenStepRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GenStepOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GenStepOutcome(GenStepResult(outcome.result()));
|
||||
else
|
||||
return GenStepOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AIMathClient::genStepAsync(const GenStepRequest& request, const GenStepAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, genStep(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AIMathClient::GenStepOutcomeCallable AIMathClient::genStepCallable(const GenStepRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GenStepOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->genStep(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AIMathClient::GlobalConfirmOutcome AIMathClient::globalConfirm(const GlobalConfirmRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GlobalConfirmOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GlobalConfirmOutcome(GlobalConfirmResult(outcome.result()));
|
||||
else
|
||||
return GlobalConfirmOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AIMathClient::globalConfirmAsync(const GlobalConfirmRequest& request, const GlobalConfirmAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, globalConfirm(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AIMathClient::GlobalConfirmOutcomeCallable AIMathClient::globalConfirmCallable(const GlobalConfirmRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GlobalConfirmOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->globalConfirm(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AIMathClient::UpdateAnalysisOutcome AIMathClient::updateAnalysis(const UpdateAnalysisRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateAnalysisOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateAnalysisOutcome(UpdateAnalysisResult(outcome.result()));
|
||||
else
|
||||
return UpdateAnalysisOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AIMathClient::updateAnalysisAsync(const UpdateAnalysisRequest& request, const UpdateAnalysisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateAnalysis(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AIMathClient::UpdateAnalysisOutcomeCallable AIMathClient::updateAnalysisCallable(const UpdateAnalysisRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateAnalysisOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateAnalysis(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AIMathClient::UpdateStepOutcome AIMathClient::updateStep(const UpdateStepRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateStepOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateStepOutcome(UpdateStepResult(outcome.result()));
|
||||
else
|
||||
return UpdateStepOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AIMathClient::updateStepAsync(const UpdateStepRequest& request, const UpdateStepAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateStep(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AIMathClient::UpdateStepOutcomeCallable AIMathClient::updateStepCallable(const UpdateStepRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateStepOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateStep(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
@@ -14,23 +14,23 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloud-siem/model/DescribeLogStoreRequest.h>
|
||||
#include <alibabacloud/aimath/model/GenAnalysisRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloud_siem::Model::DescribeLogStoreRequest;
|
||||
using AlibabaCloud::AIMath::Model::GenAnalysisRequest;
|
||||
|
||||
DescribeLogStoreRequest::DescribeLogStoreRequest()
|
||||
: RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeLogStore") {
|
||||
GenAnalysisRequest::GenAnalysisRequest()
|
||||
: RpcServiceRequest("aimath", "2024-11-14", "GenAnalysis") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLogStoreRequest::~DescribeLogStoreRequest() {}
|
||||
GenAnalysisRequest::~GenAnalysisRequest() {}
|
||||
|
||||
std::string DescribeLogStoreRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
std::string GenAnalysisRequest::getExerciseContent() const {
|
||||
return exerciseContent_;
|
||||
}
|
||||
|
||||
void DescribeLogStoreRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
void GenAnalysisRequest::setExerciseContent(const std::string &exerciseContent) {
|
||||
exerciseContent_ = exerciseContent;
|
||||
setBodyParameter(std::string("ExerciseContent"), exerciseContent);
|
||||
}
|
||||
|
||||
72
aimath/src/model/GenAnalysisResult.cc
Normal file
72
aimath/src/model/GenAnalysisResult.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/aimath/model/GenAnalysisResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::AIMath;
|
||||
using namespace AlibabaCloud::AIMath::Model;
|
||||
|
||||
GenAnalysisResult::GenAnalysisResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GenAnalysisResult::GenAnalysisResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GenAnalysisResult::~GenAnalysisResult()
|
||||
{}
|
||||
|
||||
void GenAnalysisResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["EventType"].isNull())
|
||||
eventType_ = value["EventType"].asString();
|
||||
if(!value["Content"].isNull())
|
||||
content_ = value["Content"].asString();
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMsg"].isNull())
|
||||
errMsg_ = value["ErrMsg"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GenAnalysisResult::getEventType()const
|
||||
{
|
||||
return eventType_;
|
||||
}
|
||||
|
||||
std::string GenAnalysisResult::getErrMsg()const
|
||||
{
|
||||
return errMsg_;
|
||||
}
|
||||
|
||||
std::string GenAnalysisResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
std::string GenAnalysisResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
36
aimath/src/model/GenStepRequest.cc
Normal file
36
aimath/src/model/GenStepRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aimath/model/GenStepRequest.h>
|
||||
|
||||
using AlibabaCloud::AIMath::Model::GenStepRequest;
|
||||
|
||||
GenStepRequest::GenStepRequest()
|
||||
: RpcServiceRequest("aimath", "2024-11-14", "GenStep") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GenStepRequest::~GenStepRequest() {}
|
||||
|
||||
std::string GenStepRequest::getExerciseCode() const {
|
||||
return exerciseCode_;
|
||||
}
|
||||
|
||||
void GenStepRequest::setExerciseCode(const std::string &exerciseCode) {
|
||||
exerciseCode_ = exerciseCode;
|
||||
setBodyParameter(std::string("ExerciseCode"), exerciseCode);
|
||||
}
|
||||
|
||||
72
aimath/src/model/GenStepResult.cc
Normal file
72
aimath/src/model/GenStepResult.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/aimath/model/GenStepResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::AIMath;
|
||||
using namespace AlibabaCloud::AIMath::Model;
|
||||
|
||||
GenStepResult::GenStepResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GenStepResult::GenStepResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GenStepResult::~GenStepResult()
|
||||
{}
|
||||
|
||||
void GenStepResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["EventType"].isNull())
|
||||
eventType_ = value["EventType"].asString();
|
||||
if(!value["Content"].isNull())
|
||||
content_ = value["Content"].asString();
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMsg"].isNull())
|
||||
errMsg_ = value["ErrMsg"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GenStepResult::getEventType()const
|
||||
{
|
||||
return eventType_;
|
||||
}
|
||||
|
||||
std::string GenStepResult::getErrMsg()const
|
||||
{
|
||||
return errMsg_;
|
||||
}
|
||||
|
||||
std::string GenStepResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
std::string GenStepResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
45
aimath/src/model/GlobalConfirmRequest.cc
Normal file
45
aimath/src/model/GlobalConfirmRequest.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/aimath/model/GlobalConfirmRequest.h>
|
||||
|
||||
using AlibabaCloud::AIMath::Model::GlobalConfirmRequest;
|
||||
|
||||
GlobalConfirmRequest::GlobalConfirmRequest()
|
||||
: RpcServiceRequest("aimath", "2024-11-14", "GlobalConfirm") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GlobalConfirmRequest::~GlobalConfirmRequest() {}
|
||||
|
||||
std::string GlobalConfirmRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void GlobalConfirmRequest::setTag(const std::string &tag) {
|
||||
tag_ = tag;
|
||||
setBodyParameter(std::string("Tag"), tag);
|
||||
}
|
||||
|
||||
std::string GlobalConfirmRequest::getExerciseCode() const {
|
||||
return exerciseCode_;
|
||||
}
|
||||
|
||||
void GlobalConfirmRequest::setExerciseCode(const std::string &exerciseCode) {
|
||||
exerciseCode_ = exerciseCode;
|
||||
setBodyParameter(std::string("ExerciseCode"), exerciseCode);
|
||||
}
|
||||
|
||||
65
aimath/src/model/GlobalConfirmResult.cc
Normal file
65
aimath/src/model/GlobalConfirmResult.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/aimath/model/GlobalConfirmResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::AIMath;
|
||||
using namespace AlibabaCloud::AIMath::Model;
|
||||
|
||||
GlobalConfirmResult::GlobalConfirmResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GlobalConfirmResult::GlobalConfirmResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GlobalConfirmResult::~GlobalConfirmResult()
|
||||
{}
|
||||
|
||||
void GlobalConfirmResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMsg"].isNull())
|
||||
errMsg_ = value["ErrMsg"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GlobalConfirmResult::getErrMsg()const
|
||||
{
|
||||
return errMsg_;
|
||||
}
|
||||
|
||||
bool GlobalConfirmResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string GlobalConfirmResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
54
aimath/src/model/UpdateAnalysisRequest.cc
Normal file
54
aimath/src/model/UpdateAnalysisRequest.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/aimath/model/UpdateAnalysisRequest.h>
|
||||
|
||||
using AlibabaCloud::AIMath::Model::UpdateAnalysisRequest;
|
||||
|
||||
UpdateAnalysisRequest::UpdateAnalysisRequest()
|
||||
: RpcServiceRequest("aimath", "2024-11-14", "UpdateAnalysis") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateAnalysisRequest::~UpdateAnalysisRequest() {}
|
||||
|
||||
std::string UpdateAnalysisRequest::getContent() const {
|
||||
return content_;
|
||||
}
|
||||
|
||||
void UpdateAnalysisRequest::setContent(const std::string &content) {
|
||||
content_ = content;
|
||||
setBodyParameter(std::string("Content"), content);
|
||||
}
|
||||
|
||||
std::string UpdateAnalysisRequest::getContentCode() const {
|
||||
return contentCode_;
|
||||
}
|
||||
|
||||
void UpdateAnalysisRequest::setContentCode(const std::string &contentCode) {
|
||||
contentCode_ = contentCode;
|
||||
setBodyParameter(std::string("ContentCode"), contentCode);
|
||||
}
|
||||
|
||||
std::string UpdateAnalysisRequest::getExerciseCode() const {
|
||||
return exerciseCode_;
|
||||
}
|
||||
|
||||
void UpdateAnalysisRequest::setExerciseCode(const std::string &exerciseCode) {
|
||||
exerciseCode_ = exerciseCode;
|
||||
setBodyParameter(std::string("ExerciseCode"), exerciseCode);
|
||||
}
|
||||
|
||||
65
aimath/src/model/UpdateAnalysisResult.cc
Normal file
65
aimath/src/model/UpdateAnalysisResult.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/aimath/model/UpdateAnalysisResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::AIMath;
|
||||
using namespace AlibabaCloud::AIMath::Model;
|
||||
|
||||
UpdateAnalysisResult::UpdateAnalysisResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateAnalysisResult::UpdateAnalysisResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateAnalysisResult::~UpdateAnalysisResult()
|
||||
{}
|
||||
|
||||
void UpdateAnalysisResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMsg"].isNull())
|
||||
errMsg_ = value["ErrMsg"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateAnalysisResult::getErrMsg()const
|
||||
{
|
||||
return errMsg_;
|
||||
}
|
||||
|
||||
bool UpdateAnalysisResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string UpdateAnalysisResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
54
aimath/src/model/UpdateStepRequest.cc
Normal file
54
aimath/src/model/UpdateStepRequest.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/aimath/model/UpdateStepRequest.h>
|
||||
|
||||
using AlibabaCloud::AIMath::Model::UpdateStepRequest;
|
||||
|
||||
UpdateStepRequest::UpdateStepRequest()
|
||||
: RpcServiceRequest("aimath", "2024-11-14", "UpdateStep") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateStepRequest::~UpdateStepRequest() {}
|
||||
|
||||
std::string UpdateStepRequest::getContent() const {
|
||||
return content_;
|
||||
}
|
||||
|
||||
void UpdateStepRequest::setContent(const std::string &content) {
|
||||
content_ = content;
|
||||
setBodyParameter(std::string("Content"), content);
|
||||
}
|
||||
|
||||
std::string UpdateStepRequest::getContentCode() const {
|
||||
return contentCode_;
|
||||
}
|
||||
|
||||
void UpdateStepRequest::setContentCode(const std::string &contentCode) {
|
||||
contentCode_ = contentCode;
|
||||
setBodyParameter(std::string("ContentCode"), contentCode);
|
||||
}
|
||||
|
||||
std::string UpdateStepRequest::getExerciseCode() const {
|
||||
return exerciseCode_;
|
||||
}
|
||||
|
||||
void UpdateStepRequest::setExerciseCode(const std::string &exerciseCode) {
|
||||
exerciseCode_ = exerciseCode;
|
||||
setBodyParameter(std::string("ExerciseCode"), exerciseCode);
|
||||
}
|
||||
|
||||
65
aimath/src/model/UpdateStepResult.cc
Normal file
65
aimath/src/model/UpdateStepResult.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/aimath/model/UpdateStepResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::AIMath;
|
||||
using namespace AlibabaCloud::AIMath::Model;
|
||||
|
||||
UpdateStepResult::UpdateStepResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateStepResult::UpdateStepResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateStepResult::~UpdateStepResult()
|
||||
{}
|
||||
|
||||
void UpdateStepResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMsg"].isNull())
|
||||
errMsg_ = value["ErrMsg"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateStepResult::getErrMsg()const
|
||||
{
|
||||
return errMsg_;
|
||||
}
|
||||
|
||||
bool UpdateStepResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string UpdateStepResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
90
aipodcast/CMakeLists.txt
Normal file
90
aipodcast/CMakeLists.txt
Normal file
@@ -0,0 +1,90 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(aipodcast_public_header
|
||||
include/alibabacloud/aipodcast/AIPodcastClient.h
|
||||
include/alibabacloud/aipodcast/AIPodcastExport.h )
|
||||
|
||||
set(aipodcast_public_header_model
|
||||
include/alibabacloud/aipodcast/model/PodcastTaskResultQueryRequest.h
|
||||
include/alibabacloud/aipodcast/model/PodcastTaskResultQueryResult.h
|
||||
include/alibabacloud/aipodcast/model/PodcastTaskSubmitRequest.h
|
||||
include/alibabacloud/aipodcast/model/PodcastTaskSubmitResult.h )
|
||||
|
||||
set(aipodcast_src
|
||||
src/AIPodcastClient.cc
|
||||
src/model/PodcastTaskResultQueryRequest.cc
|
||||
src/model/PodcastTaskResultQueryResult.cc
|
||||
src/model/PodcastTaskSubmitRequest.cc
|
||||
src/model/PodcastTaskSubmitResult.cc )
|
||||
|
||||
add_library(aipodcast ${LIB_TYPE}
|
||||
${aipodcast_public_header}
|
||||
${aipodcast_public_header_model}
|
||||
${aipodcast_src})
|
||||
|
||||
set_target_properties(aipodcast
|
||||
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}aipodcast
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(aipodcast
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_AIPODCAST_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(aipodcast
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(aipodcast
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(aipodcast
|
||||
jsoncpp)
|
||||
target_include_directories(aipodcast
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(aipodcast
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(aipodcast
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(aipodcast
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(aipodcast
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${aipodcast_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aipodcast)
|
||||
install(FILES ${aipodcast_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aipodcast/model)
|
||||
install(TARGETS aipodcast
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
62
aipodcast/include/alibabacloud/aipodcast/AIPodcastClient.h
Normal file
62
aipodcast/include/alibabacloud/aipodcast/AIPodcastClient.h
Normal file
@@ -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_AIPODCAST_AIPODCASTCLIENT_H_
|
||||
#define ALIBABACLOUD_AIPODCAST_AIPODCASTCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RoaServiceClient.h>
|
||||
#include "AIPodcastExport.h"
|
||||
#include "model/PodcastTaskResultQueryRequest.h"
|
||||
#include "model/PodcastTaskResultQueryResult.h"
|
||||
#include "model/PodcastTaskSubmitRequest.h"
|
||||
#include "model/PodcastTaskSubmitResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AIPodcast
|
||||
{
|
||||
class ALIBABACLOUD_AIPODCAST_EXPORT AIPodcastClient : public RoaServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::PodcastTaskResultQueryResult> PodcastTaskResultQueryOutcome;
|
||||
typedef std::future<PodcastTaskResultQueryOutcome> PodcastTaskResultQueryOutcomeCallable;
|
||||
typedef std::function<void(const AIPodcastClient*, const Model::PodcastTaskResultQueryRequest&, const PodcastTaskResultQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PodcastTaskResultQueryAsyncHandler;
|
||||
typedef Outcome<Error, Model::PodcastTaskSubmitResult> PodcastTaskSubmitOutcome;
|
||||
typedef std::future<PodcastTaskSubmitOutcome> PodcastTaskSubmitOutcomeCallable;
|
||||
typedef std::function<void(const AIPodcastClient*, const Model::PodcastTaskSubmitRequest&, const PodcastTaskSubmitOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PodcastTaskSubmitAsyncHandler;
|
||||
|
||||
AIPodcastClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
AIPodcastClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
AIPodcastClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~AIPodcastClient();
|
||||
PodcastTaskResultQueryOutcome podcastTaskResultQuery(const Model::PodcastTaskResultQueryRequest &request)const;
|
||||
void podcastTaskResultQueryAsync(const Model::PodcastTaskResultQueryRequest& request, const PodcastTaskResultQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PodcastTaskResultQueryOutcomeCallable podcastTaskResultQueryCallable(const Model::PodcastTaskResultQueryRequest& request) const;
|
||||
PodcastTaskSubmitOutcome podcastTaskSubmit(const Model::PodcastTaskSubmitRequest &request)const;
|
||||
void podcastTaskSubmitAsync(const Model::PodcastTaskSubmitRequest& request, const PodcastTaskSubmitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PodcastTaskSubmitOutcomeCallable podcastTaskSubmitCallable(const Model::PodcastTaskSubmitRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_AIPODCAST_AIPODCASTCLIENT_H_
|
||||
32
aipodcast/include/alibabacloud/aipodcast/AIPodcastExport.h
Normal file
32
aipodcast/include/alibabacloud/aipodcast/AIPodcastExport.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_AIPODCAST_AIPODCASTEXPORT_H_
|
||||
#define ALIBABACLOUD_AIPODCAST_AIPODCASTEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_AIPODCAST_LIBRARY)
|
||||
# define ALIBABACLOUD_AIPODCAST_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_AIPODCAST_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_AIPODCAST_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_AIPODCAST_AIPODCASTEXPORT_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_AIPODCAST_MODEL_PODCASTTASKRESULTQUERYREQUEST_H_
|
||||
#define ALIBABACLOUD_AIPODCAST_MODEL_PODCASTTASKRESULTQUERYREQUEST_H_
|
||||
|
||||
#include <alibabacloud/aipodcast/AIPodcastExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace AIPodcast {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AIPODCAST_EXPORT PodcastTaskResultQueryRequest : public RoaServiceRequest {
|
||||
public:
|
||||
PodcastTaskResultQueryRequest();
|
||||
~PodcastTaskResultQueryRequest();
|
||||
std::string getAppId() const;
|
||||
void setAppId(const std::string &appId);
|
||||
std::string getTaskId() const;
|
||||
void setTaskId(const std::string &taskId);
|
||||
std::string getWorkspaceId() const;
|
||||
void setWorkspaceId(const std::string &workspaceId);
|
||||
|
||||
private:
|
||||
std::string appId_;
|
||||
std::string taskId_;
|
||||
std::string workspaceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace AIPodcast
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AIPODCAST_MODEL_PODCASTTASKRESULTQUERYREQUEST_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_AIPODCAST_MODEL_PODCASTTASKRESULTQUERYRESULT_H_
|
||||
#define ALIBABACLOUD_AIPODCAST_MODEL_PODCASTTASKRESULTQUERYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aipodcast/AIPodcastExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AIPodcast
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AIPODCAST_EXPORT PodcastTaskResultQueryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
PodcastTaskResultQueryResult();
|
||||
explicit PodcastTaskResultQueryResult(const std::string &payload);
|
||||
~PodcastTaskResultQueryResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AIPODCAST_MODEL_PODCASTTASKRESULTQUERYRESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_AIPODCAST_MODEL_PODCASTTASKSUBMITREQUEST_H_
|
||||
#define ALIBABACLOUD_AIPODCAST_MODEL_PODCASTTASKSUBMITREQUEST_H_
|
||||
|
||||
#include <alibabacloud/aipodcast/AIPodcastExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace AIPodcast {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AIPODCAST_EXPORT PodcastTaskSubmitRequest : public RoaServiceRequest {
|
||||
public:
|
||||
PodcastTaskSubmitRequest();
|
||||
~PodcastTaskSubmitRequest();
|
||||
std::string getAtmosphere() const;
|
||||
void setAtmosphere(const std::string &atmosphere);
|
||||
std::string getSourceLang() const;
|
||||
void setSourceLang(const std::string &sourceLang);
|
||||
int getCounts() const;
|
||||
void setCounts(int counts);
|
||||
std::vector<std::string> getFileUrls() const;
|
||||
void setFileUrls(const std::vector<std::string> &fileUrls);
|
||||
std::string getText() const;
|
||||
void setText(const std::string &text);
|
||||
std::vector<std::string> getVoices() const;
|
||||
void setVoices(const std::vector<std::string> &voices);
|
||||
std::string getAppId() const;
|
||||
void setAppId(const std::string &appId);
|
||||
std::string getTopic() const;
|
||||
void setTopic(const std::string &topic);
|
||||
std::string getStyle() const;
|
||||
void setStyle(const std::string &style);
|
||||
std::string getWorkspaceId() const;
|
||||
void setWorkspaceId(const std::string &workspaceId);
|
||||
|
||||
private:
|
||||
std::string atmosphere_;
|
||||
std::string sourceLang_;
|
||||
int counts_;
|
||||
std::vector<std::string> fileUrls_;
|
||||
std::string text_;
|
||||
std::vector<std::string> voices_;
|
||||
std::string appId_;
|
||||
std::string topic_;
|
||||
std::string style_;
|
||||
std::string workspaceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace AIPodcast
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AIPODCAST_MODEL_PODCASTTASKSUBMITREQUEST_H_
|
||||
@@ -14,55 +14,53 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDSTATISTICSRESULT_H_
|
||||
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDSTATISTICSRESULT_H_
|
||||
#ifndef ALIBABACLOUD_AIPODCAST_MODEL_PODCASTTASKSUBMITRESULT_H_
|
||||
#define ALIBABACLOUD_AIPODCAST_MODEL_PODCASTTASKSUBMITRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
|
||||
#include <alibabacloud/aipodcast/AIPodcastExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dysmsapi
|
||||
namespace AIPodcast
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySendStatisticsResult : public ServiceResult
|
||||
class ALIBABACLOUD_AIPODCAST_EXPORT PodcastTaskSubmitResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct SmsStatisticsDTO
|
||||
{
|
||||
long totalCount;
|
||||
long noRespondedCount;
|
||||
std::string sendDate;
|
||||
long respondedFailCount;
|
||||
long respondedSuccessCount;
|
||||
};
|
||||
std::vector<SmsStatisticsDTO> targetList;
|
||||
long totalSize;
|
||||
std::string taskId;
|
||||
std::string taskStatus;
|
||||
};
|
||||
|
||||
|
||||
QuerySendStatisticsResult();
|
||||
explicit QuerySendStatisticsResult(const std::string &payload);
|
||||
~QuerySendStatisticsResult();
|
||||
PodcastTaskSubmitResult();
|
||||
explicit PodcastTaskSubmitResult(const std::string &payload);
|
||||
~PodcastTaskSubmitResult();
|
||||
std::string getMessage()const;
|
||||
std::string getRequestId()const;
|
||||
std::string getHttpStatusCode()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string requestId_;
|
||||
std::string httpStatusCode_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSENDSTATISTICSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_AIPODCAST_MODEL_PODCASTTASKSUBMITRESULT_H_
|
||||
125
aipodcast/src/AIPodcastClient.cc
Normal file
125
aipodcast/src/AIPodcastClient.cc
Normal file
@@ -0,0 +1,125 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/aipodcast/AIPodcastClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::AIPodcast;
|
||||
using namespace AlibabaCloud::AIPodcast::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "AIPodcast";
|
||||
}
|
||||
|
||||
AIPodcastClient::AIPodcastClient(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, "");
|
||||
}
|
||||
|
||||
AIPodcastClient::AIPodcastClient(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, "");
|
||||
}
|
||||
|
||||
AIPodcastClient::AIPodcastClient(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, "");
|
||||
}
|
||||
|
||||
AIPodcastClient::~AIPodcastClient()
|
||||
{}
|
||||
|
||||
AIPodcastClient::PodcastTaskResultQueryOutcome AIPodcastClient::podcastTaskResultQuery(const PodcastTaskResultQueryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PodcastTaskResultQueryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PodcastTaskResultQueryOutcome(PodcastTaskResultQueryResult(outcome.result()));
|
||||
else
|
||||
return PodcastTaskResultQueryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AIPodcastClient::podcastTaskResultQueryAsync(const PodcastTaskResultQueryRequest& request, const PodcastTaskResultQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, podcastTaskResultQuery(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AIPodcastClient::PodcastTaskResultQueryOutcomeCallable AIPodcastClient::podcastTaskResultQueryCallable(const PodcastTaskResultQueryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PodcastTaskResultQueryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->podcastTaskResultQuery(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AIPodcastClient::PodcastTaskSubmitOutcome AIPodcastClient::podcastTaskSubmit(const PodcastTaskSubmitRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PodcastTaskSubmitOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PodcastTaskSubmitOutcome(PodcastTaskSubmitResult(outcome.result()));
|
||||
else
|
||||
return PodcastTaskSubmitOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AIPodcastClient::podcastTaskSubmitAsync(const PodcastTaskSubmitRequest& request, const PodcastTaskSubmitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, podcastTaskSubmit(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AIPodcastClient::PodcastTaskSubmitOutcomeCallable AIPodcastClient::podcastTaskSubmitCallable(const PodcastTaskSubmitRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PodcastTaskSubmitOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->podcastTaskSubmit(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
55
aipodcast/src/model/PodcastTaskResultQueryRequest.cc
Normal file
55
aipodcast/src/model/PodcastTaskResultQueryRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aipodcast/model/PodcastTaskResultQueryRequest.h>
|
||||
|
||||
using AlibabaCloud::AIPodcast::Model::PodcastTaskResultQueryRequest;
|
||||
|
||||
PodcastTaskResultQueryRequest::PodcastTaskResultQueryRequest()
|
||||
: RoaServiceRequest("aipodcast", "2025-02-28") {
|
||||
setResourcePath("/podcast/task"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
PodcastTaskResultQueryRequest::~PodcastTaskResultQueryRequest() {}
|
||||
|
||||
std::string PodcastTaskResultQueryRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void PodcastTaskResultQueryRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setBodyParameter(std::string("appId"), appId);
|
||||
}
|
||||
|
||||
std::string PodcastTaskResultQueryRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void PodcastTaskResultQueryRequest::setTaskId(const std::string &taskId) {
|
||||
taskId_ = taskId;
|
||||
setBodyParameter(std::string("taskId"), taskId);
|
||||
}
|
||||
|
||||
std::string PodcastTaskResultQueryRequest::getWorkspaceId() const {
|
||||
return workspaceId_;
|
||||
}
|
||||
|
||||
void PodcastTaskResultQueryRequest::setWorkspaceId(const std::string &workspaceId) {
|
||||
workspaceId_ = workspaceId;
|
||||
setBodyParameter(std::string("workspaceId"), workspaceId);
|
||||
}
|
||||
|
||||
44
aipodcast/src/model/PodcastTaskResultQueryResult.cc
Normal file
44
aipodcast/src/model/PodcastTaskResultQueryResult.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/aipodcast/model/PodcastTaskResultQueryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::AIPodcast;
|
||||
using namespace AlibabaCloud::AIPodcast::Model;
|
||||
|
||||
PodcastTaskResultQueryResult::PodcastTaskResultQueryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PodcastTaskResultQueryResult::PodcastTaskResultQueryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PodcastTaskResultQueryResult::~PodcastTaskResultQueryResult()
|
||||
{}
|
||||
|
||||
void PodcastTaskResultQueryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
122
aipodcast/src/model/PodcastTaskSubmitRequest.cc
Normal file
122
aipodcast/src/model/PodcastTaskSubmitRequest.cc
Normal file
@@ -0,0 +1,122 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/aipodcast/model/PodcastTaskSubmitRequest.h>
|
||||
|
||||
using AlibabaCloud::AIPodcast::Model::PodcastTaskSubmitRequest;
|
||||
|
||||
PodcastTaskSubmitRequest::PodcastTaskSubmitRequest()
|
||||
: RoaServiceRequest("aipodcast", "2025-02-28") {
|
||||
setResourcePath("/podcast/task/submit"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
PodcastTaskSubmitRequest::~PodcastTaskSubmitRequest() {}
|
||||
|
||||
std::string PodcastTaskSubmitRequest::getAtmosphere() const {
|
||||
return atmosphere_;
|
||||
}
|
||||
|
||||
void PodcastTaskSubmitRequest::setAtmosphere(const std::string &atmosphere) {
|
||||
atmosphere_ = atmosphere;
|
||||
setBodyParameter(std::string("atmosphere"), atmosphere);
|
||||
}
|
||||
|
||||
std::string PodcastTaskSubmitRequest::getSourceLang() const {
|
||||
return sourceLang_;
|
||||
}
|
||||
|
||||
void PodcastTaskSubmitRequest::setSourceLang(const std::string &sourceLang) {
|
||||
sourceLang_ = sourceLang;
|
||||
setBodyParameter(std::string("sourceLang"), sourceLang);
|
||||
}
|
||||
|
||||
int PodcastTaskSubmitRequest::getCounts() const {
|
||||
return counts_;
|
||||
}
|
||||
|
||||
void PodcastTaskSubmitRequest::setCounts(int counts) {
|
||||
counts_ = counts;
|
||||
setBodyParameter(std::string("counts"), std::to_string(counts));
|
||||
}
|
||||
|
||||
std::vector<PodcastTaskSubmitRequest::std::string> PodcastTaskSubmitRequest::getFileUrls() const {
|
||||
return fileUrls_;
|
||||
}
|
||||
|
||||
void PodcastTaskSubmitRequest::setFileUrls(const std::vector<PodcastTaskSubmitRequest::std::string> &fileUrls) {
|
||||
fileUrls_ = fileUrls;
|
||||
for(int dep1 = 0; dep1 != fileUrls.size(); dep1++) {
|
||||
setBodyParameter(std::string("fileUrls") + "." + std::to_string(dep1 + 1), fileUrls[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string PodcastTaskSubmitRequest::getText() const {
|
||||
return text_;
|
||||
}
|
||||
|
||||
void PodcastTaskSubmitRequest::setText(const std::string &text) {
|
||||
text_ = text;
|
||||
setBodyParameter(std::string("text"), text);
|
||||
}
|
||||
|
||||
std::vector<PodcastTaskSubmitRequest::std::string> PodcastTaskSubmitRequest::getVoices() const {
|
||||
return voices_;
|
||||
}
|
||||
|
||||
void PodcastTaskSubmitRequest::setVoices(const std::vector<PodcastTaskSubmitRequest::std::string> &voices) {
|
||||
voices_ = voices;
|
||||
for(int dep1 = 0; dep1 != voices.size(); dep1++) {
|
||||
setBodyParameter(std::string("voices") + "." + std::to_string(dep1 + 1), voices[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string PodcastTaskSubmitRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void PodcastTaskSubmitRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setBodyParameter(std::string("appId"), appId);
|
||||
}
|
||||
|
||||
std::string PodcastTaskSubmitRequest::getTopic() const {
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void PodcastTaskSubmitRequest::setTopic(const std::string &topic) {
|
||||
topic_ = topic;
|
||||
setBodyParameter(std::string("topic"), topic);
|
||||
}
|
||||
|
||||
std::string PodcastTaskSubmitRequest::getStyle() const {
|
||||
return style_;
|
||||
}
|
||||
|
||||
void PodcastTaskSubmitRequest::setStyle(const std::string &style) {
|
||||
style_ = style;
|
||||
setBodyParameter(std::string("style"), style);
|
||||
}
|
||||
|
||||
std::string PodcastTaskSubmitRequest::getWorkspaceId() const {
|
||||
return workspaceId_;
|
||||
}
|
||||
|
||||
void PodcastTaskSubmitRequest::setWorkspaceId(const std::string &workspaceId) {
|
||||
workspaceId_ = workspaceId;
|
||||
setBodyParameter(std::string("workspaceId"), workspaceId);
|
||||
}
|
||||
|
||||
89
aipodcast/src/model/PodcastTaskSubmitResult.cc
Normal file
89
aipodcast/src/model/PodcastTaskSubmitResult.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/aipodcast/model/PodcastTaskSubmitResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::AIPodcast;
|
||||
using namespace AlibabaCloud::AIPodcast::Model;
|
||||
|
||||
PodcastTaskSubmitResult::PodcastTaskSubmitResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PodcastTaskSubmitResult::PodcastTaskSubmitResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PodcastTaskSubmitResult::~PodcastTaskSubmitResult()
|
||||
{}
|
||||
|
||||
void PodcastTaskSubmitResult::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["taskId"].isNull())
|
||||
data_.taskId = dataNode["taskId"].asString();
|
||||
if(!dataNode["taskStatus"].isNull())
|
||||
data_.taskStatus = dataNode["taskStatus"].asString();
|
||||
if(!value["code"].isNull())
|
||||
code_ = value["code"].asString();
|
||||
if(!value["message"].isNull())
|
||||
message_ = value["message"].asString();
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
if(!value["success"].isNull())
|
||||
success_ = value["success"].asString() == "true";
|
||||
if(!value["httpStatusCode"].isNull())
|
||||
httpStatusCode_ = value["httpStatusCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string PodcastTaskSubmitResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string PodcastTaskSubmitResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
std::string PodcastTaskSubmitResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
PodcastTaskSubmitResult::Data PodcastTaskSubmitResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string PodcastTaskSubmitResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool PodcastTaskSubmitResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -55,6 +55,8 @@ public:
|
||||
std::string xForwardedForClientCertSubjectDNAlias;
|
||||
bool xForwardedForClientSourceIpsEnabled;
|
||||
bool xForwardedForClientCertIssuerDNEnabled;
|
||||
bool xForwardedForHostEnabled;
|
||||
std::string xForwardedForProcessingMode;
|
||||
bool xForwardedForClientCertFingerprintEnabled;
|
||||
std::string xForwardedForClientCertIssuerDNAlias;
|
||||
bool xForwardedForProtoEnabled;
|
||||
|
||||
@@ -70,6 +70,8 @@ public:
|
||||
};
|
||||
CreateServerGroupRequest();
|
||||
~CreateServerGroupRequest();
|
||||
bool getCrossZoneEnabled() const;
|
||||
void setCrossZoneEnabled(bool crossZoneEnabled);
|
||||
std::string getServerGroupName() const;
|
||||
void setServerGroupName(const std::string &serverGroupName);
|
||||
std::string getClientToken() const;
|
||||
@@ -106,6 +108,7 @@ public:
|
||||
void setUchConfig(const UchConfig &uchConfig);
|
||||
|
||||
private:
|
||||
bool crossZoneEnabled_;
|
||||
std::string serverGroupName_;
|
||||
std::string clientToken_;
|
||||
HealthCheckConfig healthCheckConfig_;
|
||||
|
||||
@@ -63,6 +63,7 @@ namespace AlibabaCloud
|
||||
bool xForwardedForClientSourceIpsEnabled;
|
||||
std::string xForwardedForClientCertFingerprintAlias;
|
||||
bool xForwardedForClientCertFingerprintEnabled;
|
||||
bool xForwardedForHostEnabled;
|
||||
std::string xForwardedForClientSourceIpsTrusted;
|
||||
std::string xForwardedForClientCertIssuerDNAlias;
|
||||
std::string xForwardedForClientCertClientVerifyAlias;
|
||||
@@ -72,6 +73,7 @@ namespace AlibabaCloud
|
||||
bool xForwardedForProtoEnabled;
|
||||
bool xForwardedForClientSrcPortEnabled;
|
||||
bool xForwardedForEnabled;
|
||||
std::string xForwardedForProcessingMode;
|
||||
bool xForwardedForSLBPortEnabled;
|
||||
bool xForwardedForClientCertIssuerDNEnabled;
|
||||
bool xForwardedForClientCertClientVerifyEnabled;
|
||||
|
||||
@@ -55,6 +55,7 @@ namespace AlibabaCloud
|
||||
bool xForwardedForClientSourceIpsEnabled;
|
||||
std::string xForwardedForClientCertFingerprintAlias;
|
||||
bool xForwardedForClientCertFingerprintEnabled;
|
||||
bool xForwardedForHostEnabled;
|
||||
std::string xForwardedForClientSourceIpsTrusted;
|
||||
std::string xForwardedForClientCertIssuerDNAlias;
|
||||
std::string xForwardedForClientCertClientVerifyAlias;
|
||||
@@ -64,6 +65,7 @@ namespace AlibabaCloud
|
||||
bool xForwardedForProtoEnabled;
|
||||
bool xForwardedForClientSrcPortEnabled;
|
||||
bool xForwardedForEnabled;
|
||||
std::string xForwardedForProcessingMode;
|
||||
bool xForwardedForSLBPortEnabled;
|
||||
bool xForwardedForClientCertIssuerDNEnabled;
|
||||
bool xForwardedForClientCertClientVerifyEnabled;
|
||||
|
||||
@@ -84,6 +84,7 @@ namespace AlibabaCloud
|
||||
std::string scheduler;
|
||||
std::vector<std::string> relatedRuleIds;
|
||||
int serverCount;
|
||||
bool crossZoneEnabled;
|
||||
bool ipv6Enabled;
|
||||
SlowStartConfig slowStartConfig;
|
||||
std::string serviceManagedMode;
|
||||
|
||||
@@ -51,6 +51,8 @@ public:
|
||||
std::string xForwardedForClientCertSubjectDNAlias;
|
||||
bool xForwardedForClientSourceIpsEnabled;
|
||||
bool xForwardedForClientCertIssuerDNEnabled;
|
||||
bool xForwardedForHostEnabled;
|
||||
std::string xForwardedForProcessingMode;
|
||||
bool xForwardedForClientCertFingerprintEnabled;
|
||||
std::string xForwardedForClientCertIssuerDNAlias;
|
||||
bool xForwardedForProtoEnabled;
|
||||
|
||||
@@ -66,6 +66,8 @@ public:
|
||||
};
|
||||
UpdateServerGroupAttributeRequest();
|
||||
~UpdateServerGroupAttributeRequest();
|
||||
bool getCrossZoneEnabled() const;
|
||||
void setCrossZoneEnabled(bool crossZoneEnabled);
|
||||
std::string getServerGroupName() const;
|
||||
void setServerGroupName(const std::string &serverGroupName);
|
||||
std::string getClientToken() const;
|
||||
@@ -92,6 +94,7 @@ public:
|
||||
void setUchConfig(const UchConfig &uchConfig);
|
||||
|
||||
private:
|
||||
bool crossZoneEnabled_;
|
||||
std::string serverGroupName_;
|
||||
std::string clientToken_;
|
||||
HealthCheckConfig healthCheckConfig_;
|
||||
|
||||
@@ -136,6 +136,8 @@ void CreateListenerRequest::setXForwardedForConfig(const CreateListenerRequest::
|
||||
setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertSubjectDNAlias", xForwardedForConfig.xForwardedForClientCertSubjectDNAlias);
|
||||
setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientSourceIpsEnabled", xForwardedForConfig.xForwardedForClientSourceIpsEnabled ? "true" : "false");
|
||||
setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertIssuerDNEnabled", xForwardedForConfig.xForwardedForClientCertIssuerDNEnabled ? "true" : "false");
|
||||
setParameter(std::string("XForwardedForConfig") + ".XForwardedForHostEnabled", xForwardedForConfig.xForwardedForHostEnabled ? "true" : "false");
|
||||
setParameter(std::string("XForwardedForConfig") + ".XForwardedForProcessingMode", xForwardedForConfig.xForwardedForProcessingMode);
|
||||
setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertFingerprintEnabled", xForwardedForConfig.xForwardedForClientCertFingerprintEnabled ? "true" : "false");
|
||||
setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertIssuerDNAlias", xForwardedForConfig.xForwardedForClientCertIssuerDNAlias);
|
||||
setParameter(std::string("XForwardedForConfig") + ".XForwardedForProtoEnabled", xForwardedForConfig.xForwardedForProtoEnabled ? "true" : "false");
|
||||
|
||||
@@ -43,92 +43,92 @@ void CreateRulesRequest::setRules(const std::vector<CreateRulesRequest::Rules> &
|
||||
for(int dep1 = 0; dep1 != rules.size(); dep1++) {
|
||||
for(int dep2 = 0; dep2 != rules[dep1].ruleConditions.size(); dep2++) {
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].methodConfig.values.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".MethodConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].methodConfig.values[dep3]);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".MethodConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].methodConfig.values[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].sourceIpConfig.values.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".SourceIpConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].sourceIpConfig.values[dep3]);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".SourceIpConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].sourceIpConfig.values[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].hostConfig.values.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".HostConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].hostConfig.values[dep3]);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".HostConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].hostConfig.values[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].queryStringConfig.values.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".QueryStringConfig.Values." + std::to_string(dep3 + 1) + ".Value", rules[dep1].ruleConditions[dep2].queryStringConfig.values[dep3].value);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".QueryStringConfig.Values." + std::to_string(dep3 + 1) + ".Key", rules[dep1].ruleConditions[dep2].queryStringConfig.values[dep3].key);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".QueryStringConfig.Values." + std::to_string(dep3 + 1) + ".Value", rules[dep1].ruleConditions[dep2].queryStringConfig.values[dep3].value);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".QueryStringConfig.Values." + std::to_string(dep3 + 1) + ".Key", rules[dep1].ruleConditions[dep2].queryStringConfig.values[dep3].key);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].responseStatusCodeConfig.values.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".ResponseStatusCodeConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].responseStatusCodeConfig.values[dep3]);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".ResponseStatusCodeConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].responseStatusCodeConfig.values[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].pathConfig.values.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".PathConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].pathConfig.values[dep3]);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".PathConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].pathConfig.values[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].cookieConfig.values.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".CookieConfig.Values." + std::to_string(dep3 + 1) + ".Value", rules[dep1].ruleConditions[dep2].cookieConfig.values[dep3].value);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".CookieConfig.Values." + std::to_string(dep3 + 1) + ".Key", rules[dep1].ruleConditions[dep2].cookieConfig.values[dep3].key);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".CookieConfig.Values." + std::to_string(dep3 + 1) + ".Value", rules[dep1].ruleConditions[dep2].cookieConfig.values[dep3].value);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".CookieConfig.Values." + std::to_string(dep3 + 1) + ".Key", rules[dep1].ruleConditions[dep2].cookieConfig.values[dep3].key);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".Type", rules[dep1].ruleConditions[dep2].type);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".Type", rules[dep1].ruleConditions[dep2].type);
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].headerConfig.values.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".HeaderConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].headerConfig.values[dep3]);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".HeaderConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].headerConfig.values[dep3]);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".HeaderConfig.Key", rules[dep1].ruleConditions[dep2].headerConfig.key);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".HeaderConfig.Key", rules[dep1].ruleConditions[dep2].headerConfig.key);
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].responseHeaderConfig.values.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".ResponseHeaderConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].responseHeaderConfig.values[dep3]);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".ResponseHeaderConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].responseHeaderConfig.values[dep3]);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".ResponseHeaderConfig.Key", rules[dep1].ruleConditions[dep2].responseHeaderConfig.key);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".ResponseHeaderConfig.Key", rules[dep1].ruleConditions[dep2].responseHeaderConfig.key);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleName", rules[dep1].ruleName);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleName", rules[dep1].ruleName);
|
||||
for(int dep2 = 0; dep2 != rules[dep1].tag.size(); dep2++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".Tag." + std::to_string(dep2 + 1) + ".Value", rules[dep1].tag[dep2].value);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".Tag." + std::to_string(dep2 + 1) + ".Key", rules[dep1].tag[dep2].key);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".Tag." + std::to_string(dep2 + 1) + ".Value", rules[dep1].tag[dep2].value);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".Tag." + std::to_string(dep2 + 1) + ".Key", rules[dep1].tag[dep2].key);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".Priority", std::to_string(rules[dep1].priority));
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".Priority", std::to_string(rules[dep1].priority));
|
||||
for(int dep2 = 0; dep2 != rules[dep1].ruleActions.size(); dep2++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".FixedResponseConfig.HttpCode", rules[dep1].ruleActions[dep2].fixedResponseConfig.httpCode);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".FixedResponseConfig.Content", rules[dep1].ruleActions[dep2].fixedResponseConfig.content);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".FixedResponseConfig.ContentType", rules[dep1].ruleActions[dep2].fixedResponseConfig.contentType);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".FixedResponseConfig.HttpCode", rules[dep1].ruleActions[dep2].fixedResponseConfig.httpCode);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".FixedResponseConfig.Content", rules[dep1].ruleActions[dep2].fixedResponseConfig.content);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".FixedResponseConfig.ContentType", rules[dep1].ruleActions[dep2].fixedResponseConfig.contentType);
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].trafficMirrorConfig.mirrorGroupConfig.serverGroupTuples.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficMirrorConfig.MirrorGroupConfig.ServerGroupTuples." + std::to_string(dep3 + 1) + ".ServerGroupId", rules[dep1].ruleActions[dep2].trafficMirrorConfig.mirrorGroupConfig.serverGroupTuples[dep3].serverGroupId);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficMirrorConfig.MirrorGroupConfig.ServerGroupTuples." + std::to_string(dep3 + 1) + ".ServerGroupId", rules[dep1].ruleActions[dep2].trafficMirrorConfig.mirrorGroupConfig.serverGroupTuples[dep3].serverGroupId);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficMirrorConfig.TargetType", rules[dep1].ruleActions[dep2].trafficMirrorConfig.targetType);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupStickySession.Enabled", rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupStickySession.enabled ? "true" : "false");
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupStickySession.Timeout", std::to_string(rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupStickySession.timeout));
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficMirrorConfig.TargetType", rules[dep1].ruleActions[dep2].trafficMirrorConfig.targetType);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupStickySession.Enabled", rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupStickySession.enabled ? "true" : "false");
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupStickySession.Timeout", std::to_string(rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupStickySession.timeout));
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupTuples.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupTuples." + std::to_string(dep3 + 1) + ".ServerGroupId", rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupTuples[dep3].serverGroupId);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupTuples." + std::to_string(dep3 + 1) + ".Weight", std::to_string(rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupTuples[dep3].weight));
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupTuples." + std::to_string(dep3 + 1) + ".ServerGroupId", rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupTuples[dep3].serverGroupId);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupTuples." + std::to_string(dep3 + 1) + ".Weight", std::to_string(rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupTuples[dep3].weight));
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RemoveHeaderConfig.Key", rules[dep1].ruleActions[dep2].removeHeaderConfig.key);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.ValueType", rules[dep1].ruleActions[dep2].insertHeaderConfig.valueType);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.CoverEnabled", rules[dep1].ruleActions[dep2].insertHeaderConfig.coverEnabled ? "true" : "false");
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.Value", rules[dep1].ruleActions[dep2].insertHeaderConfig.value);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.Key", rules[dep1].ruleActions[dep2].insertHeaderConfig.key);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficLimitConfig.QPS", std::to_string(rules[dep1].ruleActions[dep2].trafficLimitConfig.qPS));
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficLimitConfig.PerIpQps", std::to_string(rules[dep1].ruleActions[dep2].trafficLimitConfig.perIpQps));
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowCredentials", rules[dep1].ruleActions[dep2].corsConfig.allowCredentials);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RemoveHeaderConfig.Key", rules[dep1].ruleActions[dep2].removeHeaderConfig.key);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.ValueType", rules[dep1].ruleActions[dep2].insertHeaderConfig.valueType);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.CoverEnabled", rules[dep1].ruleActions[dep2].insertHeaderConfig.coverEnabled ? "true" : "false");
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.Value", rules[dep1].ruleActions[dep2].insertHeaderConfig.value);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.Key", rules[dep1].ruleActions[dep2].insertHeaderConfig.key);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficLimitConfig.QPS", std::to_string(rules[dep1].ruleActions[dep2].trafficLimitConfig.qPS));
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficLimitConfig.PerIpQps", std::to_string(rules[dep1].ruleActions[dep2].trafficLimitConfig.perIpQps));
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowCredentials", rules[dep1].ruleActions[dep2].corsConfig.allowCredentials);
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.allowOrigin.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowOrigin." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowOrigin[dep3]);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowOrigin." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowOrigin[dep3]);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.MaxAge", std::to_string(rules[dep1].ruleActions[dep2].corsConfig.maxAge));
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.MaxAge", std::to_string(rules[dep1].ruleActions[dep2].corsConfig.maxAge));
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.allowMethods.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowMethods." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowMethods[dep3]);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowMethods." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowMethods[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.allowHeaders.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowHeaders." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowHeaders[dep3]);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowHeaders." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowHeaders[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.exposeHeaders.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.ExposeHeaders." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.exposeHeaders[dep3]);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.ExposeHeaders." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.exposeHeaders[dep3]);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Path", rules[dep1].ruleActions[dep2].redirectConfig.path);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Protocol", rules[dep1].ruleActions[dep2].redirectConfig.protocol);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Port", rules[dep1].ruleActions[dep2].redirectConfig.port);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Query", rules[dep1].ruleActions[dep2].redirectConfig.query);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Host", rules[dep1].ruleActions[dep2].redirectConfig.host);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.HttpCode", rules[dep1].ruleActions[dep2].redirectConfig.httpCode);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".Type", rules[dep1].ruleActions[dep2].type);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".Order", std::to_string(rules[dep1].ruleActions[dep2].order));
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RewriteConfig.Path", rules[dep1].ruleActions[dep2].rewriteConfig.path);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RewriteConfig.Query", rules[dep1].ruleActions[dep2].rewriteConfig.query);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RewriteConfig.Host", rules[dep1].ruleActions[dep2].rewriteConfig.host);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Path", rules[dep1].ruleActions[dep2].redirectConfig.path);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Protocol", rules[dep1].ruleActions[dep2].redirectConfig.protocol);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Port", rules[dep1].ruleActions[dep2].redirectConfig.port);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Query", rules[dep1].ruleActions[dep2].redirectConfig.query);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Host", rules[dep1].ruleActions[dep2].redirectConfig.host);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.HttpCode", rules[dep1].ruleActions[dep2].redirectConfig.httpCode);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".Type", rules[dep1].ruleActions[dep2].type);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".Order", std::to_string(rules[dep1].ruleActions[dep2].order));
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RewriteConfig.Path", rules[dep1].ruleActions[dep2].rewriteConfig.path);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RewriteConfig.Query", rules[dep1].ruleActions[dep2].rewriteConfig.query);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RewriteConfig.Host", rules[dep1].ruleActions[dep2].rewriteConfig.host);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".Direction", rules[dep1].direction);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".Direction", rules[dep1].direction);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ CreateServerGroupRequest::CreateServerGroupRequest()
|
||||
|
||||
CreateServerGroupRequest::~CreateServerGroupRequest() {}
|
||||
|
||||
bool CreateServerGroupRequest::getCrossZoneEnabled() const {
|
||||
return crossZoneEnabled_;
|
||||
}
|
||||
|
||||
void CreateServerGroupRequest::setCrossZoneEnabled(bool crossZoneEnabled) {
|
||||
crossZoneEnabled_ = crossZoneEnabled;
|
||||
setParameter(std::string("CrossZoneEnabled"), crossZoneEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateServerGroupRequest::getServerGroupName() const {
|
||||
return serverGroupName_;
|
||||
}
|
||||
|
||||
@@ -151,6 +151,8 @@ void GetListenerAttributeResult::parse(const std::string &payload)
|
||||
xForwardedForConfig_.xForwardedForClientSrcPortEnabled = xForwardedForConfigNode["XForwardedForClientSrcPortEnabled"].asString() == "true";
|
||||
if(!xForwardedForConfigNode["XForwardedForEnabled"].isNull())
|
||||
xForwardedForConfig_.xForwardedForEnabled = xForwardedForConfigNode["XForwardedForEnabled"].asString() == "true";
|
||||
if(!xForwardedForConfigNode["XForwardedForProcessingMode"].isNull())
|
||||
xForwardedForConfig_.xForwardedForProcessingMode = xForwardedForConfigNode["XForwardedForProcessingMode"].asString();
|
||||
if(!xForwardedForConfigNode["XForwardedForProtoEnabled"].isNull())
|
||||
xForwardedForConfig_.xForwardedForProtoEnabled = xForwardedForConfigNode["XForwardedForProtoEnabled"].asString() == "true";
|
||||
if(!xForwardedForConfigNode["XForwardedForSLBIdEnabled"].isNull())
|
||||
@@ -161,6 +163,8 @@ void GetListenerAttributeResult::parse(const std::string &payload)
|
||||
xForwardedForConfig_.xForwardedForClientSourceIpsEnabled = xForwardedForConfigNode["XForwardedForClientSourceIpsEnabled"].asString() == "true";
|
||||
if(!xForwardedForConfigNode["XForwardedForClientSourceIpsTrusted"].isNull())
|
||||
xForwardedForConfig_.xForwardedForClientSourceIpsTrusted = xForwardedForConfigNode["XForwardedForClientSourceIpsTrusted"].asString();
|
||||
if(!xForwardedForConfigNode["XForwardedForHostEnabled"].isNull())
|
||||
xForwardedForConfig_.xForwardedForHostEnabled = xForwardedForConfigNode["XForwardedForHostEnabled"].asString() == "true";
|
||||
if(!value["CaEnabled"].isNull())
|
||||
caEnabled_ = value["CaEnabled"].asString() == "true";
|
||||
if(!value["GzipEnabled"].isNull())
|
||||
|
||||
@@ -148,6 +148,8 @@ void ListListenersResult::parse(const std::string &payload)
|
||||
listenersObject.xForwardedForConfig.xForwardedForClientSrcPortEnabled = xForwardedForConfigNode["XForwardedForClientSrcPortEnabled"].asString() == "true";
|
||||
if(!xForwardedForConfigNode["XForwardedForEnabled"].isNull())
|
||||
listenersObject.xForwardedForConfig.xForwardedForEnabled = xForwardedForConfigNode["XForwardedForEnabled"].asString() == "true";
|
||||
if(!xForwardedForConfigNode["XForwardedForProcessingMode"].isNull())
|
||||
listenersObject.xForwardedForConfig.xForwardedForProcessingMode = xForwardedForConfigNode["XForwardedForProcessingMode"].asString();
|
||||
if(!xForwardedForConfigNode["XForwardedForProtoEnabled"].isNull())
|
||||
listenersObject.xForwardedForConfig.xForwardedForProtoEnabled = xForwardedForConfigNode["XForwardedForProtoEnabled"].asString() == "true";
|
||||
if(!xForwardedForConfigNode["XForwardedForSLBIdEnabled"].isNull())
|
||||
@@ -158,6 +160,8 @@ void ListListenersResult::parse(const std::string &payload)
|
||||
listenersObject.xForwardedForConfig.xForwardedForClientSourceIpsEnabled = xForwardedForConfigNode["XForwardedForClientSourceIpsEnabled"].asString() == "true";
|
||||
if(!xForwardedForConfigNode["XForwardedForClientSourceIpsTrusted"].isNull())
|
||||
listenersObject.xForwardedForConfig.xForwardedForClientSourceIpsTrusted = xForwardedForConfigNode["XForwardedForClientSourceIpsTrusted"].asString();
|
||||
if(!xForwardedForConfigNode["XForwardedForHostEnabled"].isNull())
|
||||
listenersObject.xForwardedForConfig.xForwardedForHostEnabled = xForwardedForConfigNode["XForwardedForHostEnabled"].asString() == "true";
|
||||
listeners_.push_back(listenersObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
|
||||
@@ -75,6 +75,8 @@ void ListServerGroupsResult::parse(const std::string &payload)
|
||||
serverGroupsObject.serviceName = valueServerGroupsServerGroup["ServiceName"].asString();
|
||||
if(!valueServerGroupsServerGroup["CreateTime"].isNull())
|
||||
serverGroupsObject.createTime = valueServerGroupsServerGroup["CreateTime"].asString();
|
||||
if(!valueServerGroupsServerGroup["CrossZoneEnabled"].isNull())
|
||||
serverGroupsObject.crossZoneEnabled = valueServerGroupsServerGroup["CrossZoneEnabled"].asString() == "true";
|
||||
auto allTagsNode = valueServerGroupsServerGroup["Tags"]["Tag"];
|
||||
for (auto valueServerGroupsServerGroupTagsTag : allTagsNode)
|
||||
{
|
||||
|
||||
@@ -124,6 +124,8 @@ void UpdateListenerAttributeRequest::setXForwardedForConfig(const UpdateListener
|
||||
setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertSubjectDNAlias", xForwardedForConfig.xForwardedForClientCertSubjectDNAlias);
|
||||
setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientSourceIpsEnabled", xForwardedForConfig.xForwardedForClientSourceIpsEnabled ? "true" : "false");
|
||||
setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertIssuerDNEnabled", xForwardedForConfig.xForwardedForClientCertIssuerDNEnabled ? "true" : "false");
|
||||
setParameter(std::string("XForwardedForConfig") + ".XForwardedForHostEnabled", xForwardedForConfig.xForwardedForHostEnabled ? "true" : "false");
|
||||
setParameter(std::string("XForwardedForConfig") + ".XForwardedForProcessingMode", xForwardedForConfig.xForwardedForProcessingMode);
|
||||
setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertFingerprintEnabled", xForwardedForConfig.xForwardedForClientCertFingerprintEnabled ? "true" : "false");
|
||||
setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertIssuerDNAlias", xForwardedForConfig.xForwardedForClientCertIssuerDNAlias);
|
||||
setParameter(std::string("XForwardedForConfig") + ".XForwardedForProtoEnabled", xForwardedForConfig.xForwardedForProtoEnabled ? "true" : "false");
|
||||
|
||||
@@ -43,87 +43,87 @@ void UpdateRulesAttributeRequest::setRules(const std::vector<UpdateRulesAttribut
|
||||
for(int dep1 = 0; dep1 != rules.size(); dep1++) {
|
||||
for(int dep2 = 0; dep2 != rules[dep1].ruleConditions.size(); dep2++) {
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].methodConfig.values.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".MethodConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].methodConfig.values[dep3]);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".MethodConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].methodConfig.values[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].sourceIpConfig.values.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".SourceIpConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].sourceIpConfig.values[dep3]);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".SourceIpConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].sourceIpConfig.values[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].hostConfig.values.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".HostConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].hostConfig.values[dep3]);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".HostConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].hostConfig.values[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].queryStringConfig.values.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".QueryStringConfig.Values." + std::to_string(dep3 + 1) + ".Value", rules[dep1].ruleConditions[dep2].queryStringConfig.values[dep3].value);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".QueryStringConfig.Values." + std::to_string(dep3 + 1) + ".Key", rules[dep1].ruleConditions[dep2].queryStringConfig.values[dep3].key);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".QueryStringConfig.Values." + std::to_string(dep3 + 1) + ".Value", rules[dep1].ruleConditions[dep2].queryStringConfig.values[dep3].value);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".QueryStringConfig.Values." + std::to_string(dep3 + 1) + ".Key", rules[dep1].ruleConditions[dep2].queryStringConfig.values[dep3].key);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].responseStatusCodeConfig.values.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".ResponseStatusCodeConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].responseStatusCodeConfig.values[dep3]);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".ResponseStatusCodeConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].responseStatusCodeConfig.values[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].pathConfig.values.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".PathConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].pathConfig.values[dep3]);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".PathConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].pathConfig.values[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].cookieConfig.values.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".CookieConfig.Values." + std::to_string(dep3 + 1) + ".Value", rules[dep1].ruleConditions[dep2].cookieConfig.values[dep3].value);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".CookieConfig.Values." + std::to_string(dep3 + 1) + ".Key", rules[dep1].ruleConditions[dep2].cookieConfig.values[dep3].key);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".CookieConfig.Values." + std::to_string(dep3 + 1) + ".Value", rules[dep1].ruleConditions[dep2].cookieConfig.values[dep3].value);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".CookieConfig.Values." + std::to_string(dep3 + 1) + ".Key", rules[dep1].ruleConditions[dep2].cookieConfig.values[dep3].key);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".Type", rules[dep1].ruleConditions[dep2].type);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".Type", rules[dep1].ruleConditions[dep2].type);
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].headerConfig.values.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".HeaderConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].headerConfig.values[dep3]);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".HeaderConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].headerConfig.values[dep3]);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".HeaderConfig.Key", rules[dep1].ruleConditions[dep2].headerConfig.key);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".HeaderConfig.Key", rules[dep1].ruleConditions[dep2].headerConfig.key);
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].responseHeaderConfig.values.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".ResponseHeaderConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].responseHeaderConfig.values[dep3]);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".ResponseHeaderConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].responseHeaderConfig.values[dep3]);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".ResponseHeaderConfig.Key", rules[dep1].ruleConditions[dep2].responseHeaderConfig.key);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".ResponseHeaderConfig.Key", rules[dep1].ruleConditions[dep2].responseHeaderConfig.key);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleName", rules[dep1].ruleName);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".Priority", std::to_string(rules[dep1].priority));
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleId", rules[dep1].ruleId);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleName", rules[dep1].ruleName);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".Priority", std::to_string(rules[dep1].priority));
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleId", rules[dep1].ruleId);
|
||||
for(int dep2 = 0; dep2 != rules[dep1].ruleActions.size(); dep2++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".FixedResponseConfig.HttpCode", rules[dep1].ruleActions[dep2].fixedResponseConfig.httpCode);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".FixedResponseConfig.Content", rules[dep1].ruleActions[dep2].fixedResponseConfig.content);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".FixedResponseConfig.ContentType", rules[dep1].ruleActions[dep2].fixedResponseConfig.contentType);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".FixedResponseConfig.HttpCode", rules[dep1].ruleActions[dep2].fixedResponseConfig.httpCode);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".FixedResponseConfig.Content", rules[dep1].ruleActions[dep2].fixedResponseConfig.content);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".FixedResponseConfig.ContentType", rules[dep1].ruleActions[dep2].fixedResponseConfig.contentType);
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].trafficMirrorConfig.mirrorGroupConfig.serverGroupTuples.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficMirrorConfig.MirrorGroupConfig.ServerGroupTuples." + std::to_string(dep3 + 1) + ".ServerGroupId", rules[dep1].ruleActions[dep2].trafficMirrorConfig.mirrorGroupConfig.serverGroupTuples[dep3].serverGroupId);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficMirrorConfig.MirrorGroupConfig.ServerGroupTuples." + std::to_string(dep3 + 1) + ".ServerGroupId", rules[dep1].ruleActions[dep2].trafficMirrorConfig.mirrorGroupConfig.serverGroupTuples[dep3].serverGroupId);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficMirrorConfig.TargetType", rules[dep1].ruleActions[dep2].trafficMirrorConfig.targetType);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupStickySession.Enabled", rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupStickySession.enabled ? "true" : "false");
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupStickySession.Timeout", std::to_string(rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupStickySession.timeout));
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficMirrorConfig.TargetType", rules[dep1].ruleActions[dep2].trafficMirrorConfig.targetType);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupStickySession.Enabled", rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupStickySession.enabled ? "true" : "false");
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupStickySession.Timeout", std::to_string(rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupStickySession.timeout));
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupTuples.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupTuples." + std::to_string(dep3 + 1) + ".ServerGroupId", rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupTuples[dep3].serverGroupId);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupTuples." + std::to_string(dep3 + 1) + ".Weight", std::to_string(rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupTuples[dep3].weight));
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupTuples." + std::to_string(dep3 + 1) + ".ServerGroupId", rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupTuples[dep3].serverGroupId);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupTuples." + std::to_string(dep3 + 1) + ".Weight", std::to_string(rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupTuples[dep3].weight));
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RemoveHeaderConfig.Key", rules[dep1].ruleActions[dep2].removeHeaderConfig.key);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.ValueType", rules[dep1].ruleActions[dep2].insertHeaderConfig.valueType);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.CoverEnabled", rules[dep1].ruleActions[dep2].insertHeaderConfig.coverEnabled ? "true" : "false");
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.Value", rules[dep1].ruleActions[dep2].insertHeaderConfig.value);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.Key", rules[dep1].ruleActions[dep2].insertHeaderConfig.key);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficLimitConfig.QPS", std::to_string(rules[dep1].ruleActions[dep2].trafficLimitConfig.qPS));
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficLimitConfig.PerIpQps", std::to_string(rules[dep1].ruleActions[dep2].trafficLimitConfig.perIpQps));
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowCredentials", rules[dep1].ruleActions[dep2].corsConfig.allowCredentials);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RemoveHeaderConfig.Key", rules[dep1].ruleActions[dep2].removeHeaderConfig.key);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.ValueType", rules[dep1].ruleActions[dep2].insertHeaderConfig.valueType);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.CoverEnabled", rules[dep1].ruleActions[dep2].insertHeaderConfig.coverEnabled ? "true" : "false");
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.Value", rules[dep1].ruleActions[dep2].insertHeaderConfig.value);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.Key", rules[dep1].ruleActions[dep2].insertHeaderConfig.key);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficLimitConfig.QPS", std::to_string(rules[dep1].ruleActions[dep2].trafficLimitConfig.qPS));
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficLimitConfig.PerIpQps", std::to_string(rules[dep1].ruleActions[dep2].trafficLimitConfig.perIpQps));
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowCredentials", rules[dep1].ruleActions[dep2].corsConfig.allowCredentials);
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.allowOrigin.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowOrigin." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowOrigin[dep3]);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowOrigin." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowOrigin[dep3]);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.MaxAge", std::to_string(rules[dep1].ruleActions[dep2].corsConfig.maxAge));
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.MaxAge", std::to_string(rules[dep1].ruleActions[dep2].corsConfig.maxAge));
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.allowMethods.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowMethods." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowMethods[dep3]);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowMethods." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowMethods[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.allowHeaders.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowHeaders." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowHeaders[dep3]);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.AllowHeaders." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.allowHeaders[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].corsConfig.exposeHeaders.size(); dep3++) {
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.ExposeHeaders." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.exposeHeaders[dep3]);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".CorsConfig.ExposeHeaders." + std::to_string(dep3 + 1), rules[dep1].ruleActions[dep2].corsConfig.exposeHeaders[dep3]);
|
||||
}
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Path", rules[dep1].ruleActions[dep2].redirectConfig.path);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Protocol", rules[dep1].ruleActions[dep2].redirectConfig.protocol);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Port", rules[dep1].ruleActions[dep2].redirectConfig.port);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Query", rules[dep1].ruleActions[dep2].redirectConfig.query);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Host", rules[dep1].ruleActions[dep2].redirectConfig.host);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.HttpCode", rules[dep1].ruleActions[dep2].redirectConfig.httpCode);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".Type", rules[dep1].ruleActions[dep2].type);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".Order", std::to_string(rules[dep1].ruleActions[dep2].order));
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RewriteConfig.Path", rules[dep1].ruleActions[dep2].rewriteConfig.path);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RewriteConfig.Query", rules[dep1].ruleActions[dep2].rewriteConfig.query);
|
||||
setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RewriteConfig.Host", rules[dep1].ruleActions[dep2].rewriteConfig.host);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Path", rules[dep1].ruleActions[dep2].redirectConfig.path);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Protocol", rules[dep1].ruleActions[dep2].redirectConfig.protocol);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Port", rules[dep1].ruleActions[dep2].redirectConfig.port);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Query", rules[dep1].ruleActions[dep2].redirectConfig.query);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Host", rules[dep1].ruleActions[dep2].redirectConfig.host);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.HttpCode", rules[dep1].ruleActions[dep2].redirectConfig.httpCode);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".Type", rules[dep1].ruleActions[dep2].type);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".Order", std::to_string(rules[dep1].ruleActions[dep2].order));
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RewriteConfig.Path", rules[dep1].ruleActions[dep2].rewriteConfig.path);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RewriteConfig.Query", rules[dep1].ruleActions[dep2].rewriteConfig.query);
|
||||
setBodyParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RewriteConfig.Host", rules[dep1].ruleActions[dep2].rewriteConfig.host);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ UpdateServerGroupAttributeRequest::UpdateServerGroupAttributeRequest()
|
||||
|
||||
UpdateServerGroupAttributeRequest::~UpdateServerGroupAttributeRequest() {}
|
||||
|
||||
bool UpdateServerGroupAttributeRequest::getCrossZoneEnabled() const {
|
||||
return crossZoneEnabled_;
|
||||
}
|
||||
|
||||
void UpdateServerGroupAttributeRequest::setCrossZoneEnabled(bool crossZoneEnabled) {
|
||||
crossZoneEnabled_ = crossZoneEnabled;
|
||||
setParameter(std::string("CrossZoneEnabled"), crossZoneEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateServerGroupAttributeRequest::getServerGroupName() const {
|
||||
return serverGroupName_;
|
||||
}
|
||||
|
||||
@@ -25,14 +25,8 @@ set(cloud-siem_public_header_model
|
||||
include/alibabacloud/cloud-siem/model/AddDataSourceResult.h
|
||||
include/alibabacloud/cloud-siem/model/AddDataSourceLogRequest.h
|
||||
include/alibabacloud/cloud-siem/model/AddDataSourceLogResult.h
|
||||
include/alibabacloud/cloud-siem/model/AddUserRequest.h
|
||||
include/alibabacloud/cloud-siem/model/AddUserResult.h
|
||||
include/alibabacloud/cloud-siem/model/AddUserSourceLogConfigRequest.h
|
||||
include/alibabacloud/cloud-siem/model/AddUserSourceLogConfigResult.h
|
||||
include/alibabacloud/cloud-siem/model/BatchJobCheckRequest.h
|
||||
include/alibabacloud/cloud-siem/model/BatchJobCheckResult.h
|
||||
include/alibabacloud/cloud-siem/model/BatchJobSubmitRequest.h
|
||||
include/alibabacloud/cloud-siem/model/BatchJobSubmitResult.h
|
||||
include/alibabacloud/cloud-siem/model/BindAccountRequest.h
|
||||
include/alibabacloud/cloud-siem/model/BindAccountResult.h
|
||||
include/alibabacloud/cloud-siem/model/CloseDeliveryRequest.h
|
||||
@@ -47,10 +41,6 @@ set(cloud-siem_public_header_model
|
||||
include/alibabacloud/cloud-siem/model/DeleteDataSourceResult.h
|
||||
include/alibabacloud/cloud-siem/model/DeleteDataSourceLogRequest.h
|
||||
include/alibabacloud/cloud-siem/model/DeleteDataSourceLogResult.h
|
||||
include/alibabacloud/cloud-siem/model/DeleteQuickQueryRequest.h
|
||||
include/alibabacloud/cloud-siem/model/DeleteQuickQueryResult.h
|
||||
include/alibabacloud/cloud-siem/model/DeleteUserRequest.h
|
||||
include/alibabacloud/cloud-siem/model/DeleteUserResult.h
|
||||
include/alibabacloud/cloud-siem/model/DeleteWhiteRuleListRequest.h
|
||||
include/alibabacloud/cloud-siem/model/DeleteWhiteRuleListResult.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeAggregateFunctionRequest.h
|
||||
@@ -73,8 +63,6 @@ set(cloud-siem_public_header_model
|
||||
include/alibabacloud/cloud-siem/model/DescribeAlertsWithEntityResult.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeAlertsWithEventRequest.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeAlertsWithEventResult.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeAttackTimeLineRequest.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeAttackTimeLineResult.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeAuthRequest.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeAuthResult.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeAutomateResponseConfigCounterRequest.h
|
||||
@@ -91,10 +79,6 @@ set(cloud-siem_public_header_model
|
||||
include/alibabacloud/cloud-siem/model/DescribeCloudSiemEventDetailResult.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeCloudSiemEventsRequest.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeCloudSiemEventsResult.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeCsImportedProdStatusByUserRequest.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeCsImportedProdStatusByUserResult.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleRequest.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleResult.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleCountRequest.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleCountResult.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeCustomizeRuleTestRequest.h
|
||||
@@ -117,14 +101,10 @@ set(cloud-siem_public_header_model
|
||||
include/alibabacloud/cloud-siem/model/DescribeEventDisposeResult.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeImportedLogCountRequest.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeImportedLogCountResult.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeJobStatusRequest.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeJobStatusResult.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeLogFieldsRequest.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeLogFieldsResult.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeLogSourceRequest.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeLogSourceResult.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeLogStoreRequest.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeLogStoreResult.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeLogTypeRequest.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeLogTypeResult.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeOperatorsRequest.h
|
||||
@@ -143,22 +123,12 @@ set(cloud-siem_public_header_model
|
||||
include/alibabacloud/cloud-siem/model/DescribeWafScopeResult.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeWhiteRuleListRequest.h
|
||||
include/alibabacloud/cloud-siem/model/DescribeWhiteRuleListResult.h
|
||||
include/alibabacloud/cloud-siem/model/DoQuickFieldRequest.h
|
||||
include/alibabacloud/cloud-siem/model/DoQuickFieldResult.h
|
||||
include/alibabacloud/cloud-siem/model/DoSelfDelegateRequest.h
|
||||
include/alibabacloud/cloud-siem/model/DoSelfDelegateResult.h
|
||||
include/alibabacloud/cloud-siem/model/EnableAccessForCloudSiemRequest.h
|
||||
include/alibabacloud/cloud-siem/model/EnableAccessForCloudSiemResult.h
|
||||
include/alibabacloud/cloud-siem/model/EnableServiceForCloudSiemRequest.h
|
||||
include/alibabacloud/cloud-siem/model/EnableServiceForCloudSiemResult.h
|
||||
include/alibabacloud/cloud-siem/model/GetCapacityRequest.h
|
||||
include/alibabacloud/cloud-siem/model/GetCapacityResult.h
|
||||
include/alibabacloud/cloud-siem/model/GetHistogramsRequest.h
|
||||
include/alibabacloud/cloud-siem/model/GetHistogramsResult.h
|
||||
include/alibabacloud/cloud-siem/model/GetLogsRequest.h
|
||||
include/alibabacloud/cloud-siem/model/GetLogsResult.h
|
||||
include/alibabacloud/cloud-siem/model/GetQuickQueryRequest.h
|
||||
include/alibabacloud/cloud-siem/model/GetQuickQueryResult.h
|
||||
include/alibabacloud/cloud-siem/model/GetStorageRequest.h
|
||||
include/alibabacloud/cloud-siem/model/GetStorageResult.h
|
||||
include/alibabacloud/cloud-siem/model/ListAccountAccessIdRequest.h
|
||||
@@ -187,20 +157,14 @@ set(cloud-siem_public_header_model
|
||||
include/alibabacloud/cloud-siem/model/ListDeliveryResult.h
|
||||
include/alibabacloud/cloud-siem/model/ListDisposeStrategyRequest.h
|
||||
include/alibabacloud/cloud-siem/model/ListDisposeStrategyResult.h
|
||||
include/alibabacloud/cloud-siem/model/ListEntitiesRequest.h
|
||||
include/alibabacloud/cloud-siem/model/ListEntitiesResult.h
|
||||
include/alibabacloud/cloud-siem/model/ListImportedLogsByProdRequest.h
|
||||
include/alibabacloud/cloud-siem/model/ListImportedLogsByProdResult.h
|
||||
include/alibabacloud/cloud-siem/model/ListOperationRequest.h
|
||||
include/alibabacloud/cloud-siem/model/ListOperationResult.h
|
||||
include/alibabacloud/cloud-siem/model/ListProjectLogStoresRequest.h
|
||||
include/alibabacloud/cloud-siem/model/ListProjectLogStoresResult.h
|
||||
include/alibabacloud/cloud-siem/model/ListQuickQueryRequest.h
|
||||
include/alibabacloud/cloud-siem/model/ListQuickQueryResult.h
|
||||
include/alibabacloud/cloud-siem/model/ListRdUsersRequest.h
|
||||
include/alibabacloud/cloud-siem/model/ListRdUsersResult.h
|
||||
include/alibabacloud/cloud-siem/model/ListUserProdLogsRequest.h
|
||||
include/alibabacloud/cloud-siem/model/ListUserProdLogsResult.h
|
||||
include/alibabacloud/cloud-siem/model/ListUsersByProdRequest.h
|
||||
include/alibabacloud/cloud-siem/model/ListUsersByProdResult.h
|
||||
include/alibabacloud/cloud-siem/model/ModifyBindAccountRequest.h
|
||||
include/alibabacloud/cloud-siem/model/ModifyBindAccountResult.h
|
||||
include/alibabacloud/cloud-siem/model/ModifyDataSourceRequest.h
|
||||
@@ -225,16 +189,10 @@ set(cloud-siem_public_header_model
|
||||
include/alibabacloud/cloud-siem/model/PostRuleStatusChangeResult.h
|
||||
include/alibabacloud/cloud-siem/model/RestoreCapacityRequest.h
|
||||
include/alibabacloud/cloud-siem/model/RestoreCapacityResult.h
|
||||
include/alibabacloud/cloud-siem/model/SaveQuickQueryRequest.h
|
||||
include/alibabacloud/cloud-siem/model/SaveQuickQueryResult.h
|
||||
include/alibabacloud/cloud-siem/model/SetStorageRequest.h
|
||||
include/alibabacloud/cloud-siem/model/SetStorageResult.h
|
||||
include/alibabacloud/cloud-siem/model/ShowQuickAnalysisRequest.h
|
||||
include/alibabacloud/cloud-siem/model/ShowQuickAnalysisResult.h
|
||||
include/alibabacloud/cloud-siem/model/SubmitImportLogTasksRequest.h
|
||||
include/alibabacloud/cloud-siem/model/SubmitImportLogTasksResult.h
|
||||
include/alibabacloud/cloud-siem/model/SubmitJobsRequest.h
|
||||
include/alibabacloud/cloud-siem/model/SubmitJobsResult.h
|
||||
include/alibabacloud/cloud-siem/model/UpdateAutomateResponseConfigStatusRequest.h
|
||||
include/alibabacloud/cloud-siem/model/UpdateAutomateResponseConfigStatusResult.h
|
||||
include/alibabacloud/cloud-siem/model/UpdateWhiteRuleListRequest.h
|
||||
@@ -246,14 +204,8 @@ set(cloud-siem_src
|
||||
src/model/AddDataSourceResult.cc
|
||||
src/model/AddDataSourceLogRequest.cc
|
||||
src/model/AddDataSourceLogResult.cc
|
||||
src/model/AddUserRequest.cc
|
||||
src/model/AddUserResult.cc
|
||||
src/model/AddUserSourceLogConfigRequest.cc
|
||||
src/model/AddUserSourceLogConfigResult.cc
|
||||
src/model/BatchJobCheckRequest.cc
|
||||
src/model/BatchJobCheckResult.cc
|
||||
src/model/BatchJobSubmitRequest.cc
|
||||
src/model/BatchJobSubmitResult.cc
|
||||
src/model/BindAccountRequest.cc
|
||||
src/model/BindAccountResult.cc
|
||||
src/model/CloseDeliveryRequest.cc
|
||||
@@ -268,10 +220,6 @@ set(cloud-siem_src
|
||||
src/model/DeleteDataSourceResult.cc
|
||||
src/model/DeleteDataSourceLogRequest.cc
|
||||
src/model/DeleteDataSourceLogResult.cc
|
||||
src/model/DeleteQuickQueryRequest.cc
|
||||
src/model/DeleteQuickQueryResult.cc
|
||||
src/model/DeleteUserRequest.cc
|
||||
src/model/DeleteUserResult.cc
|
||||
src/model/DeleteWhiteRuleListRequest.cc
|
||||
src/model/DeleteWhiteRuleListResult.cc
|
||||
src/model/DescribeAggregateFunctionRequest.cc
|
||||
@@ -294,8 +242,6 @@ set(cloud-siem_src
|
||||
src/model/DescribeAlertsWithEntityResult.cc
|
||||
src/model/DescribeAlertsWithEventRequest.cc
|
||||
src/model/DescribeAlertsWithEventResult.cc
|
||||
src/model/DescribeAttackTimeLineRequest.cc
|
||||
src/model/DescribeAttackTimeLineResult.cc
|
||||
src/model/DescribeAuthRequest.cc
|
||||
src/model/DescribeAuthResult.cc
|
||||
src/model/DescribeAutomateResponseConfigCounterRequest.cc
|
||||
@@ -312,10 +258,6 @@ set(cloud-siem_src
|
||||
src/model/DescribeCloudSiemEventDetailResult.cc
|
||||
src/model/DescribeCloudSiemEventsRequest.cc
|
||||
src/model/DescribeCloudSiemEventsResult.cc
|
||||
src/model/DescribeCsImportedProdStatusByUserRequest.cc
|
||||
src/model/DescribeCsImportedProdStatusByUserResult.cc
|
||||
src/model/DescribeCustomizeRuleRequest.cc
|
||||
src/model/DescribeCustomizeRuleResult.cc
|
||||
src/model/DescribeCustomizeRuleCountRequest.cc
|
||||
src/model/DescribeCustomizeRuleCountResult.cc
|
||||
src/model/DescribeCustomizeRuleTestRequest.cc
|
||||
@@ -338,14 +280,10 @@ set(cloud-siem_src
|
||||
src/model/DescribeEventDisposeResult.cc
|
||||
src/model/DescribeImportedLogCountRequest.cc
|
||||
src/model/DescribeImportedLogCountResult.cc
|
||||
src/model/DescribeJobStatusRequest.cc
|
||||
src/model/DescribeJobStatusResult.cc
|
||||
src/model/DescribeLogFieldsRequest.cc
|
||||
src/model/DescribeLogFieldsResult.cc
|
||||
src/model/DescribeLogSourceRequest.cc
|
||||
src/model/DescribeLogSourceResult.cc
|
||||
src/model/DescribeLogStoreRequest.cc
|
||||
src/model/DescribeLogStoreResult.cc
|
||||
src/model/DescribeLogTypeRequest.cc
|
||||
src/model/DescribeLogTypeResult.cc
|
||||
src/model/DescribeOperatorsRequest.cc
|
||||
@@ -364,22 +302,12 @@ set(cloud-siem_src
|
||||
src/model/DescribeWafScopeResult.cc
|
||||
src/model/DescribeWhiteRuleListRequest.cc
|
||||
src/model/DescribeWhiteRuleListResult.cc
|
||||
src/model/DoQuickFieldRequest.cc
|
||||
src/model/DoQuickFieldResult.cc
|
||||
src/model/DoSelfDelegateRequest.cc
|
||||
src/model/DoSelfDelegateResult.cc
|
||||
src/model/EnableAccessForCloudSiemRequest.cc
|
||||
src/model/EnableAccessForCloudSiemResult.cc
|
||||
src/model/EnableServiceForCloudSiemRequest.cc
|
||||
src/model/EnableServiceForCloudSiemResult.cc
|
||||
src/model/GetCapacityRequest.cc
|
||||
src/model/GetCapacityResult.cc
|
||||
src/model/GetHistogramsRequest.cc
|
||||
src/model/GetHistogramsResult.cc
|
||||
src/model/GetLogsRequest.cc
|
||||
src/model/GetLogsResult.cc
|
||||
src/model/GetQuickQueryRequest.cc
|
||||
src/model/GetQuickQueryResult.cc
|
||||
src/model/GetStorageRequest.cc
|
||||
src/model/GetStorageResult.cc
|
||||
src/model/ListAccountAccessIdRequest.cc
|
||||
@@ -408,20 +336,14 @@ set(cloud-siem_src
|
||||
src/model/ListDeliveryResult.cc
|
||||
src/model/ListDisposeStrategyRequest.cc
|
||||
src/model/ListDisposeStrategyResult.cc
|
||||
src/model/ListEntitiesRequest.cc
|
||||
src/model/ListEntitiesResult.cc
|
||||
src/model/ListImportedLogsByProdRequest.cc
|
||||
src/model/ListImportedLogsByProdResult.cc
|
||||
src/model/ListOperationRequest.cc
|
||||
src/model/ListOperationResult.cc
|
||||
src/model/ListProjectLogStoresRequest.cc
|
||||
src/model/ListProjectLogStoresResult.cc
|
||||
src/model/ListQuickQueryRequest.cc
|
||||
src/model/ListQuickQueryResult.cc
|
||||
src/model/ListRdUsersRequest.cc
|
||||
src/model/ListRdUsersResult.cc
|
||||
src/model/ListUserProdLogsRequest.cc
|
||||
src/model/ListUserProdLogsResult.cc
|
||||
src/model/ListUsersByProdRequest.cc
|
||||
src/model/ListUsersByProdResult.cc
|
||||
src/model/ModifyBindAccountRequest.cc
|
||||
src/model/ModifyBindAccountResult.cc
|
||||
src/model/ModifyDataSourceRequest.cc
|
||||
@@ -446,16 +368,10 @@ set(cloud-siem_src
|
||||
src/model/PostRuleStatusChangeResult.cc
|
||||
src/model/RestoreCapacityRequest.cc
|
||||
src/model/RestoreCapacityResult.cc
|
||||
src/model/SaveQuickQueryRequest.cc
|
||||
src/model/SaveQuickQueryResult.cc
|
||||
src/model/SetStorageRequest.cc
|
||||
src/model/SetStorageResult.cc
|
||||
src/model/ShowQuickAnalysisRequest.cc
|
||||
src/model/ShowQuickAnalysisResult.cc
|
||||
src/model/SubmitImportLogTasksRequest.cc
|
||||
src/model/SubmitImportLogTasksResult.cc
|
||||
src/model/SubmitJobsRequest.cc
|
||||
src/model/SubmitJobsResult.cc
|
||||
src/model/UpdateAutomateResponseConfigStatusRequest.cc
|
||||
src/model/UpdateAutomateResponseConfigStatusResult.cc
|
||||
src/model/UpdateWhiteRuleListRequest.cc
|
||||
|
||||
@@ -26,14 +26,8 @@
|
||||
#include "model/AddDataSourceResult.h"
|
||||
#include "model/AddDataSourceLogRequest.h"
|
||||
#include "model/AddDataSourceLogResult.h"
|
||||
#include "model/AddUserRequest.h"
|
||||
#include "model/AddUserResult.h"
|
||||
#include "model/AddUserSourceLogConfigRequest.h"
|
||||
#include "model/AddUserSourceLogConfigResult.h"
|
||||
#include "model/BatchJobCheckRequest.h"
|
||||
#include "model/BatchJobCheckResult.h"
|
||||
#include "model/BatchJobSubmitRequest.h"
|
||||
#include "model/BatchJobSubmitResult.h"
|
||||
#include "model/BindAccountRequest.h"
|
||||
#include "model/BindAccountResult.h"
|
||||
#include "model/CloseDeliveryRequest.h"
|
||||
@@ -48,10 +42,6 @@
|
||||
#include "model/DeleteDataSourceResult.h"
|
||||
#include "model/DeleteDataSourceLogRequest.h"
|
||||
#include "model/DeleteDataSourceLogResult.h"
|
||||
#include "model/DeleteQuickQueryRequest.h"
|
||||
#include "model/DeleteQuickQueryResult.h"
|
||||
#include "model/DeleteUserRequest.h"
|
||||
#include "model/DeleteUserResult.h"
|
||||
#include "model/DeleteWhiteRuleListRequest.h"
|
||||
#include "model/DeleteWhiteRuleListResult.h"
|
||||
#include "model/DescribeAggregateFunctionRequest.h"
|
||||
@@ -74,8 +64,6 @@
|
||||
#include "model/DescribeAlertsWithEntityResult.h"
|
||||
#include "model/DescribeAlertsWithEventRequest.h"
|
||||
#include "model/DescribeAlertsWithEventResult.h"
|
||||
#include "model/DescribeAttackTimeLineRequest.h"
|
||||
#include "model/DescribeAttackTimeLineResult.h"
|
||||
#include "model/DescribeAuthRequest.h"
|
||||
#include "model/DescribeAuthResult.h"
|
||||
#include "model/DescribeAutomateResponseConfigCounterRequest.h"
|
||||
@@ -92,10 +80,6 @@
|
||||
#include "model/DescribeCloudSiemEventDetailResult.h"
|
||||
#include "model/DescribeCloudSiemEventsRequest.h"
|
||||
#include "model/DescribeCloudSiemEventsResult.h"
|
||||
#include "model/DescribeCsImportedProdStatusByUserRequest.h"
|
||||
#include "model/DescribeCsImportedProdStatusByUserResult.h"
|
||||
#include "model/DescribeCustomizeRuleRequest.h"
|
||||
#include "model/DescribeCustomizeRuleResult.h"
|
||||
#include "model/DescribeCustomizeRuleCountRequest.h"
|
||||
#include "model/DescribeCustomizeRuleCountResult.h"
|
||||
#include "model/DescribeCustomizeRuleTestRequest.h"
|
||||
@@ -118,14 +102,10 @@
|
||||
#include "model/DescribeEventDisposeResult.h"
|
||||
#include "model/DescribeImportedLogCountRequest.h"
|
||||
#include "model/DescribeImportedLogCountResult.h"
|
||||
#include "model/DescribeJobStatusRequest.h"
|
||||
#include "model/DescribeJobStatusResult.h"
|
||||
#include "model/DescribeLogFieldsRequest.h"
|
||||
#include "model/DescribeLogFieldsResult.h"
|
||||
#include "model/DescribeLogSourceRequest.h"
|
||||
#include "model/DescribeLogSourceResult.h"
|
||||
#include "model/DescribeLogStoreRequest.h"
|
||||
#include "model/DescribeLogStoreResult.h"
|
||||
#include "model/DescribeLogTypeRequest.h"
|
||||
#include "model/DescribeLogTypeResult.h"
|
||||
#include "model/DescribeOperatorsRequest.h"
|
||||
@@ -144,22 +124,12 @@
|
||||
#include "model/DescribeWafScopeResult.h"
|
||||
#include "model/DescribeWhiteRuleListRequest.h"
|
||||
#include "model/DescribeWhiteRuleListResult.h"
|
||||
#include "model/DoQuickFieldRequest.h"
|
||||
#include "model/DoQuickFieldResult.h"
|
||||
#include "model/DoSelfDelegateRequest.h"
|
||||
#include "model/DoSelfDelegateResult.h"
|
||||
#include "model/EnableAccessForCloudSiemRequest.h"
|
||||
#include "model/EnableAccessForCloudSiemResult.h"
|
||||
#include "model/EnableServiceForCloudSiemRequest.h"
|
||||
#include "model/EnableServiceForCloudSiemResult.h"
|
||||
#include "model/GetCapacityRequest.h"
|
||||
#include "model/GetCapacityResult.h"
|
||||
#include "model/GetHistogramsRequest.h"
|
||||
#include "model/GetHistogramsResult.h"
|
||||
#include "model/GetLogsRequest.h"
|
||||
#include "model/GetLogsResult.h"
|
||||
#include "model/GetQuickQueryRequest.h"
|
||||
#include "model/GetQuickQueryResult.h"
|
||||
#include "model/GetStorageRequest.h"
|
||||
#include "model/GetStorageResult.h"
|
||||
#include "model/ListAccountAccessIdRequest.h"
|
||||
@@ -188,20 +158,14 @@
|
||||
#include "model/ListDeliveryResult.h"
|
||||
#include "model/ListDisposeStrategyRequest.h"
|
||||
#include "model/ListDisposeStrategyResult.h"
|
||||
#include "model/ListEntitiesRequest.h"
|
||||
#include "model/ListEntitiesResult.h"
|
||||
#include "model/ListImportedLogsByProdRequest.h"
|
||||
#include "model/ListImportedLogsByProdResult.h"
|
||||
#include "model/ListOperationRequest.h"
|
||||
#include "model/ListOperationResult.h"
|
||||
#include "model/ListProjectLogStoresRequest.h"
|
||||
#include "model/ListProjectLogStoresResult.h"
|
||||
#include "model/ListQuickQueryRequest.h"
|
||||
#include "model/ListQuickQueryResult.h"
|
||||
#include "model/ListRdUsersRequest.h"
|
||||
#include "model/ListRdUsersResult.h"
|
||||
#include "model/ListUserProdLogsRequest.h"
|
||||
#include "model/ListUserProdLogsResult.h"
|
||||
#include "model/ListUsersByProdRequest.h"
|
||||
#include "model/ListUsersByProdResult.h"
|
||||
#include "model/ModifyBindAccountRequest.h"
|
||||
#include "model/ModifyBindAccountResult.h"
|
||||
#include "model/ModifyDataSourceRequest.h"
|
||||
@@ -226,16 +190,10 @@
|
||||
#include "model/PostRuleStatusChangeResult.h"
|
||||
#include "model/RestoreCapacityRequest.h"
|
||||
#include "model/RestoreCapacityResult.h"
|
||||
#include "model/SaveQuickQueryRequest.h"
|
||||
#include "model/SaveQuickQueryResult.h"
|
||||
#include "model/SetStorageRequest.h"
|
||||
#include "model/SetStorageResult.h"
|
||||
#include "model/ShowQuickAnalysisRequest.h"
|
||||
#include "model/ShowQuickAnalysisResult.h"
|
||||
#include "model/SubmitImportLogTasksRequest.h"
|
||||
#include "model/SubmitImportLogTasksResult.h"
|
||||
#include "model/SubmitJobsRequest.h"
|
||||
#include "model/SubmitJobsResult.h"
|
||||
#include "model/UpdateAutomateResponseConfigStatusRequest.h"
|
||||
#include "model/UpdateAutomateResponseConfigStatusResult.h"
|
||||
#include "model/UpdateWhiteRuleListRequest.h"
|
||||
@@ -255,18 +213,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::AddDataSourceLogResult> AddDataSourceLogOutcome;
|
||||
typedef std::future<AddDataSourceLogOutcome> AddDataSourceLogOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::AddDataSourceLogRequest&, const AddDataSourceLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddDataSourceLogAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddUserResult> AddUserOutcome;
|
||||
typedef std::future<AddUserOutcome> AddUserOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::AddUserRequest&, const AddUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddUserSourceLogConfigResult> AddUserSourceLogConfigOutcome;
|
||||
typedef std::future<AddUserSourceLogConfigOutcome> AddUserSourceLogConfigOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::AddUserSourceLogConfigRequest&, const AddUserSourceLogConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddUserSourceLogConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::BatchJobCheckResult> BatchJobCheckOutcome;
|
||||
typedef std::future<BatchJobCheckOutcome> BatchJobCheckOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::BatchJobCheckRequest&, const BatchJobCheckOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchJobCheckAsyncHandler;
|
||||
typedef Outcome<Error, Model::BatchJobSubmitResult> BatchJobSubmitOutcome;
|
||||
typedef std::future<BatchJobSubmitOutcome> BatchJobSubmitOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::BatchJobSubmitRequest&, const BatchJobSubmitOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchJobSubmitAsyncHandler;
|
||||
typedef Outcome<Error, Model::BindAccountResult> BindAccountOutcome;
|
||||
typedef std::future<BindAccountOutcome> BindAccountOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::BindAccountRequest&, const BindAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindAccountAsyncHandler;
|
||||
@@ -288,12 +237,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteDataSourceLogResult> DeleteDataSourceLogOutcome;
|
||||
typedef std::future<DeleteDataSourceLogOutcome> DeleteDataSourceLogOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::DeleteDataSourceLogRequest&, const DeleteDataSourceLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDataSourceLogAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteQuickQueryResult> DeleteQuickQueryOutcome;
|
||||
typedef std::future<DeleteQuickQueryOutcome> DeleteQuickQueryOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::DeleteQuickQueryRequest&, const DeleteQuickQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteQuickQueryAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteUserResult> DeleteUserOutcome;
|
||||
typedef std::future<DeleteUserOutcome> DeleteUserOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::DeleteUserRequest&, const DeleteUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteWhiteRuleListResult> DeleteWhiteRuleListOutcome;
|
||||
typedef std::future<DeleteWhiteRuleListOutcome> DeleteWhiteRuleListOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::DeleteWhiteRuleListRequest&, const DeleteWhiteRuleListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteWhiteRuleListAsyncHandler;
|
||||
@@ -327,9 +270,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeAlertsWithEventResult> DescribeAlertsWithEventOutcome;
|
||||
typedef std::future<DescribeAlertsWithEventOutcome> DescribeAlertsWithEventOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::DescribeAlertsWithEventRequest&, const DescribeAlertsWithEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAlertsWithEventAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAttackTimeLineResult> DescribeAttackTimeLineOutcome;
|
||||
typedef std::future<DescribeAttackTimeLineOutcome> DescribeAttackTimeLineOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::DescribeAttackTimeLineRequest&, const DescribeAttackTimeLineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAttackTimeLineAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAuthResult> DescribeAuthOutcome;
|
||||
typedef std::future<DescribeAuthOutcome> DescribeAuthOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::DescribeAuthRequest&, const DescribeAuthOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAuthAsyncHandler;
|
||||
@@ -354,12 +294,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeCloudSiemEventsResult> DescribeCloudSiemEventsOutcome;
|
||||
typedef std::future<DescribeCloudSiemEventsOutcome> DescribeCloudSiemEventsOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::DescribeCloudSiemEventsRequest&, const DescribeCloudSiemEventsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCloudSiemEventsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCsImportedProdStatusByUserResult> DescribeCsImportedProdStatusByUserOutcome;
|
||||
typedef std::future<DescribeCsImportedProdStatusByUserOutcome> DescribeCsImportedProdStatusByUserOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::DescribeCsImportedProdStatusByUserRequest&, const DescribeCsImportedProdStatusByUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCsImportedProdStatusByUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCustomizeRuleResult> DescribeCustomizeRuleOutcome;
|
||||
typedef std::future<DescribeCustomizeRuleOutcome> DescribeCustomizeRuleOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::DescribeCustomizeRuleRequest&, const DescribeCustomizeRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCustomizeRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCustomizeRuleCountResult> DescribeCustomizeRuleCountOutcome;
|
||||
typedef std::future<DescribeCustomizeRuleCountOutcome> DescribeCustomizeRuleCountOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::DescribeCustomizeRuleCountRequest&, const DescribeCustomizeRuleCountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCustomizeRuleCountAsyncHandler;
|
||||
@@ -393,18 +327,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeImportedLogCountResult> DescribeImportedLogCountOutcome;
|
||||
typedef std::future<DescribeImportedLogCountOutcome> DescribeImportedLogCountOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::DescribeImportedLogCountRequest&, const DescribeImportedLogCountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeImportedLogCountAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeJobStatusResult> DescribeJobStatusOutcome;
|
||||
typedef std::future<DescribeJobStatusOutcome> DescribeJobStatusOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::DescribeJobStatusRequest&, const DescribeJobStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeJobStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeLogFieldsResult> DescribeLogFieldsOutcome;
|
||||
typedef std::future<DescribeLogFieldsOutcome> DescribeLogFieldsOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::DescribeLogFieldsRequest&, const DescribeLogFieldsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLogFieldsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeLogSourceResult> DescribeLogSourceOutcome;
|
||||
typedef std::future<DescribeLogSourceOutcome> DescribeLogSourceOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::DescribeLogSourceRequest&, const DescribeLogSourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLogSourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeLogStoreResult> DescribeLogStoreOutcome;
|
||||
typedef std::future<DescribeLogStoreOutcome> DescribeLogStoreOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::DescribeLogStoreRequest&, const DescribeLogStoreOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLogStoreAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeLogTypeResult> DescribeLogTypeOutcome;
|
||||
typedef std::future<DescribeLogTypeOutcome> DescribeLogTypeOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::DescribeLogTypeRequest&, const DescribeLogTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLogTypeAsyncHandler;
|
||||
@@ -432,12 +360,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeWhiteRuleListResult> DescribeWhiteRuleListOutcome;
|
||||
typedef std::future<DescribeWhiteRuleListOutcome> DescribeWhiteRuleListOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::DescribeWhiteRuleListRequest&, const DescribeWhiteRuleListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeWhiteRuleListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DoQuickFieldResult> DoQuickFieldOutcome;
|
||||
typedef std::future<DoQuickFieldOutcome> DoQuickFieldOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::DoQuickFieldRequest&, const DoQuickFieldOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DoQuickFieldAsyncHandler;
|
||||
typedef Outcome<Error, Model::DoSelfDelegateResult> DoSelfDelegateOutcome;
|
||||
typedef std::future<DoSelfDelegateOutcome> DoSelfDelegateOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::DoSelfDelegateRequest&, const DoSelfDelegateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DoSelfDelegateAsyncHandler;
|
||||
typedef Outcome<Error, Model::EnableAccessForCloudSiemResult> EnableAccessForCloudSiemOutcome;
|
||||
typedef std::future<EnableAccessForCloudSiemOutcome> EnableAccessForCloudSiemOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::EnableAccessForCloudSiemRequest&, const EnableAccessForCloudSiemOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableAccessForCloudSiemAsyncHandler;
|
||||
@@ -447,15 +369,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetCapacityResult> GetCapacityOutcome;
|
||||
typedef std::future<GetCapacityOutcome> GetCapacityOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::GetCapacityRequest&, const GetCapacityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCapacityAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetHistogramsResult> GetHistogramsOutcome;
|
||||
typedef std::future<GetHistogramsOutcome> GetHistogramsOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::GetHistogramsRequest&, const GetHistogramsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetHistogramsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetLogsResult> GetLogsOutcome;
|
||||
typedef std::future<GetLogsOutcome> GetLogsOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::GetLogsRequest&, const GetLogsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLogsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetQuickQueryResult> GetQuickQueryOutcome;
|
||||
typedef std::future<GetQuickQueryOutcome> GetQuickQueryOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::GetQuickQueryRequest&, const GetQuickQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetQuickQueryAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetStorageResult> GetStorageOutcome;
|
||||
typedef std::future<GetStorageOutcome> GetStorageOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::GetStorageRequest&, const GetStorageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetStorageAsyncHandler;
|
||||
@@ -498,27 +411,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListDisposeStrategyResult> ListDisposeStrategyOutcome;
|
||||
typedef std::future<ListDisposeStrategyOutcome> ListDisposeStrategyOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::ListDisposeStrategyRequest&, const ListDisposeStrategyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDisposeStrategyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListEntitiesResult> ListEntitiesOutcome;
|
||||
typedef std::future<ListEntitiesOutcome> ListEntitiesOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::ListEntitiesRequest&, const ListEntitiesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListEntitiesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListImportedLogsByProdResult> ListImportedLogsByProdOutcome;
|
||||
typedef std::future<ListImportedLogsByProdOutcome> ListImportedLogsByProdOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::ListImportedLogsByProdRequest&, const ListImportedLogsByProdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListImportedLogsByProdAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListOperationResult> ListOperationOutcome;
|
||||
typedef std::future<ListOperationOutcome> ListOperationOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::ListOperationRequest&, const ListOperationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListOperationAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListProjectLogStoresResult> ListProjectLogStoresOutcome;
|
||||
typedef std::future<ListProjectLogStoresOutcome> ListProjectLogStoresOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::ListProjectLogStoresRequest&, const ListProjectLogStoresOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListProjectLogStoresAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListQuickQueryResult> ListQuickQueryOutcome;
|
||||
typedef std::future<ListQuickQueryOutcome> ListQuickQueryOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::ListQuickQueryRequest&, const ListQuickQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListQuickQueryAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRdUsersResult> ListRdUsersOutcome;
|
||||
typedef std::future<ListRdUsersOutcome> ListRdUsersOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::ListRdUsersRequest&, const ListRdUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRdUsersAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListUserProdLogsResult> ListUserProdLogsOutcome;
|
||||
typedef std::future<ListUserProdLogsOutcome> ListUserProdLogsOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::ListUserProdLogsRequest&, const ListUserProdLogsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUserProdLogsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListUsersByProdResult> ListUsersByProdOutcome;
|
||||
typedef std::future<ListUsersByProdOutcome> ListUsersByProdOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::ListUsersByProdRequest&, const ListUsersByProdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUsersByProdAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyBindAccountResult> ModifyBindAccountOutcome;
|
||||
typedef std::future<ModifyBindAccountOutcome> ModifyBindAccountOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::ModifyBindAccountRequest&, const ModifyBindAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyBindAccountAsyncHandler;
|
||||
@@ -555,21 +459,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::RestoreCapacityResult> RestoreCapacityOutcome;
|
||||
typedef std::future<RestoreCapacityOutcome> RestoreCapacityOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::RestoreCapacityRequest&, const RestoreCapacityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RestoreCapacityAsyncHandler;
|
||||
typedef Outcome<Error, Model::SaveQuickQueryResult> SaveQuickQueryOutcome;
|
||||
typedef std::future<SaveQuickQueryOutcome> SaveQuickQueryOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::SaveQuickQueryRequest&, const SaveQuickQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveQuickQueryAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetStorageResult> SetStorageOutcome;
|
||||
typedef std::future<SetStorageOutcome> SetStorageOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::SetStorageRequest&, const SetStorageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetStorageAsyncHandler;
|
||||
typedef Outcome<Error, Model::ShowQuickAnalysisResult> ShowQuickAnalysisOutcome;
|
||||
typedef std::future<ShowQuickAnalysisOutcome> ShowQuickAnalysisOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::ShowQuickAnalysisRequest&, const ShowQuickAnalysisOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ShowQuickAnalysisAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubmitImportLogTasksResult> SubmitImportLogTasksOutcome;
|
||||
typedef std::future<SubmitImportLogTasksOutcome> SubmitImportLogTasksOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::SubmitImportLogTasksRequest&, const SubmitImportLogTasksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitImportLogTasksAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubmitJobsResult> SubmitJobsOutcome;
|
||||
typedef std::future<SubmitJobsOutcome> SubmitJobsOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::SubmitJobsRequest&, const SubmitJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitJobsAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateAutomateResponseConfigStatusResult> UpdateAutomateResponseConfigStatusOutcome;
|
||||
typedef std::future<UpdateAutomateResponseConfigStatusOutcome> UpdateAutomateResponseConfigStatusOutcomeCallable;
|
||||
typedef std::function<void(const Cloud_siemClient*, const Model::UpdateAutomateResponseConfigStatusRequest&, const UpdateAutomateResponseConfigStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAutomateResponseConfigStatusAsyncHandler;
|
||||
@@ -587,18 +482,9 @@ namespace AlibabaCloud
|
||||
AddDataSourceLogOutcome addDataSourceLog(const Model::AddDataSourceLogRequest &request)const;
|
||||
void addDataSourceLogAsync(const Model::AddDataSourceLogRequest& request, const AddDataSourceLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddDataSourceLogOutcomeCallable addDataSourceLogCallable(const Model::AddDataSourceLogRequest& request) const;
|
||||
AddUserOutcome addUser(const Model::AddUserRequest &request)const;
|
||||
void addUserAsync(const Model::AddUserRequest& request, const AddUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddUserOutcomeCallable addUserCallable(const Model::AddUserRequest& request) const;
|
||||
AddUserSourceLogConfigOutcome addUserSourceLogConfig(const Model::AddUserSourceLogConfigRequest &request)const;
|
||||
void addUserSourceLogConfigAsync(const Model::AddUserSourceLogConfigRequest& request, const AddUserSourceLogConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddUserSourceLogConfigOutcomeCallable addUserSourceLogConfigCallable(const Model::AddUserSourceLogConfigRequest& request) const;
|
||||
BatchJobCheckOutcome batchJobCheck(const Model::BatchJobCheckRequest &request)const;
|
||||
void batchJobCheckAsync(const Model::BatchJobCheckRequest& request, const BatchJobCheckAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BatchJobCheckOutcomeCallable batchJobCheckCallable(const Model::BatchJobCheckRequest& request) const;
|
||||
BatchJobSubmitOutcome batchJobSubmit(const Model::BatchJobSubmitRequest &request)const;
|
||||
void batchJobSubmitAsync(const Model::BatchJobSubmitRequest& request, const BatchJobSubmitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BatchJobSubmitOutcomeCallable batchJobSubmitCallable(const Model::BatchJobSubmitRequest& request) const;
|
||||
BindAccountOutcome bindAccount(const Model::BindAccountRequest &request)const;
|
||||
void bindAccountAsync(const Model::BindAccountRequest& request, const BindAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BindAccountOutcomeCallable bindAccountCallable(const Model::BindAccountRequest& request) const;
|
||||
@@ -620,12 +506,6 @@ namespace AlibabaCloud
|
||||
DeleteDataSourceLogOutcome deleteDataSourceLog(const Model::DeleteDataSourceLogRequest &request)const;
|
||||
void deleteDataSourceLogAsync(const Model::DeleteDataSourceLogRequest& request, const DeleteDataSourceLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDataSourceLogOutcomeCallable deleteDataSourceLogCallable(const Model::DeleteDataSourceLogRequest& request) const;
|
||||
DeleteQuickQueryOutcome deleteQuickQuery(const Model::DeleteQuickQueryRequest &request)const;
|
||||
void deleteQuickQueryAsync(const Model::DeleteQuickQueryRequest& request, const DeleteQuickQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteQuickQueryOutcomeCallable deleteQuickQueryCallable(const Model::DeleteQuickQueryRequest& request) const;
|
||||
DeleteUserOutcome deleteUser(const Model::DeleteUserRequest &request)const;
|
||||
void deleteUserAsync(const Model::DeleteUserRequest& request, const DeleteUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteUserOutcomeCallable deleteUserCallable(const Model::DeleteUserRequest& request) const;
|
||||
DeleteWhiteRuleListOutcome deleteWhiteRuleList(const Model::DeleteWhiteRuleListRequest &request)const;
|
||||
void deleteWhiteRuleListAsync(const Model::DeleteWhiteRuleListRequest& request, const DeleteWhiteRuleListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteWhiteRuleListOutcomeCallable deleteWhiteRuleListCallable(const Model::DeleteWhiteRuleListRequest& request) const;
|
||||
@@ -659,9 +539,6 @@ namespace AlibabaCloud
|
||||
DescribeAlertsWithEventOutcome describeAlertsWithEvent(const Model::DescribeAlertsWithEventRequest &request)const;
|
||||
void describeAlertsWithEventAsync(const Model::DescribeAlertsWithEventRequest& request, const DescribeAlertsWithEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAlertsWithEventOutcomeCallable describeAlertsWithEventCallable(const Model::DescribeAlertsWithEventRequest& request) const;
|
||||
DescribeAttackTimeLineOutcome describeAttackTimeLine(const Model::DescribeAttackTimeLineRequest &request)const;
|
||||
void describeAttackTimeLineAsync(const Model::DescribeAttackTimeLineRequest& request, const DescribeAttackTimeLineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAttackTimeLineOutcomeCallable describeAttackTimeLineCallable(const Model::DescribeAttackTimeLineRequest& request) const;
|
||||
DescribeAuthOutcome describeAuth(const Model::DescribeAuthRequest &request)const;
|
||||
void describeAuthAsync(const Model::DescribeAuthRequest& request, const DescribeAuthAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAuthOutcomeCallable describeAuthCallable(const Model::DescribeAuthRequest& request) const;
|
||||
@@ -686,12 +563,6 @@ namespace AlibabaCloud
|
||||
DescribeCloudSiemEventsOutcome describeCloudSiemEvents(const Model::DescribeCloudSiemEventsRequest &request)const;
|
||||
void describeCloudSiemEventsAsync(const Model::DescribeCloudSiemEventsRequest& request, const DescribeCloudSiemEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCloudSiemEventsOutcomeCallable describeCloudSiemEventsCallable(const Model::DescribeCloudSiemEventsRequest& request) const;
|
||||
DescribeCsImportedProdStatusByUserOutcome describeCsImportedProdStatusByUser(const Model::DescribeCsImportedProdStatusByUserRequest &request)const;
|
||||
void describeCsImportedProdStatusByUserAsync(const Model::DescribeCsImportedProdStatusByUserRequest& request, const DescribeCsImportedProdStatusByUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCsImportedProdStatusByUserOutcomeCallable describeCsImportedProdStatusByUserCallable(const Model::DescribeCsImportedProdStatusByUserRequest& request) const;
|
||||
DescribeCustomizeRuleOutcome describeCustomizeRule(const Model::DescribeCustomizeRuleRequest &request)const;
|
||||
void describeCustomizeRuleAsync(const Model::DescribeCustomizeRuleRequest& request, const DescribeCustomizeRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCustomizeRuleOutcomeCallable describeCustomizeRuleCallable(const Model::DescribeCustomizeRuleRequest& request) const;
|
||||
DescribeCustomizeRuleCountOutcome describeCustomizeRuleCount(const Model::DescribeCustomizeRuleCountRequest &request)const;
|
||||
void describeCustomizeRuleCountAsync(const Model::DescribeCustomizeRuleCountRequest& request, const DescribeCustomizeRuleCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCustomizeRuleCountOutcomeCallable describeCustomizeRuleCountCallable(const Model::DescribeCustomizeRuleCountRequest& request) const;
|
||||
@@ -725,18 +596,12 @@ namespace AlibabaCloud
|
||||
DescribeImportedLogCountOutcome describeImportedLogCount(const Model::DescribeImportedLogCountRequest &request)const;
|
||||
void describeImportedLogCountAsync(const Model::DescribeImportedLogCountRequest& request, const DescribeImportedLogCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeImportedLogCountOutcomeCallable describeImportedLogCountCallable(const Model::DescribeImportedLogCountRequest& request) const;
|
||||
DescribeJobStatusOutcome describeJobStatus(const Model::DescribeJobStatusRequest &request)const;
|
||||
void describeJobStatusAsync(const Model::DescribeJobStatusRequest& request, const DescribeJobStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeJobStatusOutcomeCallable describeJobStatusCallable(const Model::DescribeJobStatusRequest& request) const;
|
||||
DescribeLogFieldsOutcome describeLogFields(const Model::DescribeLogFieldsRequest &request)const;
|
||||
void describeLogFieldsAsync(const Model::DescribeLogFieldsRequest& request, const DescribeLogFieldsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLogFieldsOutcomeCallable describeLogFieldsCallable(const Model::DescribeLogFieldsRequest& request) const;
|
||||
DescribeLogSourceOutcome describeLogSource(const Model::DescribeLogSourceRequest &request)const;
|
||||
void describeLogSourceAsync(const Model::DescribeLogSourceRequest& request, const DescribeLogSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLogSourceOutcomeCallable describeLogSourceCallable(const Model::DescribeLogSourceRequest& request) const;
|
||||
DescribeLogStoreOutcome describeLogStore(const Model::DescribeLogStoreRequest &request)const;
|
||||
void describeLogStoreAsync(const Model::DescribeLogStoreRequest& request, const DescribeLogStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLogStoreOutcomeCallable describeLogStoreCallable(const Model::DescribeLogStoreRequest& request) const;
|
||||
DescribeLogTypeOutcome describeLogType(const Model::DescribeLogTypeRequest &request)const;
|
||||
void describeLogTypeAsync(const Model::DescribeLogTypeRequest& request, const DescribeLogTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLogTypeOutcomeCallable describeLogTypeCallable(const Model::DescribeLogTypeRequest& request) const;
|
||||
@@ -764,12 +629,6 @@ namespace AlibabaCloud
|
||||
DescribeWhiteRuleListOutcome describeWhiteRuleList(const Model::DescribeWhiteRuleListRequest &request)const;
|
||||
void describeWhiteRuleListAsync(const Model::DescribeWhiteRuleListRequest& request, const DescribeWhiteRuleListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeWhiteRuleListOutcomeCallable describeWhiteRuleListCallable(const Model::DescribeWhiteRuleListRequest& request) const;
|
||||
DoQuickFieldOutcome doQuickField(const Model::DoQuickFieldRequest &request)const;
|
||||
void doQuickFieldAsync(const Model::DoQuickFieldRequest& request, const DoQuickFieldAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DoQuickFieldOutcomeCallable doQuickFieldCallable(const Model::DoQuickFieldRequest& request) const;
|
||||
DoSelfDelegateOutcome doSelfDelegate(const Model::DoSelfDelegateRequest &request)const;
|
||||
void doSelfDelegateAsync(const Model::DoSelfDelegateRequest& request, const DoSelfDelegateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DoSelfDelegateOutcomeCallable doSelfDelegateCallable(const Model::DoSelfDelegateRequest& request) const;
|
||||
EnableAccessForCloudSiemOutcome enableAccessForCloudSiem(const Model::EnableAccessForCloudSiemRequest &request)const;
|
||||
void enableAccessForCloudSiemAsync(const Model::EnableAccessForCloudSiemRequest& request, const EnableAccessForCloudSiemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EnableAccessForCloudSiemOutcomeCallable enableAccessForCloudSiemCallable(const Model::EnableAccessForCloudSiemRequest& request) const;
|
||||
@@ -779,15 +638,6 @@ namespace AlibabaCloud
|
||||
GetCapacityOutcome getCapacity(const Model::GetCapacityRequest &request)const;
|
||||
void getCapacityAsync(const Model::GetCapacityRequest& request, const GetCapacityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetCapacityOutcomeCallable getCapacityCallable(const Model::GetCapacityRequest& request) const;
|
||||
GetHistogramsOutcome getHistograms(const Model::GetHistogramsRequest &request)const;
|
||||
void getHistogramsAsync(const Model::GetHistogramsRequest& request, const GetHistogramsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetHistogramsOutcomeCallable getHistogramsCallable(const Model::GetHistogramsRequest& request) const;
|
||||
GetLogsOutcome getLogs(const Model::GetLogsRequest &request)const;
|
||||
void getLogsAsync(const Model::GetLogsRequest& request, const GetLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetLogsOutcomeCallable getLogsCallable(const Model::GetLogsRequest& request) const;
|
||||
GetQuickQueryOutcome getQuickQuery(const Model::GetQuickQueryRequest &request)const;
|
||||
void getQuickQueryAsync(const Model::GetQuickQueryRequest& request, const GetQuickQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetQuickQueryOutcomeCallable getQuickQueryCallable(const Model::GetQuickQueryRequest& request) const;
|
||||
GetStorageOutcome getStorage(const Model::GetStorageRequest &request)const;
|
||||
void getStorageAsync(const Model::GetStorageRequest& request, const GetStorageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetStorageOutcomeCallable getStorageCallable(const Model::GetStorageRequest& request) const;
|
||||
@@ -830,27 +680,18 @@ namespace AlibabaCloud
|
||||
ListDisposeStrategyOutcome listDisposeStrategy(const Model::ListDisposeStrategyRequest &request)const;
|
||||
void listDisposeStrategyAsync(const Model::ListDisposeStrategyRequest& request, const ListDisposeStrategyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDisposeStrategyOutcomeCallable listDisposeStrategyCallable(const Model::ListDisposeStrategyRequest& request) const;
|
||||
ListEntitiesOutcome listEntities(const Model::ListEntitiesRequest &request)const;
|
||||
void listEntitiesAsync(const Model::ListEntitiesRequest& request, const ListEntitiesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListEntitiesOutcomeCallable listEntitiesCallable(const Model::ListEntitiesRequest& request) const;
|
||||
ListImportedLogsByProdOutcome listImportedLogsByProd(const Model::ListImportedLogsByProdRequest &request)const;
|
||||
void listImportedLogsByProdAsync(const Model::ListImportedLogsByProdRequest& request, const ListImportedLogsByProdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListImportedLogsByProdOutcomeCallable listImportedLogsByProdCallable(const Model::ListImportedLogsByProdRequest& request) const;
|
||||
ListOperationOutcome listOperation(const Model::ListOperationRequest &request)const;
|
||||
void listOperationAsync(const Model::ListOperationRequest& request, const ListOperationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListOperationOutcomeCallable listOperationCallable(const Model::ListOperationRequest& request) const;
|
||||
ListProjectLogStoresOutcome listProjectLogStores(const Model::ListProjectLogStoresRequest &request)const;
|
||||
void listProjectLogStoresAsync(const Model::ListProjectLogStoresRequest& request, const ListProjectLogStoresAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListProjectLogStoresOutcomeCallable listProjectLogStoresCallable(const Model::ListProjectLogStoresRequest& request) const;
|
||||
ListQuickQueryOutcome listQuickQuery(const Model::ListQuickQueryRequest &request)const;
|
||||
void listQuickQueryAsync(const Model::ListQuickQueryRequest& request, const ListQuickQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListQuickQueryOutcomeCallable listQuickQueryCallable(const Model::ListQuickQueryRequest& request) const;
|
||||
ListRdUsersOutcome listRdUsers(const Model::ListRdUsersRequest &request)const;
|
||||
void listRdUsersAsync(const Model::ListRdUsersRequest& request, const ListRdUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRdUsersOutcomeCallable listRdUsersCallable(const Model::ListRdUsersRequest& request) const;
|
||||
ListUserProdLogsOutcome listUserProdLogs(const Model::ListUserProdLogsRequest &request)const;
|
||||
void listUserProdLogsAsync(const Model::ListUserProdLogsRequest& request, const ListUserProdLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListUserProdLogsOutcomeCallable listUserProdLogsCallable(const Model::ListUserProdLogsRequest& request) const;
|
||||
ListUsersByProdOutcome listUsersByProd(const Model::ListUsersByProdRequest &request)const;
|
||||
void listUsersByProdAsync(const Model::ListUsersByProdRequest& request, const ListUsersByProdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListUsersByProdOutcomeCallable listUsersByProdCallable(const Model::ListUsersByProdRequest& request) const;
|
||||
ModifyBindAccountOutcome modifyBindAccount(const Model::ModifyBindAccountRequest &request)const;
|
||||
void modifyBindAccountAsync(const Model::ModifyBindAccountRequest& request, const ModifyBindAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyBindAccountOutcomeCallable modifyBindAccountCallable(const Model::ModifyBindAccountRequest& request) const;
|
||||
@@ -887,21 +728,12 @@ namespace AlibabaCloud
|
||||
RestoreCapacityOutcome restoreCapacity(const Model::RestoreCapacityRequest &request)const;
|
||||
void restoreCapacityAsync(const Model::RestoreCapacityRequest& request, const RestoreCapacityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RestoreCapacityOutcomeCallable restoreCapacityCallable(const Model::RestoreCapacityRequest& request) const;
|
||||
SaveQuickQueryOutcome saveQuickQuery(const Model::SaveQuickQueryRequest &request)const;
|
||||
void saveQuickQueryAsync(const Model::SaveQuickQueryRequest& request, const SaveQuickQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SaveQuickQueryOutcomeCallable saveQuickQueryCallable(const Model::SaveQuickQueryRequest& request) const;
|
||||
SetStorageOutcome setStorage(const Model::SetStorageRequest &request)const;
|
||||
void setStorageAsync(const Model::SetStorageRequest& request, const SetStorageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetStorageOutcomeCallable setStorageCallable(const Model::SetStorageRequest& request) const;
|
||||
ShowQuickAnalysisOutcome showQuickAnalysis(const Model::ShowQuickAnalysisRequest &request)const;
|
||||
void showQuickAnalysisAsync(const Model::ShowQuickAnalysisRequest& request, const ShowQuickAnalysisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ShowQuickAnalysisOutcomeCallable showQuickAnalysisCallable(const Model::ShowQuickAnalysisRequest& request) const;
|
||||
SubmitImportLogTasksOutcome submitImportLogTasks(const Model::SubmitImportLogTasksRequest &request)const;
|
||||
void submitImportLogTasksAsync(const Model::SubmitImportLogTasksRequest& request, const SubmitImportLogTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitImportLogTasksOutcomeCallable submitImportLogTasksCallable(const Model::SubmitImportLogTasksRequest& request) const;
|
||||
SubmitJobsOutcome submitJobs(const Model::SubmitJobsRequest &request)const;
|
||||
void submitJobsAsync(const Model::SubmitJobsRequest& request, const SubmitJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitJobsOutcomeCallable submitJobsCallable(const Model::SubmitJobsRequest& request) const;
|
||||
UpdateAutomateResponseConfigStatusOutcome updateAutomateResponseConfigStatus(const Model::UpdateAutomateResponseConfigStatusRequest &request)const;
|
||||
void updateAutomateResponseConfigStatusAsync(const Model::UpdateAutomateResponseConfigStatusRequest& request, const UpdateAutomateResponseConfigStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateAutomateResponseConfigStatusOutcomeCallable updateAutomateResponseConfigStatusCallable(const Model::UpdateAutomateResponseConfigStatusRequest& request) const;
|
||||
|
||||
@@ -1,88 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_CLOUD_SIEM_MODEL_BATCHJOBCHECKRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUD_SIEM_MODEL_BATCHJOBCHECKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloud-siem/Cloud_siemExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloud_siem
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUD_SIEM_EXPORT BatchJobCheckResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct ErrTaskListItem
|
||||
{
|
||||
struct ProductListItem
|
||||
{
|
||||
struct LogListItem
|
||||
{
|
||||
std::string projectNamePattern;
|
||||
std::string regionCode;
|
||||
std::string logStoreNamePattern;
|
||||
std::string productCode;
|
||||
std::string errorCode;
|
||||
std::string logCode;
|
||||
};
|
||||
std::vector<ProductListItem::LogListItem> logList;
|
||||
std::string productCode;
|
||||
};
|
||||
std::vector<ErrTaskListItem::ProductListItem> productList;
|
||||
long userId;
|
||||
};
|
||||
int taskCount;
|
||||
int finishCount;
|
||||
int failedCount;
|
||||
std::string configId;
|
||||
std::string folderId;
|
||||
std::string taskStatus;
|
||||
std::vector<ErrTaskListItem> errTaskList;
|
||||
};
|
||||
|
||||
|
||||
BatchJobCheckResult();
|
||||
explicit BatchJobCheckResult(const std::string &payload);
|
||||
~BatchJobCheckResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_BATCHJOBCHECKRESULT_H_
|
||||
@@ -32,20 +32,26 @@ public:
|
||||
~BindAccountRequest();
|
||||
std::string getCloudCode() const;
|
||||
void setCloudCode(const std::string &cloudCode);
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getAccountId() const;
|
||||
void setAccountId(const std::string &accountId);
|
||||
std::string getAccountName() const;
|
||||
void setAccountName(const std::string &accountName);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
std::string getAccessId() const;
|
||||
void setAccessId(const std::string &accessId);
|
||||
|
||||
private:
|
||||
std::string cloudCode_;
|
||||
long roleFor_;
|
||||
std::string accountId_;
|
||||
std::string accountName_;
|
||||
std::string regionId_;
|
||||
int roleType_;
|
||||
std::string accessId_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -32,15 +32,21 @@ public:
|
||||
~CloseDeliveryRequest();
|
||||
std::string getProductCode() const;
|
||||
void setProductCode(const std::string &productCode);
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getLogCode() const;
|
||||
void setLogCode(const std::string &logCode);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
long roleFor_;
|
||||
std::string logCode_;
|
||||
std::string regionId_;
|
||||
int roleType_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cloud_siem
|
||||
|
||||
@@ -30,13 +30,19 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DeleteAutomateResponseConfigRequest : publi
|
||||
public:
|
||||
DeleteAutomateResponseConfigRequest();
|
||||
~DeleteAutomateResponseConfigRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
long getId() const;
|
||||
void setId(long id);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
std::string regionId_;
|
||||
int roleType_;
|
||||
long id_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -32,10 +32,14 @@ public:
|
||||
~DeleteBindAccountRequest();
|
||||
std::string getCloudCode() const;
|
||||
void setCloudCode(const std::string &cloudCode);
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getAccountId() const;
|
||||
void setAccountId(const std::string &accountId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
long getBindId() const;
|
||||
void setBindId(long bindId);
|
||||
std::string getAccessId() const;
|
||||
@@ -43,8 +47,10 @@ public:
|
||||
|
||||
private:
|
||||
std::string cloudCode_;
|
||||
long roleFor_;
|
||||
std::string accountId_;
|
||||
std::string regionId_;
|
||||
int roleType_;
|
||||
long bindId_;
|
||||
std::string accessId_;
|
||||
};
|
||||
|
||||
@@ -30,13 +30,19 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DeleteCustomizeRuleRequest : public RpcServ
|
||||
public:
|
||||
DeleteCustomizeRuleRequest();
|
||||
~DeleteCustomizeRuleRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
long getRuleId() const;
|
||||
void setRuleId(long ruleId);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
std::string regionId_;
|
||||
int roleType_;
|
||||
long ruleId_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -30,13 +30,19 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DeleteWhiteRuleListRequest : public RpcServ
|
||||
public:
|
||||
DeleteWhiteRuleListRequest();
|
||||
~DeleteWhiteRuleListRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
long getId() const;
|
||||
void setId(long id);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
std::string regionId_;
|
||||
int roleType_;
|
||||
long id_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -30,11 +30,17 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAggregateFunctionRequest : public R
|
||||
public:
|
||||
DescribeAggregateFunctionRequest();
|
||||
~DescribeAggregateFunctionRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
std::string regionId_;
|
||||
int roleType_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cloud_siem
|
||||
|
||||
@@ -30,13 +30,19 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertSceneByEventRequest : public R
|
||||
public:
|
||||
DescribeAlertSceneByEventRequest();
|
||||
~DescribeAlertSceneByEventRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
std::string getIncidentUuid() const;
|
||||
void setIncidentUuid(const std::string &incidentUuid);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
std::string regionId_;
|
||||
int roleType_;
|
||||
std::string incidentUuid_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -30,11 +30,17 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertSceneRequest : public RpcServi
|
||||
public:
|
||||
DescribeAlertSceneRequest();
|
||||
~DescribeAlertSceneRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
std::string regionId_;
|
||||
int roleType_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cloud_siem
|
||||
|
||||
@@ -30,18 +30,24 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertSourceRequest : public RpcServ
|
||||
public:
|
||||
DescribeAlertSourceRequest();
|
||||
~DescribeAlertSourceRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
long getStartTime() const;
|
||||
void setStartTime(long startTime);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
std::vector<std::string> getLevel() const;
|
||||
void setLevel(const std::vector<std::string> &level);
|
||||
long getEndTime() const;
|
||||
void setEndTime(long endTime);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
long startTime_;
|
||||
std::string regionId_;
|
||||
int roleType_;
|
||||
std::vector<std::string> level_;
|
||||
long endTime_;
|
||||
};
|
||||
|
||||
@@ -30,13 +30,19 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertSourceWithEventRequest : publi
|
||||
public:
|
||||
DescribeAlertSourceWithEventRequest();
|
||||
~DescribeAlertSourceWithEventRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
std::string getIncidentUuid() const;
|
||||
void setIncidentUuid(const std::string &incidentUuid);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
std::string regionId_;
|
||||
int roleType_;
|
||||
std::string incidentUuid_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -30,11 +30,20 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertTypeRequest : public RpcServic
|
||||
public:
|
||||
DescribeAlertTypeRequest();
|
||||
~DescribeAlertTypeRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
std::string getRuleType() const;
|
||||
void setRuleType(const std::string &ruleType);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
std::string regionId_;
|
||||
int roleType_;
|
||||
std::string ruleType_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cloud_siem
|
||||
|
||||
@@ -30,16 +30,25 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertsCountRequest : public RpcServ
|
||||
public:
|
||||
DescribeAlertsCountRequest();
|
||||
~DescribeAlertsCountRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
long getStartTime() const;
|
||||
void setStartTime(long startTime);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
std::string getQueryType() const;
|
||||
void setQueryType(const std::string &queryType);
|
||||
long getEndTime() const;
|
||||
void setEndTime(long endTime);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
long startTime_;
|
||||
std::string regionId_;
|
||||
int roleType_;
|
||||
std::string queryType_;
|
||||
long endTime_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
long high;
|
||||
long all;
|
||||
std::string countMap;
|
||||
long low;
|
||||
long medium;
|
||||
int productNum;
|
||||
|
||||
@@ -30,6 +30,16 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertsRequest : public RpcServiceRe
|
||||
public:
|
||||
DescribeAlertsRequest();
|
||||
~DescribeAlertsRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getAlertName() const;
|
||||
void setAlertName(const std::string &alertName);
|
||||
std::string getEntityName() const;
|
||||
void setEntityName(const std::string &entityName);
|
||||
std::string getAssetName() const;
|
||||
void setAssetName(const std::string &assetName);
|
||||
std::string getEntityId() const;
|
||||
void setEntityId(const std::string &entityId);
|
||||
std::string getSource() const;
|
||||
void setSource(const std::string &source);
|
||||
std::string getIsDefend() const;
|
||||
@@ -42,6 +52,8 @@ public:
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
std::vector<std::string> getLevel() const;
|
||||
void setLevel(const std::vector<std::string> &level);
|
||||
long getEndTime() const;
|
||||
@@ -50,21 +62,36 @@ public:
|
||||
void setAlertTitle(const std::string &alertTitle);
|
||||
int getCurrentPage() const;
|
||||
void setCurrentPage(int currentPage);
|
||||
std::string getAlertType() const;
|
||||
void setAlertType(const std::string &alertType);
|
||||
std::string getAlertUuid() const;
|
||||
void setAlertUuid(const std::string &alertUuid);
|
||||
std::string getAssetId() const;
|
||||
void setAssetId(const std::string &assetId);
|
||||
std::string getLabelType() const;
|
||||
void setLabelType(const std::string &labelType);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
std::string alertName_;
|
||||
std::string entityName_;
|
||||
std::string assetName_;
|
||||
std::string entityId_;
|
||||
std::string source_;
|
||||
std::string isDefend_;
|
||||
long startTime_;
|
||||
std::string subUserId_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
int roleType_;
|
||||
std::vector<std::string> level_;
|
||||
long endTime_;
|
||||
std::string alertTitle_;
|
||||
int currentPage_;
|
||||
std::string alertType_;
|
||||
std::string alertUuid_;
|
||||
std::string assetId_;
|
||||
std::string labelType_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cloud_siem
|
||||
|
||||
@@ -74,6 +74,8 @@ namespace AlibabaCloud
|
||||
std::string alertDescCode;
|
||||
std::string startTime;
|
||||
std::string logUuid;
|
||||
std::string entityList;
|
||||
std::string subUserName;
|
||||
std::string occurTime;
|
||||
std::string alertDesc;
|
||||
std::string gmtCreate;
|
||||
|
||||
@@ -30,25 +30,40 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertsWithEntityRequest : public Rp
|
||||
public:
|
||||
DescribeAlertsWithEntityRequest();
|
||||
~DescribeAlertsWithEntityRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
long getEntityId() const;
|
||||
void setEntityId(long entityId);
|
||||
long getStartTime() const;
|
||||
void setStartTime(long startTime);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
std::string getSophonTaskId() const;
|
||||
void setSophonTaskId(const std::string &sophonTaskId);
|
||||
long getEndTime() const;
|
||||
void setEndTime(long endTime);
|
||||
int getCurrentPage() const;
|
||||
void setCurrentPage(int currentPage);
|
||||
std::string getEntityUuid() const;
|
||||
void setEntityUuid(const std::string &entityUuid);
|
||||
std::string getIncidentUuid() const;
|
||||
void setIncidentUuid(const std::string &incidentUuid);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
long entityId_;
|
||||
long startTime_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
int roleType_;
|
||||
std::string sophonTaskId_;
|
||||
long endTime_;
|
||||
int currentPage_;
|
||||
std::string entityUuid_;
|
||||
std::string incidentUuid_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -74,6 +74,8 @@ namespace AlibabaCloud
|
||||
std::string alertDescCode;
|
||||
std::string startTime;
|
||||
std::string logUuid;
|
||||
std::string entityList;
|
||||
std::string subUserName;
|
||||
std::string occurTime;
|
||||
std::string alertDesc;
|
||||
std::string gmtCreate;
|
||||
|
||||
@@ -30,34 +30,64 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAlertsWithEventRequest : public Rpc
|
||||
public:
|
||||
DescribeAlertsWithEventRequest();
|
||||
~DescribeAlertsWithEventRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getAlertName() const;
|
||||
void setAlertName(const std::string &alertName);
|
||||
std::string getEntityName() const;
|
||||
void setEntityName(const std::string &entityName);
|
||||
std::string getAssetName() const;
|
||||
void setAssetName(const std::string &assetName);
|
||||
std::string getEntityId() const;
|
||||
void setEntityId(const std::string &entityId);
|
||||
std::string getSource() const;
|
||||
void setSource(const std::string &source);
|
||||
std::string getIsDefend() const;
|
||||
void setIsDefend(const std::string &isDefend);
|
||||
long getStartTime() const;
|
||||
void setStartTime(long startTime);
|
||||
long getSubUserId() const;
|
||||
void setSubUserId(long subUserId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
std::vector<std::string> getLevel() const;
|
||||
void setLevel(const std::vector<std::string> &level);
|
||||
long getEndTime() const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getAlertTitle() const;
|
||||
void setAlertTitle(const std::string &alertTitle);
|
||||
int getCurrentPage() const;
|
||||
void setCurrentPage(int currentPage);
|
||||
std::string getAlertType() const;
|
||||
void setAlertType(const std::string &alertType);
|
||||
std::string getAssetId() const;
|
||||
void setAssetId(const std::string &assetId);
|
||||
std::string getIncidentUuid() const;
|
||||
void setIncidentUuid(const std::string &incidentUuid);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
std::string alertName_;
|
||||
std::string entityName_;
|
||||
std::string assetName_;
|
||||
std::string entityId_;
|
||||
std::string source_;
|
||||
std::string isDefend_;
|
||||
long startTime_;
|
||||
long subUserId_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
int roleType_;
|
||||
std::vector<std::string> level_;
|
||||
long endTime_;
|
||||
std::string alertTitle_;
|
||||
int currentPage_;
|
||||
std::string alertType_;
|
||||
std::string assetId_;
|
||||
std::string incidentUuid_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -74,6 +74,8 @@ namespace AlibabaCloud
|
||||
std::string alertDescCode;
|
||||
std::string startTime;
|
||||
std::string logUuid;
|
||||
std::string entityList;
|
||||
std::string subUserName;
|
||||
std::string occurTime;
|
||||
std::string alertDesc;
|
||||
std::string gmtCreate;
|
||||
|
||||
@@ -1,80 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_CLOUD_SIEM_MODEL_DESCRIBEATTACKTIMELINERESULT_H_
|
||||
#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEATTACKTIMELINERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloud-siem/Cloud_siemExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloud_siem
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAttackTimeLineResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataItem
|
||||
{
|
||||
std::string cloudCode;
|
||||
std::string attCk;
|
||||
std::string alertName;
|
||||
std::string alertTypeEn;
|
||||
std::string logTime;
|
||||
std::string alertSrcProd;
|
||||
std::string alertSrcProdModule;
|
||||
std::string alertTypeCode;
|
||||
std::string assetName;
|
||||
long alertTime;
|
||||
std::string alertType;
|
||||
std::string alertTitle;
|
||||
std::string alertNameEn;
|
||||
std::string alertLevel;
|
||||
std::string assetList;
|
||||
std::string alertTitleEn;
|
||||
std::string alertNameCode;
|
||||
std::string assetId;
|
||||
std::string incidentUuid;
|
||||
std::string alertUuid;
|
||||
};
|
||||
|
||||
|
||||
DescribeAttackTimeLineResult();
|
||||
explicit DescribeAttackTimeLineResult(const std::string &payload);
|
||||
~DescribeAttackTimeLineResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<DataItem> getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<DataItem> data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEATTACKTIMELINERESULT_H_
|
||||
@@ -30,11 +30,17 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAutomateResponseConfigCounterReques
|
||||
public:
|
||||
DescribeAutomateResponseConfigCounterRequest();
|
||||
~DescribeAutomateResponseConfigCounterRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
std::string regionId_;
|
||||
int roleType_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cloud_siem
|
||||
|
||||
@@ -30,14 +30,20 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAutomateResponseConfigFeatureReques
|
||||
public:
|
||||
DescribeAutomateResponseConfigFeatureRequest();
|
||||
~DescribeAutomateResponseConfigFeatureRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getAutoResponseType() const;
|
||||
void setAutoResponseType(const std::string &autoResponseType);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
std::string regionId_;
|
||||
std::string autoResponseType_;
|
||||
int roleType_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cloud_siem
|
||||
|
||||
@@ -30,16 +30,22 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeAutomateResponseConfigPlayBooksRequ
|
||||
public:
|
||||
DescribeAutomateResponseConfigPlayBooksRequest();
|
||||
~DescribeAutomateResponseConfigPlayBooksRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getAutoResponseType() const;
|
||||
void setAutoResponseType(const std::string &autoResponseType);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
std::string getEntityType() const;
|
||||
void setEntityType(const std::string &entityType);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
std::string regionId_;
|
||||
std::string autoResponseType_;
|
||||
int roleType_;
|
||||
std::string entityType_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -30,13 +30,19 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeCloudSiemAssetsCounterRequest : pub
|
||||
public:
|
||||
DescribeCloudSiemAssetsCounterRequest();
|
||||
~DescribeCloudSiemAssetsCounterRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
std::string getIncidentUuid() const;
|
||||
void setIncidentUuid(const std::string &incidentUuid);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
std::string regionId_;
|
||||
int roleType_;
|
||||
std::string incidentUuid_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -30,21 +30,33 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeCloudSiemAssetsRequest : public Rpc
|
||||
public:
|
||||
DescribeCloudSiemAssetsRequest();
|
||||
~DescribeCloudSiemAssetsRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getAssetName() const;
|
||||
void setAssetName(const std::string &assetName);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
std::string getAssetType() const;
|
||||
void setAssetType(const std::string &assetType);
|
||||
std::string getAssetUuid() const;
|
||||
void setAssetUuid(const std::string &assetUuid);
|
||||
int getCurrentPage() const;
|
||||
void setCurrentPage(int currentPage);
|
||||
std::string getIncidentUuid() const;
|
||||
void setIncidentUuid(const std::string &incidentUuid);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
std::string assetName_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
int roleType_;
|
||||
std::string assetType_;
|
||||
std::string assetUuid_;
|
||||
int currentPage_;
|
||||
std::string incidentUuid_;
|
||||
};
|
||||
|
||||
@@ -30,13 +30,19 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeCloudSiemEventDetailRequest : publi
|
||||
public:
|
||||
DescribeCloudSiemEventDetailRequest();
|
||||
~DescribeCloudSiemEventDetailRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
std::string getIncidentUuid() const;
|
||||
void setIncidentUuid(const std::string &incidentUuid);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
std::string regionId_;
|
||||
int roleType_;
|
||||
std::string incidentUuid_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -34,10 +34,19 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct AttckStage
|
||||
{
|
||||
std::string tacticName;
|
||||
std::string tacticId;
|
||||
int alertNum;
|
||||
};
|
||||
int status;
|
||||
std::vector<AttckStage> attckStages;
|
||||
std::string description;
|
||||
std::string incidentType;
|
||||
std::string descriptionEn;
|
||||
float threatScore;
|
||||
std::string ruleId;
|
||||
std::string gmtModified;
|
||||
int alertNum;
|
||||
int assetNum;
|
||||
@@ -49,6 +58,7 @@ namespace AlibabaCloud
|
||||
std::vector<std::string> dataSources;
|
||||
std::string threatLevel;
|
||||
std::string incidentNameEn;
|
||||
std::string referAccount;
|
||||
long aliuid;
|
||||
std::string incidentUuid;
|
||||
};
|
||||
|
||||
@@ -30,6 +30,8 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeCloudSiemEventsRequest : public Rpc
|
||||
public:
|
||||
DescribeCloudSiemEventsRequest();
|
||||
~DescribeCloudSiemEventsRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
long getStartTime() const;
|
||||
void setStartTime(long startTime);
|
||||
std::string getEventName() const;
|
||||
@@ -38,6 +40,8 @@ public:
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
std::string getOrderField() const;
|
||||
void setOrderField(const std::string &orderField);
|
||||
std::string getOrder() const;
|
||||
@@ -48,6 +52,8 @@ public:
|
||||
void setCurrentPage(int currentPage);
|
||||
std::vector<std::string> getThreadLevel() const;
|
||||
void setThreadLevel(const std::vector<std::string> &threadLevel);
|
||||
std::string getEntityUuid() const;
|
||||
void setEntityUuid(const std::string &entityUuid);
|
||||
std::string getAssetId() const;
|
||||
void setAssetId(const std::string &assetId);
|
||||
std::string getIncidentUuid() const;
|
||||
@@ -56,15 +62,18 @@ public:
|
||||
void setStatus(int status);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
long startTime_;
|
||||
std::string eventName_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
int roleType_;
|
||||
std::string orderField_;
|
||||
std::string order_;
|
||||
long endTime_;
|
||||
int currentPage_;
|
||||
std::vector<std::string> threadLevel_;
|
||||
std::string entityUuid_;
|
||||
std::string assetId_;
|
||||
std::string incidentUuid_;
|
||||
int status_;
|
||||
|
||||
@@ -42,10 +42,19 @@ namespace AlibabaCloud
|
||||
};
|
||||
struct ResponseDataItem
|
||||
{
|
||||
struct AttckStage
|
||||
{
|
||||
std::string tacticName;
|
||||
std::string tacticId;
|
||||
int alertNum;
|
||||
};
|
||||
int status;
|
||||
std::vector<ResponseDataItem::AttckStage> attckStages;
|
||||
std::string description;
|
||||
std::string incidentType;
|
||||
std::string descriptionEn;
|
||||
float threatScore;
|
||||
std::string ruleId;
|
||||
std::string gmtModified;
|
||||
int alertNum;
|
||||
int assetNum;
|
||||
@@ -57,6 +66,7 @@ namespace AlibabaCloud
|
||||
std::vector<std::string> dataSources;
|
||||
std::string threatLevel;
|
||||
std::string incidentNameEn;
|
||||
std::string referAccount;
|
||||
long aliuid;
|
||||
std::string incidentUuid;
|
||||
};
|
||||
|
||||
@@ -30,11 +30,17 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeCustomizeRuleCountRequest : public
|
||||
public:
|
||||
DescribeCustomizeRuleCountRequest();
|
||||
~DescribeCustomizeRuleCountRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
std::string regionId_;
|
||||
int roleType_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cloud_siem
|
||||
|
||||
@@ -34,10 +34,18 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
int customizeRuleNum;
|
||||
int inUseRuleNum;
|
||||
int highRuleNum;
|
||||
int unEventRuleNum;
|
||||
int expertRuleNum;
|
||||
int mediumRuleNum;
|
||||
int graphComputingRuleNum;
|
||||
int totalRuleNum;
|
||||
int lowRuleNum;
|
||||
int predefinedRuleNum;
|
||||
int aggregationRuleNum;
|
||||
int singleAlertRuleNum;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -30,13 +30,19 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeCustomizeRuleTestHistogramRequest :
|
||||
public:
|
||||
DescribeCustomizeRuleTestHistogramRequest();
|
||||
~DescribeCustomizeRuleTestHistogramRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
long getId() const;
|
||||
void setId(long id);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
std::string regionId_;
|
||||
int roleType_;
|
||||
long id_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -30,13 +30,19 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeCustomizeRuleTestRequest : public R
|
||||
public:
|
||||
DescribeCustomizeRuleTestRequest();
|
||||
~DescribeCustomizeRuleTestRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
long getId() const;
|
||||
void setId(long id);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
std::string regionId_;
|
||||
int roleType_;
|
||||
long id_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -30,22 +30,31 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeDisposeAndPlaybookRequest : public
|
||||
public:
|
||||
DescribeDisposeAndPlaybookRequest();
|
||||
~DescribeDisposeAndPlaybookRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
int getCurrentPage() const;
|
||||
void setCurrentPage(int currentPage);
|
||||
std::string getEntityType() const;
|
||||
void setEntityType(const std::string &entityType);
|
||||
std::string getEntityUuid() const;
|
||||
void setEntityUuid(const std::string &entityUuid);
|
||||
std::string getIncidentUuid() const;
|
||||
void setIncidentUuid(const std::string &incidentUuid);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
int roleType_;
|
||||
int currentPage_;
|
||||
std::string entityType_;
|
||||
std::string entityUuid_;
|
||||
std::string incidentUuid_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -45,14 +45,18 @@ namespace AlibabaCloud
|
||||
struct PlaybookListItem
|
||||
{
|
||||
std::string description;
|
||||
std::string uuid;
|
||||
bool wafPlaybook;
|
||||
std::string opCode;
|
||||
std::string displayName;
|
||||
std::string opLevel;
|
||||
std::string taskConfig;
|
||||
std::string available;
|
||||
std::vector<std::string> paramConfig;
|
||||
std::string name;
|
||||
};
|
||||
long entityId;
|
||||
std::string entityType;
|
||||
std::vector<std::string> opcodeSet;
|
||||
std::string dispose;
|
||||
std::vector<std::string> scope;
|
||||
|
||||
@@ -30,16 +30,22 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeDisposeStrategyPlaybookRequest : pu
|
||||
public:
|
||||
DescribeDisposeStrategyPlaybookRequest();
|
||||
~DescribeDisposeStrategyPlaybookRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
long getStartTime() const;
|
||||
void setStartTime(long startTime);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
long getEndTime() const;
|
||||
void setEndTime(long endTime);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
long startTime_;
|
||||
std::string regionId_;
|
||||
int roleType_;
|
||||
long endTime_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -32,10 +32,14 @@ public:
|
||||
~DescribeEntityInfoRequest();
|
||||
std::string getEntityIdentity() const;
|
||||
void setEntityIdentity(const std::string &entityIdentity);
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
long getEntityId() const;
|
||||
void setEntityId(long entityId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
std::string getSophonTaskId() const;
|
||||
void setSophonTaskId(const std::string &sophonTaskId);
|
||||
std::string getIncidentUuid() const;
|
||||
@@ -43,8 +47,10 @@ public:
|
||||
|
||||
private:
|
||||
std::string entityIdentity_;
|
||||
long roleFor_;
|
||||
long entityId_;
|
||||
std::string regionId_;
|
||||
int roleType_;
|
||||
std::string sophonTaskId_;
|
||||
std::string incidentUuid_;
|
||||
};
|
||||
|
||||
@@ -30,11 +30,23 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeEventCountByThreatLevelRequest : pu
|
||||
public:
|
||||
DescribeEventCountByThreatLevelRequest();
|
||||
~DescribeEventCountByThreatLevelRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
long getStartTime() const;
|
||||
void setStartTime(long startTime);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
long getEndTime() const;
|
||||
void setEndTime(long endTime);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
long startTime_;
|
||||
std::string regionId_;
|
||||
int roleType_;
|
||||
long endTime_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cloud_siem
|
||||
|
||||
@@ -30,18 +30,24 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeEventDisposeRequest : public RpcSer
|
||||
public:
|
||||
DescribeEventDisposeRequest();
|
||||
~DescribeEventDisposeRequest();
|
||||
long getRoleFor() const;
|
||||
void setRoleFor(long roleFor);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
int getRoleType() const;
|
||||
void setRoleType(int roleType);
|
||||
int getCurrentPage() const;
|
||||
void setCurrentPage(int currentPage);
|
||||
std::string getIncidentUuid() const;
|
||||
void setIncidentUuid(const std::string &incidentUuid);
|
||||
|
||||
private:
|
||||
long roleFor_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
int roleType_;
|
||||
int currentPage_;
|
||||
std::string incidentUuid_;
|
||||
};
|
||||
|
||||
@@ -30,11 +30,17 @@ class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeImportedLogCountRequest : public Rp
|
||||
public:
|
||||
DescribeImportedLogCountRequest();
|
||||
~DescribeImportedLogCountRequest();
|
||||
std::string getRoleFor() const;
|
||||
void setRoleFor(const std::string &roleFor);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getRoleType() const;
|
||||
void setRoleType(const std::string &roleType);
|
||||
|
||||
private:
|
||||
std::string roleFor_;
|
||||
std::string regionId_;
|
||||
std::string roleType_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cloud_siem
|
||||
|
||||
@@ -1,88 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_CLOUD_SIEM_MODEL_DESCRIBEJOBSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEJOBSTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloud-siem/Cloud_siemExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloud_siem
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUD_SIEM_EXPORT DescribeJobStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct ErrTaskListItem
|
||||
{
|
||||
struct ProductListItem
|
||||
{
|
||||
struct LogListItem
|
||||
{
|
||||
std::string projectNamePattern;
|
||||
std::string regionCode;
|
||||
std::string logStoreNamePattern;
|
||||
std::string productCode;
|
||||
std::string errorCode;
|
||||
std::string logCode;
|
||||
};
|
||||
std::vector<ProductListItem::LogListItem> logList;
|
||||
std::string productCode;
|
||||
};
|
||||
std::vector<ErrTaskListItem::ProductListItem> productList;
|
||||
long userId;
|
||||
};
|
||||
int taskCount;
|
||||
int finishCount;
|
||||
int failedCount;
|
||||
std::string configId;
|
||||
std::string folderId;
|
||||
std::string taskStatus;
|
||||
std::vector<ErrTaskListItem> errTaskList;
|
||||
};
|
||||
|
||||
|
||||
DescribeJobStatusResult();
|
||||
explicit DescribeJobStatusResult(const std::string &payload);
|
||||
~DescribeJobStatusResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUD_SIEM_MODEL_DESCRIBEJOBSTATUSRESULT_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user