Fix bug for name of TotalSize.

This commit is contained in:
sdk-team
2023-01-05 01:47:45 +00:00
parent 853c51d753
commit e5acce5400
4 changed files with 15 additions and 3 deletions

View File

@@ -34,10 +34,13 @@ public:
void setRegionId(const std::string &regionId);
std::string getFsId() const;
void setFsId(const std::string &fsId);
bool getForce() const;
void setForce(bool force);
private:
std::string regionId_;
std::string fsId_;
bool force_;
};
} // namespace Model
} // namespace DBFS

View File

@@ -43,3 +43,12 @@ void DeleteDbfsRequest::setFsId(const std::string &fsId) {
setParameter(std::string("FsId"), fsId);
}
bool DeleteDbfsRequest::getForce() const {
return force_;
}
void DeleteDbfsRequest::setForce(bool force) {
force_ = force;
setParameter(std::string("Force"), force ? "true" : "false");
}

View File

@@ -119,8 +119,8 @@ void GetDbfsResult::parse(const std::string &payload)
dBFSInfo_.snapshotInfo.snapshotCount = std::stoi(snapshotInfoNode["SnapshotCount"].asString());
if(!snapshotInfoNode["LinkId"].isNull())
dBFSInfo_.snapshotInfo.linkId = snapshotInfoNode["LinkId"].asString();
if(!snapshotInfoNode["totalSize"].isNull())
dBFSInfo_.snapshotInfo.totalSize = std::stol(snapshotInfoNode["totalSize"].asString());
if(!snapshotInfoNode["TotalSize"].isNull())
dBFSInfo_.snapshotInfo.totalSize = std::stol(snapshotInfoNode["TotalSize"].asString());
if(!snapshotInfoNode["PolicyId"].isNull())
dBFSInfo_.snapshotInfo.policyId = snapshotInfoNode["PolicyId"].asString();