|
|
@@ -14,44 +14,44 @@
|
|
|
* limitations under the License.
|
|
|
*/
|
|
|
|
|
|
-#include <alibabacloud/jarvis-public/Jarvis-publicClient.h>
|
|
|
+#include <alibabacloud/jarvis-public/Jarvis_publicClient.h>
|
|
|
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
|
|
|
|
|
using namespace AlibabaCloud;
|
|
|
using namespace AlibabaCloud::Location;
|
|
|
-using namespace AlibabaCloud::Jarvis-public;
|
|
|
-using namespace AlibabaCloud::Jarvis-public::Model;
|
|
|
+using namespace AlibabaCloud::Jarvis_public;
|
|
|
+using namespace AlibabaCloud::Jarvis_public::Model;
|
|
|
|
|
|
namespace
|
|
|
{
|
|
|
const std::string SERVICE_NAME = "jarvis-public";
|
|
|
}
|
|
|
|
|
|
-Jarvis-publicClient::Jarvis-publicClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
|
|
+Jarvis_publicClient::Jarvis_publicClient(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, "jarvis-public");
|
|
|
+ endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
|
|
}
|
|
|
|
|
|
-Jarvis-publicClient::Jarvis-publicClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
|
|
+Jarvis_publicClient::Jarvis_publicClient(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, "jarvis-public");
|
|
|
+ endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
|
|
}
|
|
|
|
|
|
-Jarvis-publicClient::Jarvis-publicClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
|
|
+Jarvis_publicClient::Jarvis_publicClient(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, "jarvis-public");
|
|
|
+ endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
|
|
}
|
|
|
|
|
|
-Jarvis-publicClient::~Jarvis-publicClient()
|
|
|
+Jarvis_publicClient::~Jarvis_publicClient()
|
|
|
{}
|
|
|
|
|
|
-Jarvis-publicClient::DescribeCountAttackEventOutcome Jarvis-publicClient::describeCountAttackEvent(const DescribeCountAttackEventRequest &request) const
|
|
|
+Jarvis_publicClient::DescribeCountAttackEventOutcome Jarvis_publicClient::describeCountAttackEvent(const DescribeCountAttackEventRequest &request) const
|
|
|
{
|
|
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
|
if (!endpointOutcome.isSuccess())
|
|
|
@@ -65,7 +65,7 @@ Jarvis-publicClient::DescribeCountAttackEventOutcome Jarvis-publicClient::descri
|
|
|
return DescribeCountAttackEventOutcome(outcome.error());
|
|
|
}
|
|
|
|
|
|
-void Jarvis-publicClient::describeCountAttackEventAsync(const DescribeCountAttackEventRequest& request, const DescribeCountAttackEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
|
+void Jarvis_publicClient::describeCountAttackEventAsync(const DescribeCountAttackEventRequest& request, const DescribeCountAttackEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
|
{
|
|
|
auto fn = [this, request, handler, context]()
|
|
|
{
|
|
|
@@ -75,7 +75,7 @@ void Jarvis-publicClient::describeCountAttackEventAsync(const DescribeCountAttac
|
|
|
asyncExecute(new Runnable(fn));
|
|
|
}
|
|
|
|
|
|
-Jarvis-publicClient::DescribeCountAttackEventOutcomeCallable Jarvis-publicClient::describeCountAttackEventCallable(const DescribeCountAttackEventRequest &request) const
|
|
|
+Jarvis_publicClient::DescribeCountAttackEventOutcomeCallable Jarvis_publicClient::describeCountAttackEventCallable(const DescribeCountAttackEventRequest &request) const
|
|
|
{
|
|
|
auto task = std::make_shared<std::packaged_task<DescribeCountAttackEventOutcome()>>(
|
|
|
[this, request]()
|
|
|
@@ -87,7 +87,7 @@ Jarvis-publicClient::DescribeCountAttackEventOutcomeCallable Jarvis-publicClient
|
|
|
return task->get_future();
|
|
|
}
|
|
|
|
|
|
-Jarvis-publicClient::DescribeAttackEventOutcome Jarvis-publicClient::describeAttackEvent(const DescribeAttackEventRequest &request) const
|
|
|
+Jarvis_publicClient::DescribeAttackEventOutcome Jarvis_publicClient::describeAttackEvent(const DescribeAttackEventRequest &request) const
|
|
|
{
|
|
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
|
if (!endpointOutcome.isSuccess())
|
|
|
@@ -101,7 +101,7 @@ Jarvis-publicClient::DescribeAttackEventOutcome Jarvis-publicClient::describeAtt
|
|
|
return DescribeAttackEventOutcome(outcome.error());
|
|
|
}
|
|
|
|
|
|
-void Jarvis-publicClient::describeAttackEventAsync(const DescribeAttackEventRequest& request, const DescribeAttackEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
|
+void Jarvis_publicClient::describeAttackEventAsync(const DescribeAttackEventRequest& request, const DescribeAttackEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
|
{
|
|
|
auto fn = [this, request, handler, context]()
|
|
|
{
|
|
|
@@ -111,7 +111,7 @@ void Jarvis-publicClient::describeAttackEventAsync(const DescribeAttackEventRequ
|
|
|
asyncExecute(new Runnable(fn));
|
|
|
}
|
|
|
|
|
|
-Jarvis-publicClient::DescribeAttackEventOutcomeCallable Jarvis-publicClient::describeAttackEventCallable(const DescribeAttackEventRequest &request) const
|
|
|
+Jarvis_publicClient::DescribeAttackEventOutcomeCallable Jarvis_publicClient::describeAttackEventCallable(const DescribeAttackEventRequest &request) const
|
|
|
{
|
|
|
auto task = std::make_shared<std::packaged_task<DescribeAttackEventOutcome()>>(
|
|
|
[this, request]()
|
|
|
@@ -123,7 +123,7 @@ Jarvis-publicClient::DescribeAttackEventOutcomeCallable Jarvis-publicClient::des
|
|
|
return task->get_future();
|
|
|
}
|
|
|
|
|
|
-Jarvis-publicClient::DescribePhoneInfoOutcome Jarvis-publicClient::describePhoneInfo(const DescribePhoneInfoRequest &request) const
|
|
|
+Jarvis_publicClient::DescribePhoneInfoOutcome Jarvis_publicClient::describePhoneInfo(const DescribePhoneInfoRequest &request) const
|
|
|
{
|
|
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
|
if (!endpointOutcome.isSuccess())
|
|
|
@@ -137,7 +137,7 @@ Jarvis-publicClient::DescribePhoneInfoOutcome Jarvis-publicClient::describePhone
|
|
|
return DescribePhoneInfoOutcome(outcome.error());
|
|
|
}
|
|
|
|
|
|
-void Jarvis-publicClient::describePhoneInfoAsync(const DescribePhoneInfoRequest& request, const DescribePhoneInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
|
+void Jarvis_publicClient::describePhoneInfoAsync(const DescribePhoneInfoRequest& request, const DescribePhoneInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
|
{
|
|
|
auto fn = [this, request, handler, context]()
|
|
|
{
|
|
|
@@ -147,7 +147,7 @@ void Jarvis-publicClient::describePhoneInfoAsync(const DescribePhoneInfoRequest&
|
|
|
asyncExecute(new Runnable(fn));
|
|
|
}
|
|
|
|
|
|
-Jarvis-publicClient::DescribePhoneInfoOutcomeCallable Jarvis-publicClient::describePhoneInfoCallable(const DescribePhoneInfoRequest &request) const
|
|
|
+Jarvis_publicClient::DescribePhoneInfoOutcomeCallable Jarvis_publicClient::describePhoneInfoCallable(const DescribePhoneInfoRequest &request) const
|
|
|
{
|
|
|
auto task = std::make_shared<std::packaged_task<DescribePhoneInfoOutcome()>>(
|
|
|
[this, request]()
|
|
|
@@ -159,7 +159,7 @@ Jarvis-publicClient::DescribePhoneInfoOutcomeCallable Jarvis-publicClient::descr
|
|
|
return task->get_future();
|
|
|
}
|
|
|
|
|
|
-Jarvis-publicClient::DescribeAttackedIpOutcome Jarvis-publicClient::describeAttackedIp(const DescribeAttackedIpRequest &request) const
|
|
|
+Jarvis_publicClient::DescribeAttackedIpOutcome Jarvis_publicClient::describeAttackedIp(const DescribeAttackedIpRequest &request) const
|
|
|
{
|
|
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
|
if (!endpointOutcome.isSuccess())
|
|
|
@@ -173,7 +173,7 @@ Jarvis-publicClient::DescribeAttackedIpOutcome Jarvis-publicClient::describeAtta
|
|
|
return DescribeAttackedIpOutcome(outcome.error());
|
|
|
}
|
|
|
|
|
|
-void Jarvis-publicClient::describeAttackedIpAsync(const DescribeAttackedIpRequest& request, const DescribeAttackedIpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
|
+void Jarvis_publicClient::describeAttackedIpAsync(const DescribeAttackedIpRequest& request, const DescribeAttackedIpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
|
{
|
|
|
auto fn = [this, request, handler, context]()
|
|
|
{
|
|
|
@@ -183,7 +183,7 @@ void Jarvis-publicClient::describeAttackedIpAsync(const DescribeAttackedIpReques
|
|
|
asyncExecute(new Runnable(fn));
|
|
|
}
|
|
|
|
|
|
-Jarvis-publicClient::DescribeAttackedIpOutcomeCallable Jarvis-publicClient::describeAttackedIpCallable(const DescribeAttackedIpRequest &request) const
|
|
|
+Jarvis_publicClient::DescribeAttackedIpOutcomeCallable Jarvis_publicClient::describeAttackedIpCallable(const DescribeAttackedIpRequest &request) const
|
|
|
{
|
|
|
auto task = std::make_shared<std::packaged_task<DescribeAttackedIpOutcome()>>(
|
|
|
[this, request]()
|