Change RefreshAssets Public.
This commit is contained in:
@@ -305,6 +305,8 @@ set(sas_public_header_model
|
||||
include/alibabacloud/sas/model/DescribeVulDetailsResult.h
|
||||
include/alibabacloud/sas/model/DescribeVulExportInfoRequest.h
|
||||
include/alibabacloud/sas/model/DescribeVulExportInfoResult.h
|
||||
include/alibabacloud/sas/model/DescribeVulFixStatisticsRequest.h
|
||||
include/alibabacloud/sas/model/DescribeVulFixStatisticsResult.h
|
||||
include/alibabacloud/sas/model/DescribeVulListRequest.h
|
||||
include/alibabacloud/sas/model/DescribeVulListResult.h
|
||||
include/alibabacloud/sas/model/DescribeVulWhitelistRequest.h
|
||||
@@ -347,6 +349,8 @@ set(sas_public_header_model
|
||||
include/alibabacloud/sas/model/InstallBackupClientResult.h
|
||||
include/alibabacloud/sas/model/InstallCloudMonitorRequest.h
|
||||
include/alibabacloud/sas/model/InstallCloudMonitorResult.h
|
||||
include/alibabacloud/sas/model/ListAvailableHoneypotRequest.h
|
||||
include/alibabacloud/sas/model/ListAvailableHoneypotResult.h
|
||||
include/alibabacloud/sas/model/ListCheckInstanceResultRequest.h
|
||||
include/alibabacloud/sas/model/ListCheckInstanceResultResult.h
|
||||
include/alibabacloud/sas/model/ListCheckResultRequest.h
|
||||
@@ -750,6 +754,8 @@ set(sas_src
|
||||
src/model/DescribeVulDetailsResult.cc
|
||||
src/model/DescribeVulExportInfoRequest.cc
|
||||
src/model/DescribeVulExportInfoResult.cc
|
||||
src/model/DescribeVulFixStatisticsRequest.cc
|
||||
src/model/DescribeVulFixStatisticsResult.cc
|
||||
src/model/DescribeVulListRequest.cc
|
||||
src/model/DescribeVulListResult.cc
|
||||
src/model/DescribeVulWhitelistRequest.cc
|
||||
@@ -792,6 +798,8 @@ set(sas_src
|
||||
src/model/InstallBackupClientResult.cc
|
||||
src/model/InstallCloudMonitorRequest.cc
|
||||
src/model/InstallCloudMonitorResult.cc
|
||||
src/model/ListAvailableHoneypotRequest.cc
|
||||
src/model/ListAvailableHoneypotResult.cc
|
||||
src/model/ListCheckInstanceResultRequest.cc
|
||||
src/model/ListCheckInstanceResultResult.cc
|
||||
src/model/ListCheckResultRequest.cc
|
||||
|
||||
@@ -306,6 +306,8 @@
|
||||
#include "model/DescribeVulDetailsResult.h"
|
||||
#include "model/DescribeVulExportInfoRequest.h"
|
||||
#include "model/DescribeVulExportInfoResult.h"
|
||||
#include "model/DescribeVulFixStatisticsRequest.h"
|
||||
#include "model/DescribeVulFixStatisticsResult.h"
|
||||
#include "model/DescribeVulListRequest.h"
|
||||
#include "model/DescribeVulListResult.h"
|
||||
#include "model/DescribeVulWhitelistRequest.h"
|
||||
@@ -348,6 +350,8 @@
|
||||
#include "model/InstallBackupClientResult.h"
|
||||
#include "model/InstallCloudMonitorRequest.h"
|
||||
#include "model/InstallCloudMonitorResult.h"
|
||||
#include "model/ListAvailableHoneypotRequest.h"
|
||||
#include "model/ListAvailableHoneypotResult.h"
|
||||
#include "model/ListCheckInstanceResultRequest.h"
|
||||
#include "model/ListCheckInstanceResultResult.h"
|
||||
#include "model/ListCheckResultRequest.h"
|
||||
@@ -899,6 +903,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeVulExportInfoResult> DescribeVulExportInfoOutcome;
|
||||
typedef std::future<DescribeVulExportInfoOutcome> DescribeVulExportInfoOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::DescribeVulExportInfoRequest&, const DescribeVulExportInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVulExportInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeVulFixStatisticsResult> DescribeVulFixStatisticsOutcome;
|
||||
typedef std::future<DescribeVulFixStatisticsOutcome> DescribeVulFixStatisticsOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::DescribeVulFixStatisticsRequest&, const DescribeVulFixStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVulFixStatisticsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeVulListResult> DescribeVulListOutcome;
|
||||
typedef std::future<DescribeVulListOutcome> DescribeVulListOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::DescribeVulListRequest&, const DescribeVulListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVulListAsyncHandler;
|
||||
@@ -962,6 +969,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::InstallCloudMonitorResult> InstallCloudMonitorOutcome;
|
||||
typedef std::future<InstallCloudMonitorOutcome> InstallCloudMonitorOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::InstallCloudMonitorRequest&, const InstallCloudMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InstallCloudMonitorAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListAvailableHoneypotResult> ListAvailableHoneypotOutcome;
|
||||
typedef std::future<ListAvailableHoneypotOutcome> ListAvailableHoneypotOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::ListAvailableHoneypotRequest&, const ListAvailableHoneypotOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAvailableHoneypotAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListCheckInstanceResultResult> ListCheckInstanceResultOutcome;
|
||||
typedef std::future<ListCheckInstanceResultOutcome> ListCheckInstanceResultOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::ListCheckInstanceResultRequest&, const ListCheckInstanceResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCheckInstanceResultAsyncHandler;
|
||||
@@ -1567,6 +1577,9 @@ namespace AlibabaCloud
|
||||
DescribeVulExportInfoOutcome describeVulExportInfo(const Model::DescribeVulExportInfoRequest &request)const;
|
||||
void describeVulExportInfoAsync(const Model::DescribeVulExportInfoRequest& request, const DescribeVulExportInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeVulExportInfoOutcomeCallable describeVulExportInfoCallable(const Model::DescribeVulExportInfoRequest& request) const;
|
||||
DescribeVulFixStatisticsOutcome describeVulFixStatistics(const Model::DescribeVulFixStatisticsRequest &request)const;
|
||||
void describeVulFixStatisticsAsync(const Model::DescribeVulFixStatisticsRequest& request, const DescribeVulFixStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeVulFixStatisticsOutcomeCallable describeVulFixStatisticsCallable(const Model::DescribeVulFixStatisticsRequest& request) const;
|
||||
DescribeVulListOutcome describeVulList(const Model::DescribeVulListRequest &request)const;
|
||||
void describeVulListAsync(const Model::DescribeVulListRequest& request, const DescribeVulListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeVulListOutcomeCallable describeVulListCallable(const Model::DescribeVulListRequest& request) const;
|
||||
@@ -1630,6 +1643,9 @@ namespace AlibabaCloud
|
||||
InstallCloudMonitorOutcome installCloudMonitor(const Model::InstallCloudMonitorRequest &request)const;
|
||||
void installCloudMonitorAsync(const Model::InstallCloudMonitorRequest& request, const InstallCloudMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InstallCloudMonitorOutcomeCallable installCloudMonitorCallable(const Model::InstallCloudMonitorRequest& request) const;
|
||||
ListAvailableHoneypotOutcome listAvailableHoneypot(const Model::ListAvailableHoneypotRequest &request)const;
|
||||
void listAvailableHoneypotAsync(const Model::ListAvailableHoneypotRequest& request, const ListAvailableHoneypotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListAvailableHoneypotOutcomeCallable listAvailableHoneypotCallable(const Model::ListAvailableHoneypotRequest& request) const;
|
||||
ListCheckInstanceResultOutcome listCheckInstanceResult(const Model::ListCheckInstanceResultRequest &request)const;
|
||||
void listCheckInstanceResultAsync(const Model::ListCheckInstanceResultRequest& request, const ListCheckInstanceResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListCheckInstanceResultOutcomeCallable listCheckInstanceResultCallable(const Model::ListCheckInstanceResultRequest& request) const;
|
||||
|
||||
@@ -32,18 +32,26 @@ public:
|
||||
~DescribeAffectedMaliciousFileImagesRequest();
|
||||
std::string getRepoId() const;
|
||||
void setRepoId(const std::string &repoId);
|
||||
std::string getPod() const;
|
||||
void setPod(const std::string &pod);
|
||||
std::string getClusterName() const;
|
||||
void setClusterName(const std::string &clusterName);
|
||||
std::string getRepoNamespace() const;
|
||||
void setRepoNamespace(const std::string &repoNamespace);
|
||||
std::string getSourceIp() const;
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
std::string getImageDigest() const;
|
||||
void setImageDigest(const std::string &imageDigest);
|
||||
std::vector<std::string> getScanRange() const;
|
||||
void setScanRange(const std::vector<std::string> &scanRange);
|
||||
std::string getPageSize() const;
|
||||
void setPageSize(const std::string &pageSize);
|
||||
std::string getLang() const;
|
||||
void setLang(const std::string &lang);
|
||||
std::string getImageTag() const;
|
||||
void setImageTag(const std::string &imageTag);
|
||||
std::string getImage() const;
|
||||
void setImage(const std::string &image);
|
||||
std::string getMaliciousMd5() const;
|
||||
void setMaliciousMd5(const std::string &maliciousMd5);
|
||||
int getCurrentPage() const;
|
||||
@@ -52,10 +60,16 @@ public:
|
||||
void setClusterId(const std::string &clusterId);
|
||||
std::string getRepoName() const;
|
||||
void setRepoName(const std::string &repoName);
|
||||
std::string get_Namespace() const;
|
||||
void set_Namespace(const std::string &_namespace);
|
||||
std::string getRepoInstanceId() const;
|
||||
void setRepoInstanceId(const std::string &repoInstanceId);
|
||||
std::string getImageLayer() const;
|
||||
void setImageLayer(const std::string &imageLayer);
|
||||
std::string getContainerId() const;
|
||||
void setContainerId(const std::string &containerId);
|
||||
std::string getLevels() const;
|
||||
void setLevels(const std::string &levels);
|
||||
std::string getRepoRegionId() const;
|
||||
void setRepoRegionId(const std::string &repoRegionId);
|
||||
std::vector<std::string> getUuids() const;
|
||||
@@ -63,18 +77,25 @@ public:
|
||||
|
||||
private:
|
||||
std::string repoId_;
|
||||
std::string pod_;
|
||||
std::string clusterName_;
|
||||
std::string repoNamespace_;
|
||||
std::string sourceIp_;
|
||||
std::string imageDigest_;
|
||||
std::vector<std::string> scanRange_;
|
||||
std::string pageSize_;
|
||||
std::string lang_;
|
||||
std::string imageTag_;
|
||||
std::string image_;
|
||||
std::string maliciousMd5_;
|
||||
int currentPage_;
|
||||
std::string clusterId_;
|
||||
std::string repoName_;
|
||||
std::string _namespace_;
|
||||
std::string repoInstanceId_;
|
||||
std::string imageLayer_;
|
||||
std::string containerId_;
|
||||
std::string levels_;
|
||||
std::string repoRegionId_;
|
||||
std::vector<std::string> uuids_;
|
||||
};
|
||||
|
||||
@@ -46,13 +46,19 @@ namespace AlibabaCloud
|
||||
std::string highLight;
|
||||
std::string repoRegionId;
|
||||
long latestScanTimestamp;
|
||||
std::string pod;
|
||||
std::string digest;
|
||||
std::string clusterId;
|
||||
std::string maliciousSource;
|
||||
std::string repoName;
|
||||
std::string _namespace;
|
||||
std::string image;
|
||||
std::string imageUuid;
|
||||
std::string layer;
|
||||
std::string repoInstanceId;
|
||||
std::string containerId;
|
||||
long latestVerifyTimestamp;
|
||||
std::string clusterName;
|
||||
std::string level;
|
||||
std::string tag;
|
||||
std::string repoId;
|
||||
|
||||
@@ -40,6 +40,8 @@ public:
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
std::string getImageDigest() const;
|
||||
void setImageDigest(const std::string &imageDigest);
|
||||
std::vector<std::string> getScanRange() const;
|
||||
void setScanRange(const std::vector<std::string> &scanRange);
|
||||
std::string getPageSize() const;
|
||||
void setPageSize(const std::string &pageSize);
|
||||
std::string getLang() const;
|
||||
@@ -69,6 +71,7 @@ private:
|
||||
std::string repoNamespace_;
|
||||
std::string sourceIp_;
|
||||
std::string imageDigest_;
|
||||
std::vector<std::string> scanRange_;
|
||||
std::string pageSize_;
|
||||
std::string lang_;
|
||||
std::string imageTag_;
|
||||
|
||||
@@ -34,6 +34,8 @@ public:
|
||||
void setCriteria(const std::string &criteria);
|
||||
std::string getSourceIp() const;
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
std::vector<std::string> getScanRange() const;
|
||||
void setScanRange(const std::vector<std::string> &scanRange);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getCriteriaType() const;
|
||||
@@ -50,6 +52,7 @@ public:
|
||||
private:
|
||||
std::string criteria_;
|
||||
std::string sourceIp_;
|
||||
std::vector<std::string> scanRange_;
|
||||
int pageSize_;
|
||||
std::string criteriaType_;
|
||||
std::string lang_;
|
||||
|
||||
@@ -72,6 +72,8 @@ public:
|
||||
void setRepoNamespace(const std::string &repoNamespace);
|
||||
std::string getImageDigest() const;
|
||||
void setImageDigest(const std::string &imageDigest);
|
||||
std::vector<std::string> getScanRange() const;
|
||||
void setScanRange(const std::vector<std::string> &scanRange);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getLang() const;
|
||||
@@ -119,6 +121,7 @@ private:
|
||||
std::string remark_;
|
||||
std::string repoNamespace_;
|
||||
std::string imageDigest_;
|
||||
std::vector<std::string> scanRange_;
|
||||
int pageSize_;
|
||||
std::string lang_;
|
||||
long lastTsStart_;
|
||||
|
||||
@@ -30,6 +30,10 @@ class ALIBABACLOUD_SAS_EXPORT DescribeImageListWithBaselineNameRequest : public
|
||||
public:
|
||||
DescribeImageListWithBaselineNameRequest();
|
||||
~DescribeImageListWithBaselineNameRequest();
|
||||
std::string getPod() const;
|
||||
void setPod(const std::string &pod);
|
||||
std::string getClusterName() const;
|
||||
void setClusterName(const std::string &clusterName);
|
||||
std::string getCriteria() const;
|
||||
void setCriteria(const std::string &criteria);
|
||||
std::string getRepoNamespace() const;
|
||||
@@ -38,36 +42,50 @@ public:
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
std::string getImageDigest() const;
|
||||
void setImageDigest(const std::string &imageDigest);
|
||||
std::vector<std::string> getScanRange() const;
|
||||
void setScanRange(const std::vector<std::string> &scanRange);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getCriteriaType() const;
|
||||
void setCriteriaType(const std::string &criteriaType);
|
||||
std::string getLang() const;
|
||||
void setLang(const std::string &lang);
|
||||
std::string getImage() const;
|
||||
void setImage(const std::string &image);
|
||||
int getCurrentPage() const;
|
||||
void setCurrentPage(int currentPage);
|
||||
std::string getClusterId() const;
|
||||
void setClusterId(const std::string &clusterId);
|
||||
std::string getRepoName() const;
|
||||
void setRepoName(const std::string &repoName);
|
||||
std::string get_Namespace() const;
|
||||
void set_Namespace(const std::string &_namespace);
|
||||
std::string getBaselineNameKey() const;
|
||||
void setBaselineNameKey(const std::string &baselineNameKey);
|
||||
std::string getRepoInstanceId() const;
|
||||
void setRepoInstanceId(const std::string &repoInstanceId);
|
||||
std::string getContainerId() const;
|
||||
void setContainerId(const std::string &containerId);
|
||||
|
||||
private:
|
||||
std::string pod_;
|
||||
std::string clusterName_;
|
||||
std::string criteria_;
|
||||
std::string repoNamespace_;
|
||||
std::string sourceIp_;
|
||||
std::string imageDigest_;
|
||||
std::vector<std::string> scanRange_;
|
||||
int pageSize_;
|
||||
std::string criteriaType_;
|
||||
std::string lang_;
|
||||
std::string image_;
|
||||
int currentPage_;
|
||||
std::string clusterId_;
|
||||
std::string repoName_;
|
||||
std::string _namespace_;
|
||||
std::string baselineNameKey_;
|
||||
std::string repoInstanceId_;
|
||||
std::string containerId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Sas
|
||||
|
||||
@@ -41,23 +41,30 @@ namespace AlibabaCloud
|
||||
};
|
||||
struct ImageInfosItem
|
||||
{
|
||||
int noRiskImage;
|
||||
std::string repoNamespace;
|
||||
std::string digest;
|
||||
std::string instanceId;
|
||||
int imageSize;
|
||||
int totalItemCount;
|
||||
std::string repoName;
|
||||
std::string riskStatus;
|
||||
std::string image;
|
||||
std::string endpoints;
|
||||
std::string containerId;
|
||||
int middleRiskImage;
|
||||
std::string imageId;
|
||||
long imageUpdate;
|
||||
std::string clusterName;
|
||||
int noRiskImage;
|
||||
std::string repoNamespace;
|
||||
std::string pod;
|
||||
std::string digest;
|
||||
std::string instanceId;
|
||||
std::string clusterId;
|
||||
std::string repoName;
|
||||
std::string _namespace;
|
||||
std::string riskStatus;
|
||||
std::string uuid;
|
||||
long imageCreate;
|
||||
int lowRiskImage;
|
||||
std::string repoType;
|
||||
int middleRiskImage;
|
||||
std::string baselineType;
|
||||
int highRiskImage;
|
||||
std::string imageId;
|
||||
long imageUpdate;
|
||||
std::string tag;
|
||||
std::string regionId;
|
||||
std::string repoId;
|
||||
|
||||
@@ -30,6 +30,8 @@ class ALIBABACLOUD_SAS_EXPORT DescribeImageVulListRequest : public RpcServiceReq
|
||||
public:
|
||||
DescribeImageVulListRequest();
|
||||
~DescribeImageVulListRequest();
|
||||
std::string getClusterName() const;
|
||||
void setClusterName(const std::string &clusterName);
|
||||
std::string getType() const;
|
||||
void setType(const std::string &type);
|
||||
long getCreateTsStart() const;
|
||||
@@ -42,6 +44,8 @@ public:
|
||||
void setTag(const std::string &tag);
|
||||
long getModifyTsEnd() const;
|
||||
void setModifyTsEnd(long modifyTsEnd);
|
||||
std::string getImage() const;
|
||||
void setImage(const std::string &image);
|
||||
std::string getLevel() const;
|
||||
void setLevel(const std::string &level);
|
||||
std::string getResource() const;
|
||||
@@ -58,6 +62,8 @@ public:
|
||||
void setIds(const std::string &ids);
|
||||
long getCreateTsEnd() const;
|
||||
void setCreateTsEnd(long createTsEnd);
|
||||
std::string getContainerId() const;
|
||||
void setContainerId(const std::string &containerId);
|
||||
std::string getNecessity() const;
|
||||
void setNecessity(const std::string &necessity);
|
||||
std::string getUuids() const;
|
||||
@@ -68,6 +74,8 @@ public:
|
||||
void setStatusList(const std::string &statusList);
|
||||
std::string getTargetType() const;
|
||||
void setTargetType(const std::string &targetType);
|
||||
std::string getPod() const;
|
||||
void setPod(const std::string &pod);
|
||||
std::string getCveId() const;
|
||||
void setCveId(const std::string &cveId);
|
||||
std::string getRemark() const;
|
||||
@@ -78,6 +86,8 @@ public:
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getContainerFieldValue() const;
|
||||
void setContainerFieldValue(const std::string &containerFieldValue);
|
||||
std::vector<std::string> getScanRange() const;
|
||||
void setScanRange(const std::vector<std::string> &scanRange);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getDigest() const;
|
||||
@@ -96,18 +106,22 @@ public:
|
||||
void setBatchName(const std::string &batchName);
|
||||
std::string getRepoName() const;
|
||||
void setRepoName(const std::string &repoName);
|
||||
std::string get_Namespace() const;
|
||||
void set_Namespace(const std::string &_namespace);
|
||||
std::string getRepoInstanceId() const;
|
||||
void setRepoInstanceId(const std::string &repoInstanceId);
|
||||
std::string getRepoRegionId() const;
|
||||
void setRepoRegionId(const std::string &repoRegionId);
|
||||
|
||||
private:
|
||||
std::string clusterName_;
|
||||
std::string type_;
|
||||
long createTsStart_;
|
||||
std::string containerFieldName_;
|
||||
std::string sourceIp_;
|
||||
std::string tag_;
|
||||
long modifyTsEnd_;
|
||||
std::string image_;
|
||||
std::string level_;
|
||||
std::string resource_;
|
||||
std::string groupId_;
|
||||
@@ -116,16 +130,19 @@ private:
|
||||
std::string name_;
|
||||
std::string ids_;
|
||||
long createTsEnd_;
|
||||
std::string containerId_;
|
||||
std::string necessity_;
|
||||
std::string uuids_;
|
||||
std::string repoId_;
|
||||
std::string statusList_;
|
||||
std::string targetType_;
|
||||
std::string pod_;
|
||||
std::string cveId_;
|
||||
std::string remark_;
|
||||
std::string repoNamespace_;
|
||||
std::string regionId_;
|
||||
std::string containerFieldValue_;
|
||||
std::vector<std::string> scanRange_;
|
||||
int pageSize_;
|
||||
std::string digest_;
|
||||
long modifyTsStart_;
|
||||
@@ -135,6 +152,7 @@ private:
|
||||
std::string clusterId_;
|
||||
std::string batchName_;
|
||||
std::string repoName_;
|
||||
std::string _namespace_;
|
||||
std::string repoInstanceId_;
|
||||
std::string repoRegionId_;
|
||||
};
|
||||
|
||||
@@ -51,26 +51,32 @@ namespace AlibabaCloud
|
||||
std::vector<RpmEntity> rpmEntityList;
|
||||
std::string osRelease;
|
||||
};
|
||||
int status;
|
||||
int progress;
|
||||
std::string repoNamespace;
|
||||
std::string imageDigest;
|
||||
std::string repoName;
|
||||
long lastTs;
|
||||
std::string necessity;
|
||||
std::string image;
|
||||
std::string name;
|
||||
std::string type;
|
||||
long firstTs;
|
||||
long modifyTs;
|
||||
std::string related;
|
||||
std::string uuid;
|
||||
bool canUpdate;
|
||||
std::string containerId;
|
||||
std::string aliasName;
|
||||
std::string level;
|
||||
std::string tag;
|
||||
std::string clusterName;
|
||||
std::string canFix;
|
||||
ExtendContentJson extendContentJson;
|
||||
std::vector<std::string> layers;
|
||||
int status;
|
||||
int progress;
|
||||
std::string repoNamespace;
|
||||
std::string pod;
|
||||
std::string clusterId;
|
||||
std::string repoName;
|
||||
long lastTs;
|
||||
std::string necessity;
|
||||
std::string _namespace;
|
||||
std::string type;
|
||||
long firstTs;
|
||||
std::string related;
|
||||
std::string uuid;
|
||||
std::string level;
|
||||
std::string tag;
|
||||
long primaryId;
|
||||
};
|
||||
|
||||
|
||||
@@ -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_SAS_MODEL_DESCRIBEVULFIXSTATISTICSREQUEST_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_DESCRIBEVULFIXSTATISTICSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Sas {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_SAS_EXPORT DescribeVulFixStatisticsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeVulFixStatisticsRequest();
|
||||
~DescribeVulFixStatisticsRequest();
|
||||
std::string getSourceIp() const;
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Sas
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEVULFIXSTATISTICSREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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_SAS_MODEL_DESCRIBEVULFIXSTATISTICSRESULT_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_DESCRIBEVULFIXSTATISTICSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Sas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SAS_EXPORT DescribeVulFixStatisticsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Fix
|
||||
{
|
||||
int fixingNum;
|
||||
std::string type;
|
||||
int fixedTodayNum;
|
||||
int fixedTotalNum;
|
||||
int needFixNum;
|
||||
};
|
||||
|
||||
|
||||
DescribeVulFixStatisticsResult();
|
||||
explicit DescribeVulFixStatisticsResult(const std::string &payload);
|
||||
~DescribeVulFixStatisticsResult();
|
||||
std::vector<Fix> getFixStat()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Fix> fixStat_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEVULFIXSTATISTICSRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_SAS_MODEL_LISTAVAILABLEHONEYPOTREQUEST_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_LISTAVAILABLEHONEYPOTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Sas {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_SAS_EXPORT ListAvailableHoneypotRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListAvailableHoneypotRequest();
|
||||
~ListAvailableHoneypotRequest();
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getLang() const;
|
||||
void setLang(const std::string &lang);
|
||||
std::string getNodeId() const;
|
||||
void setNodeId(const std::string &nodeId);
|
||||
int getCurrentPage() const;
|
||||
void setCurrentPage(int currentPage);
|
||||
|
||||
private:
|
||||
int pageSize_;
|
||||
std::string lang_;
|
||||
std::string nodeId_;
|
||||
int currentPage_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Sas
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_LISTAVAILABLEHONEYPOTREQUEST_H_
|
||||
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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_SAS_MODEL_LISTAVAILABLEHONEYPOTRESULT_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_LISTAVAILABLEHONEYPOTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Sas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SAS_EXPORT ListAvailableHoneypotResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataItem
|
||||
{
|
||||
std::string honeypotImageName;
|
||||
std::string servicePort;
|
||||
std::string multiports;
|
||||
std::string _template;
|
||||
std::string honeypotImageType;
|
||||
std::string proto;
|
||||
std::string honeypotImageDisplayName;
|
||||
std::string honeypotImageId;
|
||||
std::string honeypotImageVersion;
|
||||
};
|
||||
|
||||
|
||||
ListAvailableHoneypotResult();
|
||||
explicit ListAvailableHoneypotResult(const std::string &payload);
|
||||
~ListAvailableHoneypotResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::vector<DataItem> getData()const;
|
||||
int getCount()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::vector<DataItem> data_;
|
||||
int count_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_LISTAVAILABLEHONEYPOTRESULT_H_
|
||||
@@ -5163,6 +5163,42 @@ SasClient::DescribeVulExportInfoOutcomeCallable SasClient::describeVulExportInfo
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeVulFixStatisticsOutcome SasClient::describeVulFixStatistics(const DescribeVulFixStatisticsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVulFixStatisticsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVulFixStatisticsOutcome(DescribeVulFixStatisticsResult(outcome.result()));
|
||||
else
|
||||
return DescribeVulFixStatisticsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeVulFixStatisticsAsync(const DescribeVulFixStatisticsRequest& request, const DescribeVulFixStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVulFixStatistics(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeVulFixStatisticsOutcomeCallable SasClient::describeVulFixStatisticsCallable(const DescribeVulFixStatisticsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVulFixStatisticsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVulFixStatistics(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeVulListOutcome SasClient::describeVulList(const DescribeVulListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5919,6 +5955,42 @@ SasClient::InstallCloudMonitorOutcomeCallable SasClient::installCloudMonitorCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::ListAvailableHoneypotOutcome SasClient::listAvailableHoneypot(const ListAvailableHoneypotRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListAvailableHoneypotOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListAvailableHoneypotOutcome(ListAvailableHoneypotResult(outcome.result()));
|
||||
else
|
||||
return ListAvailableHoneypotOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::listAvailableHoneypotAsync(const ListAvailableHoneypotRequest& request, const ListAvailableHoneypotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listAvailableHoneypot(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::ListAvailableHoneypotOutcomeCallable SasClient::listAvailableHoneypotCallable(const ListAvailableHoneypotRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListAvailableHoneypotOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listAvailableHoneypot(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::ListCheckInstanceResultOutcome SasClient::listCheckInstanceResult(const ListCheckInstanceResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -34,6 +34,24 @@ void DescribeAffectedMaliciousFileImagesRequest::setRepoId(const std::string &re
|
||||
setParameter(std::string("RepoId"), repoId);
|
||||
}
|
||||
|
||||
std::string DescribeAffectedMaliciousFileImagesRequest::getPod() const {
|
||||
return pod_;
|
||||
}
|
||||
|
||||
void DescribeAffectedMaliciousFileImagesRequest::setPod(const std::string &pod) {
|
||||
pod_ = pod;
|
||||
setParameter(std::string("Pod"), pod);
|
||||
}
|
||||
|
||||
std::string DescribeAffectedMaliciousFileImagesRequest::getClusterName() const {
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void DescribeAffectedMaliciousFileImagesRequest::setClusterName(const std::string &clusterName) {
|
||||
clusterName_ = clusterName;
|
||||
setParameter(std::string("ClusterName"), clusterName);
|
||||
}
|
||||
|
||||
std::string DescribeAffectedMaliciousFileImagesRequest::getRepoNamespace() const {
|
||||
return repoNamespace_;
|
||||
}
|
||||
@@ -61,6 +79,14 @@ void DescribeAffectedMaliciousFileImagesRequest::setImageDigest(const std::strin
|
||||
setParameter(std::string("ImageDigest"), imageDigest);
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeAffectedMaliciousFileImagesRequest::getScanRange() const {
|
||||
return scanRange_;
|
||||
}
|
||||
|
||||
void DescribeAffectedMaliciousFileImagesRequest::setScanRange(const std::vector<std::string> &scanRange) {
|
||||
scanRange_ = scanRange;
|
||||
}
|
||||
|
||||
std::string DescribeAffectedMaliciousFileImagesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
@@ -88,6 +114,15 @@ void DescribeAffectedMaliciousFileImagesRequest::setImageTag(const std::string &
|
||||
setParameter(std::string("ImageTag"), imageTag);
|
||||
}
|
||||
|
||||
std::string DescribeAffectedMaliciousFileImagesRequest::getImage() const {
|
||||
return image_;
|
||||
}
|
||||
|
||||
void DescribeAffectedMaliciousFileImagesRequest::setImage(const std::string &image) {
|
||||
image_ = image;
|
||||
setParameter(std::string("Image"), image);
|
||||
}
|
||||
|
||||
std::string DescribeAffectedMaliciousFileImagesRequest::getMaliciousMd5() const {
|
||||
return maliciousMd5_;
|
||||
}
|
||||
@@ -124,6 +159,15 @@ void DescribeAffectedMaliciousFileImagesRequest::setRepoName(const std::string &
|
||||
setParameter(std::string("RepoName"), repoName);
|
||||
}
|
||||
|
||||
std::string DescribeAffectedMaliciousFileImagesRequest::get_Namespace() const {
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void DescribeAffectedMaliciousFileImagesRequest::set_Namespace(const std::string &_namespace) {
|
||||
_namespace_ = _namespace;
|
||||
setParameter(std::string("Namespace"), _namespace);
|
||||
}
|
||||
|
||||
std::string DescribeAffectedMaliciousFileImagesRequest::getRepoInstanceId() const {
|
||||
return repoInstanceId_;
|
||||
}
|
||||
@@ -142,6 +186,24 @@ void DescribeAffectedMaliciousFileImagesRequest::setImageLayer(const std::string
|
||||
setParameter(std::string("ImageLayer"), imageLayer);
|
||||
}
|
||||
|
||||
std::string DescribeAffectedMaliciousFileImagesRequest::getContainerId() const {
|
||||
return containerId_;
|
||||
}
|
||||
|
||||
void DescribeAffectedMaliciousFileImagesRequest::setContainerId(const std::string &containerId) {
|
||||
containerId_ = containerId;
|
||||
setParameter(std::string("ContainerId"), containerId);
|
||||
}
|
||||
|
||||
std::string DescribeAffectedMaliciousFileImagesRequest::getLevels() const {
|
||||
return levels_;
|
||||
}
|
||||
|
||||
void DescribeAffectedMaliciousFileImagesRequest::setLevels(const std::string &levels) {
|
||||
levels_ = levels;
|
||||
setParameter(std::string("Levels"), levels);
|
||||
}
|
||||
|
||||
std::string DescribeAffectedMaliciousFileImagesRequest::getRepoRegionId() const {
|
||||
return repoRegionId_;
|
||||
}
|
||||
|
||||
@@ -79,6 +79,18 @@ void DescribeAffectedMaliciousFileImagesResult::parse(const std::string &payload
|
||||
affectedMaliciousFileImagesResponseObject.downloadUrl = valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["DownloadUrl"].asString();
|
||||
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["HighLight"].isNull())
|
||||
affectedMaliciousFileImagesResponseObject.highLight = valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["HighLight"].asString();
|
||||
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["ContainerId"].isNull())
|
||||
affectedMaliciousFileImagesResponseObject.containerId = valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["ContainerId"].asString();
|
||||
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["Image"].isNull())
|
||||
affectedMaliciousFileImagesResponseObject.image = valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["Image"].asString();
|
||||
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["Pod"].isNull())
|
||||
affectedMaliciousFileImagesResponseObject.pod = valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["Pod"].asString();
|
||||
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["ClusterId"].isNull())
|
||||
affectedMaliciousFileImagesResponseObject.clusterId = valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["ClusterId"].asString();
|
||||
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["ClusterName"].isNull())
|
||||
affectedMaliciousFileImagesResponseObject.clusterName = valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["ClusterName"].asString();
|
||||
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["MaliciousSource"].isNull())
|
||||
affectedMaliciousFileImagesResponseObject.maliciousSource = valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["MaliciousSource"].asString();
|
||||
affectedMaliciousFileImagesResponse_.push_back(affectedMaliciousFileImagesResponseObject);
|
||||
}
|
||||
auto pageInfoNode = value["PageInfo"];
|
||||
|
||||
@@ -70,6 +70,14 @@ void DescribeGroupedMaliciousFilesRequest::setImageDigest(const std::string &ima
|
||||
setParameter(std::string("ImageDigest"), imageDigest);
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeGroupedMaliciousFilesRequest::getScanRange() const {
|
||||
return scanRange_;
|
||||
}
|
||||
|
||||
void DescribeGroupedMaliciousFilesRequest::setScanRange(const std::vector<std::string> &scanRange) {
|
||||
scanRange_ = scanRange;
|
||||
}
|
||||
|
||||
std::string DescribeGroupedMaliciousFilesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,14 @@ void DescribeImageBaselineCheckSummaryRequest::setSourceIp(const std::string &so
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeImageBaselineCheckSummaryRequest::getScanRange() const {
|
||||
return scanRange_;
|
||||
}
|
||||
|
||||
void DescribeImageBaselineCheckSummaryRequest::setScanRange(const std::vector<std::string> &scanRange) {
|
||||
scanRange_ = scanRange;
|
||||
}
|
||||
|
||||
int DescribeImageBaselineCheckSummaryRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
@@ -214,6 +214,14 @@ void DescribeImageGroupedVulListRequest::setImageDigest(const std::string &image
|
||||
setParameter(std::string("ImageDigest"), imageDigest);
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeImageGroupedVulListRequest::getScanRange() const {
|
||||
return scanRange_;
|
||||
}
|
||||
|
||||
void DescribeImageGroupedVulListRequest::setScanRange(const std::vector<std::string> &scanRange) {
|
||||
scanRange_ = scanRange;
|
||||
}
|
||||
|
||||
int DescribeImageGroupedVulListRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,24 @@ DescribeImageListWithBaselineNameRequest::DescribeImageListWithBaselineNameReque
|
||||
|
||||
DescribeImageListWithBaselineNameRequest::~DescribeImageListWithBaselineNameRequest() {}
|
||||
|
||||
std::string DescribeImageListWithBaselineNameRequest::getPod() const {
|
||||
return pod_;
|
||||
}
|
||||
|
||||
void DescribeImageListWithBaselineNameRequest::setPod(const std::string &pod) {
|
||||
pod_ = pod;
|
||||
setParameter(std::string("Pod"), pod);
|
||||
}
|
||||
|
||||
std::string DescribeImageListWithBaselineNameRequest::getClusterName() const {
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void DescribeImageListWithBaselineNameRequest::setClusterName(const std::string &clusterName) {
|
||||
clusterName_ = clusterName;
|
||||
setParameter(std::string("ClusterName"), clusterName);
|
||||
}
|
||||
|
||||
std::string DescribeImageListWithBaselineNameRequest::getCriteria() const {
|
||||
return criteria_;
|
||||
}
|
||||
@@ -61,6 +79,14 @@ void DescribeImageListWithBaselineNameRequest::setImageDigest(const std::string
|
||||
setParameter(std::string("ImageDigest"), imageDigest);
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeImageListWithBaselineNameRequest::getScanRange() const {
|
||||
return scanRange_;
|
||||
}
|
||||
|
||||
void DescribeImageListWithBaselineNameRequest::setScanRange(const std::vector<std::string> &scanRange) {
|
||||
scanRange_ = scanRange;
|
||||
}
|
||||
|
||||
int DescribeImageListWithBaselineNameRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
@@ -88,6 +114,15 @@ void DescribeImageListWithBaselineNameRequest::setLang(const std::string &lang)
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
std::string DescribeImageListWithBaselineNameRequest::getImage() const {
|
||||
return image_;
|
||||
}
|
||||
|
||||
void DescribeImageListWithBaselineNameRequest::setImage(const std::string &image) {
|
||||
image_ = image;
|
||||
setParameter(std::string("Image"), image);
|
||||
}
|
||||
|
||||
int DescribeImageListWithBaselineNameRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
@@ -115,6 +150,15 @@ void DescribeImageListWithBaselineNameRequest::setRepoName(const std::string &re
|
||||
setParameter(std::string("RepoName"), repoName);
|
||||
}
|
||||
|
||||
std::string DescribeImageListWithBaselineNameRequest::get_Namespace() const {
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void DescribeImageListWithBaselineNameRequest::set_Namespace(const std::string &_namespace) {
|
||||
_namespace_ = _namespace;
|
||||
setParameter(std::string("Namespace"), _namespace);
|
||||
}
|
||||
|
||||
std::string DescribeImageListWithBaselineNameRequest::getBaselineNameKey() const {
|
||||
return baselineNameKey_;
|
||||
}
|
||||
@@ -133,3 +177,12 @@ void DescribeImageListWithBaselineNameRequest::setRepoInstanceId(const std::stri
|
||||
setParameter(std::string("RepoInstanceId"), repoInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeImageListWithBaselineNameRequest::getContainerId() const {
|
||||
return containerId_;
|
||||
}
|
||||
|
||||
void DescribeImageListWithBaselineNameRequest::setContainerId(const std::string &containerId) {
|
||||
containerId_ = containerId;
|
||||
setParameter(std::string("ContainerId"), containerId);
|
||||
}
|
||||
|
||||
|
||||
@@ -81,8 +81,22 @@ void DescribeImageListWithBaselineNameResult::parse(const std::string &payload)
|
||||
imageInfosObject.imageId = valueImageInfosImageInfosItem["ImageId"].asString();
|
||||
if(!valueImageInfosImageInfosItem["RepoName"].isNull())
|
||||
imageInfosObject.repoName = valueImageInfosImageInfosItem["RepoName"].asString();
|
||||
if(!valueImageInfosImageInfosItem["ClusterId"].isNull())
|
||||
imageInfosObject.clusterId = valueImageInfosImageInfosItem["ClusterId"].asString();
|
||||
if(!valueImageInfosImageInfosItem["ClusterName"].isNull())
|
||||
imageInfosObject.clusterName = valueImageInfosImageInfosItem["ClusterName"].asString();
|
||||
if(!valueImageInfosImageInfosItem["RepoNamespace"].isNull())
|
||||
imageInfosObject.repoNamespace = valueImageInfosImageInfosItem["RepoNamespace"].asString();
|
||||
if(!valueImageInfosImageInfosItem["Pod"].isNull())
|
||||
imageInfosObject.pod = valueImageInfosImageInfosItem["Pod"].asString();
|
||||
if(!valueImageInfosImageInfosItem["Namespace"].isNull())
|
||||
imageInfosObject._namespace = valueImageInfosImageInfosItem["Namespace"].asString();
|
||||
if(!valueImageInfosImageInfosItem["ContainerId"].isNull())
|
||||
imageInfosObject.containerId = valueImageInfosImageInfosItem["ContainerId"].asString();
|
||||
if(!valueImageInfosImageInfosItem["Image"].isNull())
|
||||
imageInfosObject.image = valueImageInfosImageInfosItem["Image"].asString();
|
||||
if(!valueImageInfosImageInfosItem["BaselineType"].isNull())
|
||||
imageInfosObject.baselineType = valueImageInfosImageInfosItem["BaselineType"].asString();
|
||||
imageInfos_.push_back(imageInfosObject);
|
||||
}
|
||||
auto pageInfoNode = value["PageInfo"];
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeImageVulListRequest::DescribeImageVulListRequest()
|
||||
|
||||
DescribeImageVulListRequest::~DescribeImageVulListRequest() {}
|
||||
|
||||
std::string DescribeImageVulListRequest::getClusterName() const {
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void DescribeImageVulListRequest::setClusterName(const std::string &clusterName) {
|
||||
clusterName_ = clusterName;
|
||||
setParameter(std::string("ClusterName"), clusterName);
|
||||
}
|
||||
|
||||
std::string DescribeImageVulListRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
@@ -79,6 +88,15 @@ void DescribeImageVulListRequest::setModifyTsEnd(long modifyTsEnd) {
|
||||
setParameter(std::string("ModifyTsEnd"), std::to_string(modifyTsEnd));
|
||||
}
|
||||
|
||||
std::string DescribeImageVulListRequest::getImage() const {
|
||||
return image_;
|
||||
}
|
||||
|
||||
void DescribeImageVulListRequest::setImage(const std::string &image) {
|
||||
image_ = image;
|
||||
setParameter(std::string("Image"), image);
|
||||
}
|
||||
|
||||
std::string DescribeImageVulListRequest::getLevel() const {
|
||||
return level_;
|
||||
}
|
||||
@@ -151,6 +169,15 @@ void DescribeImageVulListRequest::setCreateTsEnd(long createTsEnd) {
|
||||
setParameter(std::string("CreateTsEnd"), std::to_string(createTsEnd));
|
||||
}
|
||||
|
||||
std::string DescribeImageVulListRequest::getContainerId() const {
|
||||
return containerId_;
|
||||
}
|
||||
|
||||
void DescribeImageVulListRequest::setContainerId(const std::string &containerId) {
|
||||
containerId_ = containerId;
|
||||
setParameter(std::string("ContainerId"), containerId);
|
||||
}
|
||||
|
||||
std::string DescribeImageVulListRequest::getNecessity() const {
|
||||
return necessity_;
|
||||
}
|
||||
@@ -196,6 +223,15 @@ void DescribeImageVulListRequest::setTargetType(const std::string &targetType) {
|
||||
setParameter(std::string("TargetType"), targetType);
|
||||
}
|
||||
|
||||
std::string DescribeImageVulListRequest::getPod() const {
|
||||
return pod_;
|
||||
}
|
||||
|
||||
void DescribeImageVulListRequest::setPod(const std::string &pod) {
|
||||
pod_ = pod;
|
||||
setParameter(std::string("Pod"), pod);
|
||||
}
|
||||
|
||||
std::string DescribeImageVulListRequest::getCveId() const {
|
||||
return cveId_;
|
||||
}
|
||||
@@ -241,6 +277,14 @@ void DescribeImageVulListRequest::setContainerFieldValue(const std::string &cont
|
||||
setParameter(std::string("ContainerFieldValue"), containerFieldValue);
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeImageVulListRequest::getScanRange() const {
|
||||
return scanRange_;
|
||||
}
|
||||
|
||||
void DescribeImageVulListRequest::setScanRange(const std::vector<std::string> &scanRange) {
|
||||
scanRange_ = scanRange;
|
||||
}
|
||||
|
||||
int DescribeImageVulListRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
@@ -322,6 +366,15 @@ void DescribeImageVulListRequest::setRepoName(const std::string &repoName) {
|
||||
setParameter(std::string("RepoName"), repoName);
|
||||
}
|
||||
|
||||
std::string DescribeImageVulListRequest::get_Namespace() const {
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void DescribeImageVulListRequest::set_Namespace(const std::string &_namespace) {
|
||||
_namespace_ = _namespace;
|
||||
setParameter(std::string("Namespace"), _namespace);
|
||||
}
|
||||
|
||||
std::string DescribeImageVulListRequest::getRepoInstanceId() const {
|
||||
return repoInstanceId_;
|
||||
}
|
||||
|
||||
@@ -81,6 +81,18 @@ void DescribeImageVulListResult::parse(const std::string &payload)
|
||||
vulRecordsObject.level = valueVulRecordsVulRecord["Level"].asString();
|
||||
if(!valueVulRecordsVulRecord["CanFix"].isNull())
|
||||
vulRecordsObject.canFix = valueVulRecordsVulRecord["CanFix"].asString();
|
||||
if(!valueVulRecordsVulRecord["ClusterId"].isNull())
|
||||
vulRecordsObject.clusterId = valueVulRecordsVulRecord["ClusterId"].asString();
|
||||
if(!valueVulRecordsVulRecord["ClusterName"].isNull())
|
||||
vulRecordsObject.clusterName = valueVulRecordsVulRecord["ClusterName"].asString();
|
||||
if(!valueVulRecordsVulRecord["Pod"].isNull())
|
||||
vulRecordsObject.pod = valueVulRecordsVulRecord["Pod"].asString();
|
||||
if(!valueVulRecordsVulRecord["Namespace"].isNull())
|
||||
vulRecordsObject._namespace = valueVulRecordsVulRecord["Namespace"].asString();
|
||||
if(!valueVulRecordsVulRecord["Image"].isNull())
|
||||
vulRecordsObject.image = valueVulRecordsVulRecord["Image"].asString();
|
||||
if(!valueVulRecordsVulRecord["ContainerId"].isNull())
|
||||
vulRecordsObject.containerId = valueVulRecordsVulRecord["ContainerId"].asString();
|
||||
auto extendContentJsonNode = value["ExtendContentJson"];
|
||||
if(!extendContentJsonNode["OsRelease"].isNull())
|
||||
vulRecordsObject.extendContentJson.osRelease = extendContentJsonNode["OsRelease"].asString();
|
||||
|
||||
36
sas/src/model/DescribeVulFixStatisticsRequest.cc
Normal file
36
sas/src/model/DescribeVulFixStatisticsRequest.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/sas/model/DescribeVulFixStatisticsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeVulFixStatisticsRequest;
|
||||
|
||||
DescribeVulFixStatisticsRequest::DescribeVulFixStatisticsRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "DescribeVulFixStatistics") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeVulFixStatisticsRequest::~DescribeVulFixStatisticsRequest() {}
|
||||
|
||||
std::string DescribeVulFixStatisticsRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeVulFixStatisticsRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
65
sas/src/model/DescribeVulFixStatisticsResult.cc
Normal file
65
sas/src/model/DescribeVulFixStatisticsResult.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/sas/model/DescribeVulFixStatisticsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeVulFixStatisticsResult::DescribeVulFixStatisticsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVulFixStatisticsResult::DescribeVulFixStatisticsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVulFixStatisticsResult::~DescribeVulFixStatisticsResult()
|
||||
{}
|
||||
|
||||
void DescribeVulFixStatisticsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFixStatNode = value["FixStat"]["Fix"];
|
||||
for (auto valueFixStatFix : allFixStatNode)
|
||||
{
|
||||
Fix fixStatObject;
|
||||
if(!valueFixStatFix["FixingNum"].isNull())
|
||||
fixStatObject.fixingNum = std::stoi(valueFixStatFix["FixingNum"].asString());
|
||||
if(!valueFixStatFix["Type"].isNull())
|
||||
fixStatObject.type = valueFixStatFix["Type"].asString();
|
||||
if(!valueFixStatFix["FixedTodayNum"].isNull())
|
||||
fixStatObject.fixedTodayNum = std::stoi(valueFixStatFix["FixedTodayNum"].asString());
|
||||
if(!valueFixStatFix["FixedTotalNum"].isNull())
|
||||
fixStatObject.fixedTotalNum = std::stoi(valueFixStatFix["FixedTotalNum"].asString());
|
||||
if(!valueFixStatFix["NeedFixNum"].isNull())
|
||||
fixStatObject.needFixNum = std::stoi(valueFixStatFix["NeedFixNum"].asString());
|
||||
fixStat_.push_back(fixStatObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeVulFixStatisticsResult::Fix> DescribeVulFixStatisticsResult::getFixStat()const
|
||||
{
|
||||
return fixStat_;
|
||||
}
|
||||
|
||||
63
sas/src/model/ListAvailableHoneypotRequest.cc
Normal file
63
sas/src/model/ListAvailableHoneypotRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/ListAvailableHoneypotRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ListAvailableHoneypotRequest;
|
||||
|
||||
ListAvailableHoneypotRequest::ListAvailableHoneypotRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "ListAvailableHoneypot") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListAvailableHoneypotRequest::~ListAvailableHoneypotRequest() {}
|
||||
|
||||
int ListAvailableHoneypotRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListAvailableHoneypotRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListAvailableHoneypotRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void ListAvailableHoneypotRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
std::string ListAvailableHoneypotRequest::getNodeId() const {
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void ListAvailableHoneypotRequest::setNodeId(const std::string &nodeId) {
|
||||
nodeId_ = nodeId;
|
||||
setParameter(std::string("NodeId"), nodeId);
|
||||
}
|
||||
|
||||
int ListAvailableHoneypotRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListAvailableHoneypotRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
108
sas/src/model/ListAvailableHoneypotResult.cc
Normal file
108
sas/src/model/ListAvailableHoneypotResult.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* 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/sas/model/ListAvailableHoneypotResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ListAvailableHoneypotResult::ListAvailableHoneypotResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAvailableHoneypotResult::ListAvailableHoneypotResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAvailableHoneypotResult::~ListAvailableHoneypotResult()
|
||||
{}
|
||||
|
||||
void ListAvailableHoneypotResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["HoneypotImageName"].isNull())
|
||||
dataObject.honeypotImageName = valueDataDataItem["HoneypotImageName"].asString();
|
||||
if(!valueDataDataItem["HoneypotImageDisplayName"].isNull())
|
||||
dataObject.honeypotImageDisplayName = valueDataDataItem["HoneypotImageDisplayName"].asString();
|
||||
if(!valueDataDataItem["HoneypotImageId"].isNull())
|
||||
dataObject.honeypotImageId = valueDataDataItem["HoneypotImageId"].asString();
|
||||
if(!valueDataDataItem["HoneypotImageVersion"].isNull())
|
||||
dataObject.honeypotImageVersion = valueDataDataItem["HoneypotImageVersion"].asString();
|
||||
if(!valueDataDataItem["HoneypotImageType"].isNull())
|
||||
dataObject.honeypotImageType = valueDataDataItem["HoneypotImageType"].asString();
|
||||
if(!valueDataDataItem["Proto"].isNull())
|
||||
dataObject.proto = valueDataDataItem["Proto"].asString();
|
||||
if(!valueDataDataItem["ServicePort"].isNull())
|
||||
dataObject.servicePort = valueDataDataItem["ServicePort"].asString();
|
||||
if(!valueDataDataItem["Multiports"].isNull())
|
||||
dataObject.multiports = valueDataDataItem["Multiports"].asString();
|
||||
if(!valueDataDataItem["Template"].isNull())
|
||||
dataObject._template = valueDataDataItem["Template"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stoi(value["Count"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string ListAvailableHoneypotResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListAvailableHoneypotResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<ListAvailableHoneypotResult::DataItem> ListAvailableHoneypotResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListAvailableHoneypotResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
std::string ListAvailableHoneypotResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListAvailableHoneypotResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user