JARVIS SDK Auto Released By mainri.mxy,Version:1.17.6
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2018-06-20 Version: 1.17.6
|
||||
1, Add InstanceList in product security information query.
|
||||
|
||||
2018-06-14 Version: 1.17.5
|
||||
1, Add passwordInherit.
|
||||
|
||||
|
||||
@@ -29,10 +29,14 @@ set(jarvis_public_header_model
|
||||
include/alibabacloud/jarvis/model/CreateAccessWhiteListGroupResult.h
|
||||
include/alibabacloud/jarvis/model/DescribeDdosDefenseInfoRequest.h
|
||||
include/alibabacloud/jarvis/model/DescribeDdosDefenseInfoResult.h
|
||||
include/alibabacloud/jarvis/model/DescribeAccessWhiteListSlbListRequest.h
|
||||
include/alibabacloud/jarvis/model/DescribeAccessWhiteListSlbListResult.h
|
||||
include/alibabacloud/jarvis/model/DescribePhoneInfoRequest.h
|
||||
include/alibabacloud/jarvis/model/DescribePhoneInfoResult.h
|
||||
include/alibabacloud/jarvis/model/DescribeAccessWhitelistEcsListRequest.h
|
||||
include/alibabacloud/jarvis/model/DescribeAccessWhitelistEcsListResult.h
|
||||
include/alibabacloud/jarvis/model/DescribeAccessWhiteListEipListRequest.h
|
||||
include/alibabacloud/jarvis/model/DescribeAccessWhiteListEipListResult.h
|
||||
include/alibabacloud/jarvis/model/DescribeResetRecordListRequest.h
|
||||
include/alibabacloud/jarvis/model/DescribeResetRecordListResult.h
|
||||
include/alibabacloud/jarvis/model/ModifyUidWhiteListAutoShareRequest.h
|
||||
@@ -70,10 +74,14 @@ set(jarvis_src
|
||||
src/model/CreateAccessWhiteListGroupResult.cc
|
||||
src/model/DescribeDdosDefenseInfoRequest.cc
|
||||
src/model/DescribeDdosDefenseInfoResult.cc
|
||||
src/model/DescribeAccessWhiteListSlbListRequest.cc
|
||||
src/model/DescribeAccessWhiteListSlbListResult.cc
|
||||
src/model/DescribePhoneInfoRequest.cc
|
||||
src/model/DescribePhoneInfoResult.cc
|
||||
src/model/DescribeAccessWhitelistEcsListRequest.cc
|
||||
src/model/DescribeAccessWhitelistEcsListResult.cc
|
||||
src/model/DescribeAccessWhiteListEipListRequest.cc
|
||||
src/model/DescribeAccessWhiteListEipListResult.cc
|
||||
src/model/DescribeResetRecordListRequest.cc
|
||||
src/model/DescribeResetRecordListResult.cc
|
||||
src/model/ModifyUidWhiteListAutoShareRequest.cc
|
||||
|
||||
@@ -30,10 +30,14 @@
|
||||
#include "model/CreateAccessWhiteListGroupResult.h"
|
||||
#include "model/DescribeDdosDefenseInfoRequest.h"
|
||||
#include "model/DescribeDdosDefenseInfoResult.h"
|
||||
#include "model/DescribeAccessWhiteListSlbListRequest.h"
|
||||
#include "model/DescribeAccessWhiteListSlbListResult.h"
|
||||
#include "model/DescribePhoneInfoRequest.h"
|
||||
#include "model/DescribePhoneInfoResult.h"
|
||||
#include "model/DescribeAccessWhitelistEcsListRequest.h"
|
||||
#include "model/DescribeAccessWhitelistEcsListResult.h"
|
||||
#include "model/DescribeAccessWhiteListEipListRequest.h"
|
||||
#include "model/DescribeAccessWhiteListEipListResult.h"
|
||||
#include "model/DescribeResetRecordListRequest.h"
|
||||
#include "model/DescribeResetRecordListResult.h"
|
||||
#include "model/ModifyUidWhiteListAutoShareRequest.h"
|
||||
@@ -81,12 +85,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeDdosDefenseInfoResult> DescribeDdosDefenseInfoOutcome;
|
||||
typedef std::future<DescribeDdosDefenseInfoOutcome> DescribeDdosDefenseInfoOutcomeCallable;
|
||||
typedef std::function<void(const JarvisClient*, const Model::DescribeDdosDefenseInfoRequest&, const DescribeDdosDefenseInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDdosDefenseInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAccessWhiteListSlbListResult> DescribeAccessWhiteListSlbListOutcome;
|
||||
typedef std::future<DescribeAccessWhiteListSlbListOutcome> DescribeAccessWhiteListSlbListOutcomeCallable;
|
||||
typedef std::function<void(const JarvisClient*, const Model::DescribeAccessWhiteListSlbListRequest&, const DescribeAccessWhiteListSlbListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAccessWhiteListSlbListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePhoneInfoResult> DescribePhoneInfoOutcome;
|
||||
typedef std::future<DescribePhoneInfoOutcome> DescribePhoneInfoOutcomeCallable;
|
||||
typedef std::function<void(const JarvisClient*, const Model::DescribePhoneInfoRequest&, const DescribePhoneInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePhoneInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAccessWhitelistEcsListResult> DescribeAccessWhitelistEcsListOutcome;
|
||||
typedef std::future<DescribeAccessWhitelistEcsListOutcome> DescribeAccessWhitelistEcsListOutcomeCallable;
|
||||
typedef std::function<void(const JarvisClient*, const Model::DescribeAccessWhitelistEcsListRequest&, const DescribeAccessWhitelistEcsListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAccessWhitelistEcsListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAccessWhiteListEipListResult> DescribeAccessWhiteListEipListOutcome;
|
||||
typedef std::future<DescribeAccessWhiteListEipListOutcome> DescribeAccessWhiteListEipListOutcomeCallable;
|
||||
typedef std::function<void(const JarvisClient*, const Model::DescribeAccessWhiteListEipListRequest&, const DescribeAccessWhiteListEipListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAccessWhiteListEipListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeResetRecordListResult> DescribeResetRecordListOutcome;
|
||||
typedef std::future<DescribeResetRecordListOutcome> DescribeResetRecordListOutcomeCallable;
|
||||
typedef std::function<void(const JarvisClient*, const Model::DescribeResetRecordListRequest&, const DescribeResetRecordListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeResetRecordListAsyncHandler;
|
||||
@@ -143,12 +153,18 @@ namespace AlibabaCloud
|
||||
DescribeDdosDefenseInfoOutcome describeDdosDefenseInfo(const Model::DescribeDdosDefenseInfoRequest &request)const;
|
||||
void describeDdosDefenseInfoAsync(const Model::DescribeDdosDefenseInfoRequest& request, const DescribeDdosDefenseInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDdosDefenseInfoOutcomeCallable describeDdosDefenseInfoCallable(const Model::DescribeDdosDefenseInfoRequest& request) const;
|
||||
DescribeAccessWhiteListSlbListOutcome describeAccessWhiteListSlbList(const Model::DescribeAccessWhiteListSlbListRequest &request)const;
|
||||
void describeAccessWhiteListSlbListAsync(const Model::DescribeAccessWhiteListSlbListRequest& request, const DescribeAccessWhiteListSlbListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAccessWhiteListSlbListOutcomeCallable describeAccessWhiteListSlbListCallable(const Model::DescribeAccessWhiteListSlbListRequest& 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;
|
||||
DescribeAccessWhitelistEcsListOutcome describeAccessWhitelistEcsList(const Model::DescribeAccessWhitelistEcsListRequest &request)const;
|
||||
void describeAccessWhitelistEcsListAsync(const Model::DescribeAccessWhitelistEcsListRequest& request, const DescribeAccessWhitelistEcsListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAccessWhitelistEcsListOutcomeCallable describeAccessWhitelistEcsListCallable(const Model::DescribeAccessWhitelistEcsListRequest& request) const;
|
||||
DescribeAccessWhiteListEipListOutcome describeAccessWhiteListEipList(const Model::DescribeAccessWhiteListEipListRequest &request)const;
|
||||
void describeAccessWhiteListEipListAsync(const Model::DescribeAccessWhiteListEipListRequest& request, const DescribeAccessWhiteListEipListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAccessWhiteListEipListOutcomeCallable describeAccessWhiteListEipListCallable(const Model::DescribeAccessWhiteListEipListRequest& request) const;
|
||||
DescribeResetRecordListOutcome describeResetRecordList(const Model::DescribeResetRecordListRequest &request)const;
|
||||
void describeResetRecordListAsync(const Model::DescribeResetRecordListRequest& request, const DescribeResetRecordListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeResetRecordListOutcomeCallable describeResetRecordListCallable(const Model::DescribeResetRecordListRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTEIPLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTEIPLISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/jarvis/JarvisExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Jarvis
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_JARVIS_EXPORT DescribeAccessWhiteListEipListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeAccessWhiteListEipListRequest();
|
||||
~DescribeAccessWhiteListEipListRequest();
|
||||
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getSourceCode()const;
|
||||
void setSourceCode(const std::string& sourceCode);
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
std::string lang_;
|
||||
std::string sourceCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTEIPLISTREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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_JARVIS_MODEL_DESCRIBEACCESSWHITELISTEIPLISTRESULT_H_
|
||||
#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTEIPLISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/jarvis/JarvisExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Jarvis
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_JARVIS_EXPORT DescribeAccessWhiteListEipListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Ecs
|
||||
{
|
||||
std::string instanceName;
|
||||
std::string instanceId;
|
||||
std::string iP;
|
||||
};
|
||||
|
||||
|
||||
DescribeAccessWhiteListEipListResult();
|
||||
explicit DescribeAccessWhiteListEipListResult(const std::string &payload);
|
||||
~DescribeAccessWhiteListEipListResult();
|
||||
int getTotalCount()const;
|
||||
std::vector<Ecs> getEcsList()const;
|
||||
std::string getModule()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
std::vector<Ecs> ecsList_;
|
||||
std::string module_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTEIPLISTRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTSLBLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTSLBLISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/jarvis/JarvisExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Jarvis
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_JARVIS_EXPORT DescribeAccessWhiteListSlbListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeAccessWhiteListSlbListRequest();
|
||||
~DescribeAccessWhiteListSlbListRequest();
|
||||
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getSourceCode()const;
|
||||
void setSourceCode(const std::string& sourceCode);
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
std::string lang_;
|
||||
std::string sourceCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTSLBLISTREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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_JARVIS_MODEL_DESCRIBEACCESSWHITELISTSLBLISTRESULT_H_
|
||||
#define ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTSLBLISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/jarvis/JarvisExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Jarvis
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_JARVIS_EXPORT DescribeAccessWhiteListSlbListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Ecs
|
||||
{
|
||||
std::string instanceName;
|
||||
std::string instanceId;
|
||||
std::string iP;
|
||||
};
|
||||
|
||||
|
||||
DescribeAccessWhiteListSlbListResult();
|
||||
explicit DescribeAccessWhiteListSlbListResult(const std::string &payload);
|
||||
~DescribeAccessWhiteListSlbListResult();
|
||||
int getTotalCount()const;
|
||||
std::vector<Ecs> getEcsList()const;
|
||||
std::string getModule()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
std::vector<Ecs> ecsList_;
|
||||
std::string module_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_JARVIS_MODEL_DESCRIBEACCESSWHITELISTSLBLISTRESULT_H_
|
||||
@@ -54,14 +54,15 @@ namespace AlibabaCloud
|
||||
};
|
||||
int riskId;
|
||||
std::string status;
|
||||
std::string product;
|
||||
std::string riskDescribe;
|
||||
std::string ignoreTime;
|
||||
std::string tacticsName;
|
||||
std::string updateTime;
|
||||
std::vector<Data::EcsSecGroupRiskItem> ecsSecGroupRisk;
|
||||
std::string riskInstance;
|
||||
std::string product;
|
||||
std::string regionId;
|
||||
std::string riskDescribe;
|
||||
std::vector<std::string> instanceList;
|
||||
std::string riskType;
|
||||
std::vector<Data::RdsWhitelistRiskItem> rdsWhitelistRisk;
|
||||
};
|
||||
|
||||
@@ -195,6 +195,42 @@ JarvisClient::DescribeDdosDefenseInfoOutcomeCallable JarvisClient::describeDdosD
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
JarvisClient::DescribeAccessWhiteListSlbListOutcome JarvisClient::describeAccessWhiteListSlbList(const DescribeAccessWhiteListSlbListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAccessWhiteListSlbListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAccessWhiteListSlbListOutcome(DescribeAccessWhiteListSlbListResult(outcome.result()));
|
||||
else
|
||||
return DescribeAccessWhiteListSlbListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void JarvisClient::describeAccessWhiteListSlbListAsync(const DescribeAccessWhiteListSlbListRequest& request, const DescribeAccessWhiteListSlbListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAccessWhiteListSlbList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
JarvisClient::DescribeAccessWhiteListSlbListOutcomeCallable JarvisClient::describeAccessWhiteListSlbListCallable(const DescribeAccessWhiteListSlbListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAccessWhiteListSlbListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAccessWhiteListSlbList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
JarvisClient::DescribePhoneInfoOutcome JarvisClient::describePhoneInfo(const DescribePhoneInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -267,6 +303,42 @@ JarvisClient::DescribeAccessWhitelistEcsListOutcomeCallable JarvisClient::descri
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
JarvisClient::DescribeAccessWhiteListEipListOutcome JarvisClient::describeAccessWhiteListEipList(const DescribeAccessWhiteListEipListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAccessWhiteListEipListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAccessWhiteListEipListOutcome(DescribeAccessWhiteListEipListResult(outcome.result()));
|
||||
else
|
||||
return DescribeAccessWhiteListEipListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void JarvisClient::describeAccessWhiteListEipListAsync(const DescribeAccessWhiteListEipListRequest& request, const DescribeAccessWhiteListEipListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAccessWhiteListEipList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
JarvisClient::DescribeAccessWhiteListEipListOutcomeCallable JarvisClient::describeAccessWhiteListEipListCallable(const DescribeAccessWhiteListEipListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAccessWhiteListEipListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAccessWhiteListEipList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
JarvisClient::DescribeResetRecordListOutcome JarvisClient::describeResetRecordList(const DescribeResetRecordListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
60
jarvis/src/model/DescribeAccessWhiteListEipListRequest.cc
Normal file
60
jarvis/src/model/DescribeAccessWhiteListEipListRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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/jarvis/model/DescribeAccessWhiteListEipListRequest.h>
|
||||
|
||||
using AlibabaCloud::Jarvis::Model::DescribeAccessWhiteListEipListRequest;
|
||||
|
||||
DescribeAccessWhiteListEipListRequest::DescribeAccessWhiteListEipListRequest() :
|
||||
RpcServiceRequest("jarvis", "2018-02-06", "DescribeAccessWhiteListEipList")
|
||||
{}
|
||||
|
||||
DescribeAccessWhiteListEipListRequest::~DescribeAccessWhiteListEipListRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAccessWhiteListEipListRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeAccessWhiteListEipListRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeAccessWhiteListEipListRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeAccessWhiteListEipListRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeAccessWhiteListEipListRequest::getSourceCode()const
|
||||
{
|
||||
return sourceCode_;
|
||||
}
|
||||
|
||||
void DescribeAccessWhiteListEipListRequest::setSourceCode(const std::string& sourceCode)
|
||||
{
|
||||
sourceCode_ = sourceCode;
|
||||
setParameter("SourceCode", sourceCode);
|
||||
}
|
||||
|
||||
76
jarvis/src/model/DescribeAccessWhiteListEipListResult.cc
Normal file
76
jarvis/src/model/DescribeAccessWhiteListEipListResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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/jarvis/model/DescribeAccessWhiteListEipListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Jarvis;
|
||||
using namespace AlibabaCloud::Jarvis::Model;
|
||||
|
||||
DescribeAccessWhiteListEipListResult::DescribeAccessWhiteListEipListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAccessWhiteListEipListResult::DescribeAccessWhiteListEipListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAccessWhiteListEipListResult::~DescribeAccessWhiteListEipListResult()
|
||||
{}
|
||||
|
||||
void DescribeAccessWhiteListEipListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEcsList = value["EcsList"]["Ecs"];
|
||||
for (auto value : allEcsList)
|
||||
{
|
||||
Ecs ecsListObject;
|
||||
if(!value["InstanceName"].isNull())
|
||||
ecsListObject.instanceName = value["InstanceName"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
ecsListObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["IP"].isNull())
|
||||
ecsListObject.iP = value["IP"].asString();
|
||||
ecsList_.push_back(ecsListObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["module"].isNull())
|
||||
module_ = value["module"].asString();
|
||||
|
||||
}
|
||||
|
||||
int DescribeAccessWhiteListEipListResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeAccessWhiteListEipListResult::Ecs> DescribeAccessWhiteListEipListResult::getEcsList()const
|
||||
{
|
||||
return ecsList_;
|
||||
}
|
||||
|
||||
std::string DescribeAccessWhiteListEipListResult::getModule()const
|
||||
{
|
||||
return module_;
|
||||
}
|
||||
|
||||
60
jarvis/src/model/DescribeAccessWhiteListSlbListRequest.cc
Normal file
60
jarvis/src/model/DescribeAccessWhiteListSlbListRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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/jarvis/model/DescribeAccessWhiteListSlbListRequest.h>
|
||||
|
||||
using AlibabaCloud::Jarvis::Model::DescribeAccessWhiteListSlbListRequest;
|
||||
|
||||
DescribeAccessWhiteListSlbListRequest::DescribeAccessWhiteListSlbListRequest() :
|
||||
RpcServiceRequest("jarvis", "2018-02-06", "DescribeAccessWhiteListSlbList")
|
||||
{}
|
||||
|
||||
DescribeAccessWhiteListSlbListRequest::~DescribeAccessWhiteListSlbListRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAccessWhiteListSlbListRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeAccessWhiteListSlbListRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeAccessWhiteListSlbListRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeAccessWhiteListSlbListRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeAccessWhiteListSlbListRequest::getSourceCode()const
|
||||
{
|
||||
return sourceCode_;
|
||||
}
|
||||
|
||||
void DescribeAccessWhiteListSlbListRequest::setSourceCode(const std::string& sourceCode)
|
||||
{
|
||||
sourceCode_ = sourceCode;
|
||||
setParameter("SourceCode", sourceCode);
|
||||
}
|
||||
|
||||
76
jarvis/src/model/DescribeAccessWhiteListSlbListResult.cc
Normal file
76
jarvis/src/model/DescribeAccessWhiteListSlbListResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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/jarvis/model/DescribeAccessWhiteListSlbListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Jarvis;
|
||||
using namespace AlibabaCloud::Jarvis::Model;
|
||||
|
||||
DescribeAccessWhiteListSlbListResult::DescribeAccessWhiteListSlbListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAccessWhiteListSlbListResult::DescribeAccessWhiteListSlbListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAccessWhiteListSlbListResult::~DescribeAccessWhiteListSlbListResult()
|
||||
{}
|
||||
|
||||
void DescribeAccessWhiteListSlbListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEcsList = value["EcsList"]["Ecs"];
|
||||
for (auto value : allEcsList)
|
||||
{
|
||||
Ecs ecsListObject;
|
||||
if(!value["InstanceName"].isNull())
|
||||
ecsListObject.instanceName = value["InstanceName"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
ecsListObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["IP"].isNull())
|
||||
ecsListObject.iP = value["IP"].asString();
|
||||
ecsList_.push_back(ecsListObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["module"].isNull())
|
||||
module_ = value["module"].asString();
|
||||
|
||||
}
|
||||
|
||||
int DescribeAccessWhiteListSlbListResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeAccessWhiteListSlbListResult::Ecs> DescribeAccessWhiteListSlbListResult::getEcsList()const
|
||||
{
|
||||
return ecsList_;
|
||||
}
|
||||
|
||||
std::string DescribeAccessWhiteListSlbListResult::getModule()const
|
||||
{
|
||||
return module_;
|
||||
}
|
||||
|
||||
@@ -88,6 +88,9 @@ void DescribeRiskListDetailResult::parse(const std::string &payload)
|
||||
rdsWhitelistRiskObject.riskDetail = value["RiskDetail"].asString();
|
||||
dataListObject.rdsWhitelistRisk.push_back(rdsWhitelistRiskObject);
|
||||
}
|
||||
auto allInstanceList = value["InstanceList"]["InstanceList"];
|
||||
for (auto value : allInstanceList)
|
||||
dataListObject.instanceList.push_back(value.asString());
|
||||
dataList_.push_back(dataListObject);
|
||||
}
|
||||
auto pageInfoNode = value["PageInfo"];
|
||||
|
||||
Reference in New Issue
Block a user