o.push_back(p);
}
+void RGWGroupInfo::dump(Formatter * const f) const
+{
+ encode_json("id", id, f);
+ encode_json("tenant", tenant, f);
+ encode_json("name", name, f);
+ encode_json("path", path, f);
+ encode_json("account_id", account_id, f);
+}
+
+void RGWGroupInfo::decode_json(JSONObj* obj)
+{
+ JSONDecoder::decode_json("id", id, obj);
+ JSONDecoder::decode_json("tenant", tenant, obj);
+ JSONDecoder::decode_json("name", name, obj);
+ JSONDecoder::decode_json("path", path, obj);
+ JSONDecoder::decode_json("account_id", account_id, obj);
+}
+
+void RGWGroupInfo::generate_test_instances(std::list<RGWGroupInfo*>& o)
+{
+ o.push_back(new RGWGroupInfo);
+ auto p = new RGWGroupInfo;
+ p->id = "id";
+ p->tenant = "tenant";
+ p->name = "name";
+ p->path = "/path/";
+ p->account_id = "account";
+ o.push_back(p);
+}
+
void RGWStorageStats::dump(Formatter *f) const
{
encode_json("size", size, f);
};
WRITE_CLASS_ENCODER(RGWAccountInfo)
+// user group metadata
+struct RGWGroupInfo {
+ std::string id;
+ std::string tenant;
+ std::string name;
+ std::string path;
+ rgw_account_id account_id;
+
+ void encode(bufferlist& bl) const {
+ ENCODE_START(1, 1, bl);
+ encode(id, bl);
+ encode(tenant, bl);
+ encode(name, bl);
+ encode(path, bl);
+ encode(account_id, bl);
+ ENCODE_FINISH(bl);
+ }
+
+ void decode(bufferlist::const_iterator& bl) {
+ DECODE_START(1, bl);
+ decode(id, bl);
+ decode(tenant, bl);
+ decode(name, bl);
+ decode(path, bl);
+ decode(account_id, bl);
+ DECODE_FINISH(bl);
+ }
+
+ void dump(Formatter* f) const;
+ void decode_json(JSONObj* obj);
+ static void generate_test_instances(std::list<RGWGroupInfo*>& o);
+};
+WRITE_CLASS_ENCODER(RGWGroupInfo)
+
/// `RGWObjVersionTracker`
/// ======================
///