Change RefreshAssets Public.
This commit is contained in:
@@ -32,6 +32,13 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_SAS_EXPORT DescribeVulFixStatisticsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct FixTotal
|
||||
{
|
||||
int fixingNum;
|
||||
int fixedTodayNum;
|
||||
int fixedTotalNum;
|
||||
int needFixNum;
|
||||
};
|
||||
struct Fix
|
||||
{
|
||||
int fixingNum;
|
||||
@@ -45,11 +52,13 @@ namespace AlibabaCloud
|
||||
DescribeVulFixStatisticsResult();
|
||||
explicit DescribeVulFixStatisticsResult(const std::string &payload);
|
||||
~DescribeVulFixStatisticsResult();
|
||||
FixTotal getFixTotal()const;
|
||||
std::vector<Fix> getFixStat()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
FixTotal fixTotal_;
|
||||
std::vector<Fix> fixStat_;
|
||||
|
||||
};
|
||||
|
||||
@@ -55,9 +55,23 @@ void DescribeVulFixStatisticsResult::parse(const std::string &payload)
|
||||
fixStatObject.needFixNum = std::stoi(valueFixStatFix["NeedFixNum"].asString());
|
||||
fixStat_.push_back(fixStatObject);
|
||||
}
|
||||
auto fixTotalNode = value["FixTotal"];
|
||||
if(!fixTotalNode["FixingNum"].isNull())
|
||||
fixTotal_.fixingNum = std::stoi(fixTotalNode["FixingNum"].asString());
|
||||
if(!fixTotalNode["FixedTodayNum"].isNull())
|
||||
fixTotal_.fixedTodayNum = std::stoi(fixTotalNode["FixedTodayNum"].asString());
|
||||
if(!fixTotalNode["FixedTotalNum"].isNull())
|
||||
fixTotal_.fixedTotalNum = std::stoi(fixTotalNode["FixedTotalNum"].asString());
|
||||
if(!fixTotalNode["NeedFixNum"].isNull())
|
||||
fixTotal_.needFixNum = std::stoi(fixTotalNode["NeedFixNum"].asString());
|
||||
|
||||
}
|
||||
|
||||
DescribeVulFixStatisticsResult::FixTotal DescribeVulFixStatisticsResult::getFixTotal()const
|
||||
{
|
||||
return fixTotal_;
|
||||
}
|
||||
|
||||
std::vector<DescribeVulFixStatisticsResult::Fix> DescribeVulFixStatisticsResult::getFixStat()const
|
||||
{
|
||||
return fixStat_;
|
||||
|
||||
Reference in New Issue
Block a user