Generate SDK by new Generator
This commit is contained in:
@@ -21,25 +21,25 @@ set(jarvis-public_public_header
|
||||
include/alibabacloud/jarvis-public/Jarvis_publicExport.h )
|
||||
|
||||
set(jarvis-public_public_header_model
|
||||
include/alibabacloud/jarvis-public/model/DescribeCountAttackEventRequest.h
|
||||
include/alibabacloud/jarvis-public/model/DescribeCountAttackEventResult.h
|
||||
include/alibabacloud/jarvis-public/model/DescribeAttackEventRequest.h
|
||||
include/alibabacloud/jarvis-public/model/DescribeAttackEventResult.h
|
||||
include/alibabacloud/jarvis-public/model/DescribePhoneInfoRequest.h
|
||||
include/alibabacloud/jarvis-public/model/DescribePhoneInfoResult.h
|
||||
include/alibabacloud/jarvis-public/model/DescribeAttackedIpRequest.h
|
||||
include/alibabacloud/jarvis-public/model/DescribeAttackedIpResult.h )
|
||||
include/alibabacloud/jarvis-public/model/DescribeAttackedIpResult.h
|
||||
include/alibabacloud/jarvis-public/model/DescribeCountAttackEventRequest.h
|
||||
include/alibabacloud/jarvis-public/model/DescribeCountAttackEventResult.h
|
||||
include/alibabacloud/jarvis-public/model/DescribePhoneInfoRequest.h
|
||||
include/alibabacloud/jarvis-public/model/DescribePhoneInfoResult.h )
|
||||
|
||||
set(jarvis-public_src
|
||||
src/Jarvis-publicClient.cc
|
||||
src/model/DescribeCountAttackEventRequest.cc
|
||||
src/model/DescribeCountAttackEventResult.cc
|
||||
src/model/DescribeAttackEventRequest.cc
|
||||
src/model/DescribeAttackEventResult.cc
|
||||
src/model/DescribePhoneInfoRequest.cc
|
||||
src/model/DescribePhoneInfoResult.cc
|
||||
src/model/DescribeAttackedIpRequest.cc
|
||||
src/model/DescribeAttackedIpResult.cc )
|
||||
src/model/DescribeAttackedIpResult.cc
|
||||
src/model/DescribeCountAttackEventRequest.cc
|
||||
src/model/DescribeCountAttackEventResult.cc
|
||||
src/model/DescribePhoneInfoRequest.cc
|
||||
src/model/DescribePhoneInfoResult.cc )
|
||||
|
||||
add_library(jarvis-public ${LIB_TYPE}
|
||||
${jarvis-public_public_header}
|
||||
|
||||
@@ -22,14 +22,14 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "Jarvis_publicExport.h"
|
||||
#include "model/DescribeCountAttackEventRequest.h"
|
||||
#include "model/DescribeCountAttackEventResult.h"
|
||||
#include "model/DescribeAttackEventRequest.h"
|
||||
#include "model/DescribeAttackEventResult.h"
|
||||
#include "model/DescribePhoneInfoRequest.h"
|
||||
#include "model/DescribePhoneInfoResult.h"
|
||||
#include "model/DescribeAttackedIpRequest.h"
|
||||
#include "model/DescribeAttackedIpResult.h"
|
||||
#include "model/DescribeCountAttackEventRequest.h"
|
||||
#include "model/DescribeCountAttackEventResult.h"
|
||||
#include "model/DescribePhoneInfoRequest.h"
|
||||
#include "model/DescribePhoneInfoResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -39,35 +39,35 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_JARVIS_PUBLIC_EXPORT Jarvis_publicClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::DescribeCountAttackEventResult> DescribeCountAttackEventOutcome;
|
||||
typedef std::future<DescribeCountAttackEventOutcome> DescribeCountAttackEventOutcomeCallable;
|
||||
typedef std::function<void(const Jarvis_publicClient*, const Model::DescribeCountAttackEventRequest&, const DescribeCountAttackEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCountAttackEventAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAttackEventResult> DescribeAttackEventOutcome;
|
||||
typedef std::future<DescribeAttackEventOutcome> DescribeAttackEventOutcomeCallable;
|
||||
typedef std::function<void(const Jarvis_publicClient*, const Model::DescribeAttackEventRequest&, const DescribeAttackEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAttackEventAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePhoneInfoResult> DescribePhoneInfoOutcome;
|
||||
typedef std::future<DescribePhoneInfoOutcome> DescribePhoneInfoOutcomeCallable;
|
||||
typedef std::function<void(const Jarvis_publicClient*, const Model::DescribePhoneInfoRequest&, const DescribePhoneInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePhoneInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAttackedIpResult> DescribeAttackedIpOutcome;
|
||||
typedef std::future<DescribeAttackedIpOutcome> DescribeAttackedIpOutcomeCallable;
|
||||
typedef std::function<void(const Jarvis_publicClient*, const Model::DescribeAttackedIpRequest&, const DescribeAttackedIpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAttackedIpAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCountAttackEventResult> DescribeCountAttackEventOutcome;
|
||||
typedef std::future<DescribeCountAttackEventOutcome> DescribeCountAttackEventOutcomeCallable;
|
||||
typedef std::function<void(const Jarvis_publicClient*, const Model::DescribeCountAttackEventRequest&, const DescribeCountAttackEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCountAttackEventAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePhoneInfoResult> DescribePhoneInfoOutcome;
|
||||
typedef std::future<DescribePhoneInfoOutcome> DescribePhoneInfoOutcomeCallable;
|
||||
typedef std::function<void(const Jarvis_publicClient*, const Model::DescribePhoneInfoRequest&, const DescribePhoneInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePhoneInfoAsyncHandler;
|
||||
|
||||
Jarvis_publicClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
Jarvis_publicClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
Jarvis_publicClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~Jarvis_publicClient();
|
||||
DescribeCountAttackEventOutcome describeCountAttackEvent(const Model::DescribeCountAttackEventRequest &request)const;
|
||||
void describeCountAttackEventAsync(const Model::DescribeCountAttackEventRequest& request, const DescribeCountAttackEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCountAttackEventOutcomeCallable describeCountAttackEventCallable(const Model::DescribeCountAttackEventRequest& request) const;
|
||||
DescribeAttackEventOutcome describeAttackEvent(const Model::DescribeAttackEventRequest &request)const;
|
||||
void describeAttackEventAsync(const Model::DescribeAttackEventRequest& request, const DescribeAttackEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAttackEventOutcomeCallable describeAttackEventCallable(const Model::DescribeAttackEventRequest& request) const;
|
||||
DescribePhoneInfoOutcome describePhoneInfo(const Model::DescribePhoneInfoRequest &request)const;
|
||||
void describePhoneInfoAsync(const Model::DescribePhoneInfoRequest& request, const DescribePhoneInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePhoneInfoOutcomeCallable describePhoneInfoCallable(const Model::DescribePhoneInfoRequest& request) const;
|
||||
DescribeAttackedIpOutcome describeAttackedIp(const Model::DescribeAttackedIpRequest &request)const;
|
||||
void describeAttackedIpAsync(const Model::DescribeAttackedIpRequest& request, const DescribeAttackedIpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAttackedIpOutcomeCallable describeAttackedIpCallable(const Model::DescribeAttackedIpRequest& request) const;
|
||||
DescribeCountAttackEventOutcome describeCountAttackEvent(const Model::DescribeCountAttackEventRequest &request)const;
|
||||
void describeCountAttackEventAsync(const Model::DescribeCountAttackEventRequest& request, const DescribeCountAttackEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCountAttackEventOutcomeCallable describeCountAttackEventCallable(const Model::DescribeCountAttackEventRequest& request) const;
|
||||
DescribePhoneInfoOutcome describePhoneInfo(const Model::DescribePhoneInfoRequest &request)const;
|
||||
void describePhoneInfoAsync(const Model::DescribePhoneInfoRequest& request, const DescribePhoneInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePhoneInfoOutcomeCallable describePhoneInfoCallable(const Model::DescribePhoneInfoRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -35,35 +35,35 @@ namespace AlibabaCloud
|
||||
DescribeAttackEventRequest();
|
||||
~DescribeAttackEventRequest();
|
||||
|
||||
int getStartTime()const;
|
||||
void setStartTime(int startTime);
|
||||
std::string getProductType()const;
|
||||
void setProductType(const std::string& productType);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getServerIpList()const;
|
||||
void setServerIpList(const std::string& serverIpList);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getServerIpList()const;
|
||||
void setServerIpList(const std::string& serverIpList);
|
||||
int getEndTime()const;
|
||||
void setEndTime(int endTime);
|
||||
int getCurrentPage()const;
|
||||
void setCurrentPage(int currentPage);
|
||||
int getStartTime()const;
|
||||
void setStartTime(int startTime);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getRegion()const;
|
||||
void setRegion(const std::string& region);
|
||||
std::string getProductType()const;
|
||||
void setProductType(const std::string& productType);
|
||||
|
||||
private:
|
||||
int startTime_;
|
||||
std::string productType_;
|
||||
std::string sourceIp_;
|
||||
std::string serverIpList_;
|
||||
int pageSize_;
|
||||
std::string lang_;
|
||||
std::string serverIpList_;
|
||||
int endTime_;
|
||||
int currentPage_;
|
||||
int startTime_;
|
||||
std::string lang_;
|
||||
std::string region_;
|
||||
std::string productType_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,35 +35,35 @@ namespace AlibabaCloud
|
||||
DescribeAttackedIpRequest();
|
||||
~DescribeAttackedIpRequest();
|
||||
|
||||
int getStartTime()const;
|
||||
void setStartTime(int startTime);
|
||||
std::string getProductType()const;
|
||||
void setProductType(const std::string& productType);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getServerIpList()const;
|
||||
void setServerIpList(const std::string& serverIpList);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getServerIpList()const;
|
||||
void setServerIpList(const std::string& serverIpList);
|
||||
int getEndTime()const;
|
||||
void setEndTime(int endTime);
|
||||
int getCurrentPage()const;
|
||||
void setCurrentPage(int currentPage);
|
||||
int getStartTime()const;
|
||||
void setStartTime(int startTime);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getRegion()const;
|
||||
void setRegion(const std::string& region);
|
||||
std::string getProductType()const;
|
||||
void setProductType(const std::string& productType);
|
||||
|
||||
private:
|
||||
int startTime_;
|
||||
std::string productType_;
|
||||
std::string sourceIp_;
|
||||
std::string serverIpList_;
|
||||
int pageSize_;
|
||||
std::string lang_;
|
||||
std::string serverIpList_;
|
||||
int endTime_;
|
||||
int currentPage_;
|
||||
int startTime_;
|
||||
std::string lang_;
|
||||
std::string region_;
|
||||
std::string productType_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,35 +35,35 @@ namespace AlibabaCloud
|
||||
DescribeCountAttackEventRequest();
|
||||
~DescribeCountAttackEventRequest();
|
||||
|
||||
int getStartTime()const;
|
||||
void setStartTime(int startTime);
|
||||
std::string getProductType()const;
|
||||
void setProductType(const std::string& productType);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getServerIpList()const;
|
||||
void setServerIpList(const std::string& serverIpList);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getServerIpList()const;
|
||||
void setServerIpList(const std::string& serverIpList);
|
||||
int getEndTime()const;
|
||||
void setEndTime(int endTime);
|
||||
int getCurrentPage()const;
|
||||
void setCurrentPage(int currentPage);
|
||||
int getStartTime()const;
|
||||
void setStartTime(int startTime);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getRegion()const;
|
||||
void setRegion(const std::string& region);
|
||||
std::string getProductType()const;
|
||||
void setProductType(const std::string& productType);
|
||||
|
||||
private:
|
||||
int startTime_;
|
||||
std::string productType_;
|
||||
std::string sourceIp_;
|
||||
std::string serverIpList_;
|
||||
int pageSize_;
|
||||
std::string lang_;
|
||||
std::string serverIpList_;
|
||||
int endTime_;
|
||||
int currentPage_;
|
||||
int startTime_;
|
||||
std::string lang_;
|
||||
std::string region_;
|
||||
std::string productType_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,20 +35,20 @@ namespace AlibabaCloud
|
||||
DescribePhoneInfoRequest();
|
||||
~DescribePhoneInfoRequest();
|
||||
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getPhoneNum()const;
|
||||
void setPhoneNum(const std::string& phoneNum);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getSourceCode()const;
|
||||
void setSourceCode(const std::string& sourceCode);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
std::string phoneNum_;
|
||||
std::string lang_;
|
||||
std::string sourceCode_;
|
||||
std::string sourceIp_;
|
||||
std::string lang_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -51,42 +51,6 @@ Jarvis_publicClient::Jarvis_publicClient(const std::string & accessKeyId, const
|
||||
Jarvis_publicClient::~Jarvis_publicClient()
|
||||
{}
|
||||
|
||||
Jarvis_publicClient::DescribeCountAttackEventOutcome Jarvis_publicClient::describeCountAttackEvent(const DescribeCountAttackEventRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCountAttackEventOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeCountAttackEventOutcome(DescribeCountAttackEventResult(outcome.result()));
|
||||
else
|
||||
return DescribeCountAttackEventOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Jarvis_publicClient::describeCountAttackEventAsync(const DescribeCountAttackEventRequest& request, const DescribeCountAttackEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeCountAttackEvent(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Jarvis_publicClient::DescribeCountAttackEventOutcomeCallable Jarvis_publicClient::describeCountAttackEventCallable(const DescribeCountAttackEventRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeCountAttackEventOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeCountAttackEvent(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Jarvis_publicClient::DescribeAttackEventOutcome Jarvis_publicClient::describeAttackEvent(const DescribeAttackEventRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -123,42 +87,6 @@ Jarvis_publicClient::DescribeAttackEventOutcomeCallable Jarvis_publicClient::des
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Jarvis_publicClient::DescribePhoneInfoOutcome Jarvis_publicClient::describePhoneInfo(const DescribePhoneInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribePhoneInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribePhoneInfoOutcome(DescribePhoneInfoResult(outcome.result()));
|
||||
else
|
||||
return DescribePhoneInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Jarvis_publicClient::describePhoneInfoAsync(const DescribePhoneInfoRequest& request, const DescribePhoneInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describePhoneInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Jarvis_publicClient::DescribePhoneInfoOutcomeCallable Jarvis_publicClient::describePhoneInfoCallable(const DescribePhoneInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribePhoneInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describePhoneInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Jarvis_publicClient::DescribeAttackedIpOutcome Jarvis_publicClient::describeAttackedIp(const DescribeAttackedIpRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -195,3 +123,75 @@ Jarvis_publicClient::DescribeAttackedIpOutcomeCallable Jarvis_publicClient::desc
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Jarvis_publicClient::DescribeCountAttackEventOutcome Jarvis_publicClient::describeCountAttackEvent(const DescribeCountAttackEventRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCountAttackEventOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeCountAttackEventOutcome(DescribeCountAttackEventResult(outcome.result()));
|
||||
else
|
||||
return DescribeCountAttackEventOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Jarvis_publicClient::describeCountAttackEventAsync(const DescribeCountAttackEventRequest& request, const DescribeCountAttackEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeCountAttackEvent(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Jarvis_publicClient::DescribeCountAttackEventOutcomeCallable Jarvis_publicClient::describeCountAttackEventCallable(const DescribeCountAttackEventRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeCountAttackEventOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeCountAttackEvent(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Jarvis_publicClient::DescribePhoneInfoOutcome Jarvis_publicClient::describePhoneInfo(const DescribePhoneInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribePhoneInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribePhoneInfoOutcome(DescribePhoneInfoResult(outcome.result()));
|
||||
else
|
||||
return DescribePhoneInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Jarvis_publicClient::describePhoneInfoAsync(const DescribePhoneInfoRequest& request, const DescribePhoneInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describePhoneInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Jarvis_publicClient::DescribePhoneInfoOutcomeCallable Jarvis_publicClient::describePhoneInfoCallable(const DescribePhoneInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribePhoneInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describePhoneInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,28 @@ DescribeAttackEventRequest::DescribeAttackEventRequest() :
|
||||
DescribeAttackEventRequest::~DescribeAttackEventRequest()
|
||||
{}
|
||||
|
||||
int DescribeAttackEventRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeAttackEventRequest::setStartTime(int startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string DescribeAttackEventRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
}
|
||||
|
||||
void DescribeAttackEventRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
std::string DescribeAttackEventRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
@@ -36,17 +58,6 @@ void DescribeAttackEventRequest::setSourceIp(const std::string& sourceIp)
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeAttackEventRequest::getServerIpList()const
|
||||
{
|
||||
return serverIpList_;
|
||||
}
|
||||
|
||||
void DescribeAttackEventRequest::setServerIpList(const std::string& serverIpList)
|
||||
{
|
||||
serverIpList_ = serverIpList;
|
||||
setCoreParameter("ServerIpList", serverIpList);
|
||||
}
|
||||
|
||||
int DescribeAttackEventRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
@@ -58,6 +69,28 @@ void DescribeAttackEventRequest::setPageSize(int pageSize)
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeAttackEventRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeAttackEventRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeAttackEventRequest::getServerIpList()const
|
||||
{
|
||||
return serverIpList_;
|
||||
}
|
||||
|
||||
void DescribeAttackEventRequest::setServerIpList(const std::string& serverIpList)
|
||||
{
|
||||
serverIpList_ = serverIpList;
|
||||
setCoreParameter("ServerIpList", serverIpList);
|
||||
}
|
||||
|
||||
int DescribeAttackEventRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
@@ -80,28 +113,6 @@ void DescribeAttackEventRequest::setCurrentPage(int currentPage)
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
int DescribeAttackEventRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeAttackEventRequest::setStartTime(int startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string DescribeAttackEventRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeAttackEventRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeAttackEventRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
@@ -113,14 +124,3 @@ void DescribeAttackEventRequest::setRegion(const std::string& region)
|
||||
setCoreParameter("Region", region);
|
||||
}
|
||||
|
||||
std::string DescribeAttackEventRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
}
|
||||
|
||||
void DescribeAttackEventRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ DescribeAttackEventResult::~DescribeAttackEventResult()
|
||||
|
||||
void DescribeAttackEventResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEventList = value["EventList"]["Event"];
|
||||
for (auto value : allEventList)
|
||||
|
||||
@@ -25,6 +25,28 @@ DescribeAttackedIpRequest::DescribeAttackedIpRequest() :
|
||||
DescribeAttackedIpRequest::~DescribeAttackedIpRequest()
|
||||
{}
|
||||
|
||||
int DescribeAttackedIpRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeAttackedIpRequest::setStartTime(int startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string DescribeAttackedIpRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
}
|
||||
|
||||
void DescribeAttackedIpRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
std::string DescribeAttackedIpRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
@@ -36,17 +58,6 @@ void DescribeAttackedIpRequest::setSourceIp(const std::string& sourceIp)
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeAttackedIpRequest::getServerIpList()const
|
||||
{
|
||||
return serverIpList_;
|
||||
}
|
||||
|
||||
void DescribeAttackedIpRequest::setServerIpList(const std::string& serverIpList)
|
||||
{
|
||||
serverIpList_ = serverIpList;
|
||||
setCoreParameter("ServerIpList", serverIpList);
|
||||
}
|
||||
|
||||
int DescribeAttackedIpRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
@@ -58,6 +69,28 @@ void DescribeAttackedIpRequest::setPageSize(int pageSize)
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeAttackedIpRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeAttackedIpRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeAttackedIpRequest::getServerIpList()const
|
||||
{
|
||||
return serverIpList_;
|
||||
}
|
||||
|
||||
void DescribeAttackedIpRequest::setServerIpList(const std::string& serverIpList)
|
||||
{
|
||||
serverIpList_ = serverIpList;
|
||||
setCoreParameter("ServerIpList", serverIpList);
|
||||
}
|
||||
|
||||
int DescribeAttackedIpRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
@@ -80,28 +113,6 @@ void DescribeAttackedIpRequest::setCurrentPage(int currentPage)
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
int DescribeAttackedIpRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeAttackedIpRequest::setStartTime(int startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string DescribeAttackedIpRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeAttackedIpRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeAttackedIpRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
@@ -113,14 +124,3 @@ void DescribeAttackedIpRequest::setRegion(const std::string& region)
|
||||
setCoreParameter("Region", region);
|
||||
}
|
||||
|
||||
std::string DescribeAttackedIpRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
}
|
||||
|
||||
void DescribeAttackedIpRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ DescribeAttackedIpResult::~DescribeAttackedIpResult()
|
||||
|
||||
void DescribeAttackedIpResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allIpList = value["IpList"]["IpList"];
|
||||
for (const auto &item : allIpList)
|
||||
|
||||
@@ -25,6 +25,28 @@ DescribeCountAttackEventRequest::DescribeCountAttackEventRequest() :
|
||||
DescribeCountAttackEventRequest::~DescribeCountAttackEventRequest()
|
||||
{}
|
||||
|
||||
int DescribeCountAttackEventRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeCountAttackEventRequest::setStartTime(int startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string DescribeCountAttackEventRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
}
|
||||
|
||||
void DescribeCountAttackEventRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
std::string DescribeCountAttackEventRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
@@ -36,17 +58,6 @@ void DescribeCountAttackEventRequest::setSourceIp(const std::string& sourceIp)
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeCountAttackEventRequest::getServerIpList()const
|
||||
{
|
||||
return serverIpList_;
|
||||
}
|
||||
|
||||
void DescribeCountAttackEventRequest::setServerIpList(const std::string& serverIpList)
|
||||
{
|
||||
serverIpList_ = serverIpList;
|
||||
setCoreParameter("ServerIpList", serverIpList);
|
||||
}
|
||||
|
||||
int DescribeCountAttackEventRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
@@ -58,6 +69,28 @@ void DescribeCountAttackEventRequest::setPageSize(int pageSize)
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeCountAttackEventRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeCountAttackEventRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeCountAttackEventRequest::getServerIpList()const
|
||||
{
|
||||
return serverIpList_;
|
||||
}
|
||||
|
||||
void DescribeCountAttackEventRequest::setServerIpList(const std::string& serverIpList)
|
||||
{
|
||||
serverIpList_ = serverIpList;
|
||||
setCoreParameter("ServerIpList", serverIpList);
|
||||
}
|
||||
|
||||
int DescribeCountAttackEventRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
@@ -80,28 +113,6 @@ void DescribeCountAttackEventRequest::setCurrentPage(int currentPage)
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
int DescribeCountAttackEventRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeCountAttackEventRequest::setStartTime(int startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string DescribeCountAttackEventRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeCountAttackEventRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeCountAttackEventRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
@@ -113,14 +124,3 @@ void DescribeCountAttackEventRequest::setRegion(const std::string& region)
|
||||
setCoreParameter("Region", region);
|
||||
}
|
||||
|
||||
std::string DescribeCountAttackEventRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
}
|
||||
|
||||
void DescribeCountAttackEventRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ DescribeCountAttackEventResult::~DescribeCountAttackEventResult()
|
||||
|
||||
void DescribeCountAttackEventResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Module"].isNull())
|
||||
module_ = value["Module"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ DescribePhoneInfoRequest::DescribePhoneInfoRequest() :
|
||||
DescribePhoneInfoRequest::~DescribePhoneInfoRequest()
|
||||
{}
|
||||
|
||||
std::string DescribePhoneInfoRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribePhoneInfoRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribePhoneInfoRequest::getPhoneNum()const
|
||||
{
|
||||
return phoneNum_;
|
||||
@@ -47,17 +36,6 @@ void DescribePhoneInfoRequest::setPhoneNum(const std::string& phoneNum)
|
||||
setCoreParameter("PhoneNum", phoneNum);
|
||||
}
|
||||
|
||||
std::string DescribePhoneInfoRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribePhoneInfoRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribePhoneInfoRequest::getSourceCode()const
|
||||
{
|
||||
return sourceCode_;
|
||||
@@ -69,3 +47,25 @@ void DescribePhoneInfoRequest::setSourceCode(const std::string& sourceCode)
|
||||
setCoreParameter("SourceCode", sourceCode);
|
||||
}
|
||||
|
||||
std::string DescribePhoneInfoRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribePhoneInfoRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribePhoneInfoRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribePhoneInfoRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ DescribePhoneInfoResult::~DescribePhoneInfoResult()
|
||||
|
||||
void DescribePhoneInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Module"].isNull())
|
||||
module_ = value["Module"].asString();
|
||||
|
||||
Reference in New Issue
Block a user