File tree Expand file tree Collapse file tree 3 files changed +24
-1
lines changed
include/alibabacloud/sas/model Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 1- 1.36.1279
1+ 1.36.1280
Original file line number Diff line number Diff line change @@ -32,6 +32,13 @@ namespace AlibabaCloud
3232 class ALIBABACLOUD_SAS_EXPORT DescribeVulFixStatisticsResult : public ServiceResult
3333 {
3434 public:
35+ struct FixTotal
36+ {
37+ int fixingNum;
38+ int fixedTodayNum;
39+ int fixedTotalNum;
40+ int needFixNum;
41+ };
3542 struct Fix
3643 {
3744 int fixingNum;
@@ -45,11 +52,13 @@ namespace AlibabaCloud
4552 DescribeVulFixStatisticsResult ();
4653 explicit DescribeVulFixStatisticsResult (const std::string &payload);
4754 ~DescribeVulFixStatisticsResult ();
55+ FixTotal getFixTotal ()const ;
4856 std::vector<Fix> getFixStat ()const ;
4957
5058 protected:
5159 void parse (const std::string &payload);
5260 private:
61+ FixTotal fixTotal_;
5362 std::vector<Fix> fixStat_;
5463
5564 };
Original file line number Diff line number Diff line change @@ -55,9 +55,23 @@ void DescribeVulFixStatisticsResult::parse(const std::string &payload)
5555 fixStatObject.needFixNum = std::stoi (valueFixStatFix[" NeedFixNum" ].asString ());
5656 fixStat_.push_back (fixStatObject);
5757 }
58+ auto fixTotalNode = value[" FixTotal" ];
59+ if (!fixTotalNode[" FixingNum" ].isNull ())
60+ fixTotal_.fixingNum = std::stoi (fixTotalNode[" FixingNum" ].asString ());
61+ if (!fixTotalNode[" FixedTodayNum" ].isNull ())
62+ fixTotal_.fixedTodayNum = std::stoi (fixTotalNode[" FixedTodayNum" ].asString ());
63+ if (!fixTotalNode[" FixedTotalNum" ].isNull ())
64+ fixTotal_.fixedTotalNum = std::stoi (fixTotalNode[" FixedTotalNum" ].asString ());
65+ if (!fixTotalNode[" NeedFixNum" ].isNull ())
66+ fixTotal_.needFixNum = std::stoi (fixTotalNode[" NeedFixNum" ].asString ());
5867
5968}
6069
70+ DescribeVulFixStatisticsResult::FixTotal DescribeVulFixStatisticsResult::getFixTotal ()const
71+ {
72+ return fixTotal_;
73+ }
74+
6175std::vector<DescribeVulFixStatisticsResult::Fix> DescribeVulFixStatisticsResult::getFixStat ()const
6276{
6377 return fixStat_;
You can’t perform that action at this time.
0 commit comments