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

@@ -1 +1 @@
1.36.1411 1.36.1412

View File

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

View File

@@ -43,3 +43,12 @@ void DeleteDbfsRequest::setFsId(const std::string &fsId) {
setParameter(std::string("FsId"), 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()); dBFSInfo_.snapshotInfo.snapshotCount = std::stoi(snapshotInfoNode["SnapshotCount"].asString());
if(!snapshotInfoNode["LinkId"].isNull()) if(!snapshotInfoNode["LinkId"].isNull())
dBFSInfo_.snapshotInfo.linkId = snapshotInfoNode["LinkId"].asString(); dBFSInfo_.snapshotInfo.linkId = snapshotInfoNode["LinkId"].asString();
if(!snapshotInfoNode["totalSize"].isNull()) if(!snapshotInfoNode["TotalSize"].isNull())
dBFSInfo_.snapshotInfo.totalSize = std::stol(snapshotInfoNode["totalSize"].asString()); dBFSInfo_.snapshotInfo.totalSize = std::stol(snapshotInfoNode["TotalSize"].asString());
if(!snapshotInfoNode["PolicyId"].isNull()) if(!snapshotInfoNode["PolicyId"].isNull())
dBFSInfo_.snapshotInfo.policyId = snapshotInfoNode["PolicyId"].asString(); dBFSInfo_.snapshotInfo.policyId = snapshotInfoNode["PolicyId"].asString();