encode_json("subuser", subuser, f);
}
+void RGWAccessKey::dump_plain(Formatter *f) const
+{
+ encode_json("access_key", id, f);
+ encode_json("secret_key", key, f);
+}
+
+void encode_json_plain(const char *name, const RGWAccessKey& val, Formatter *f)
+{
+ f->open_object_section(name);
+ val.dump_plain(f);
+ f->close_section();
+}
+
void RGWAccessKey::dump(Formatter *f, const string& user, bool swift) const
{
string u = user;
encode_json("user_email_pool", user_email_pool.data_pool, f);
encode_json("user_swift_pool", user_swift_pool.data_pool, f);
encode_json("user_uid_pool ", user_uid_pool.data_pool, f);
+ encode_json_plain("system_key", system_key, f);
}
static void decode_json(const char *field, rgw_bucket& bucket, JSONObj *obj)
::decode_json("user_email_pool", user_email_pool, obj);
::decode_json("user_swift_pool", user_swift_pool, obj);
::decode_json("user_uid_pool ", user_uid_pool, obj);
+ JSONDecoder::decode_json("system_key", system_key, obj);
}
void RGWZone::dump(Formatter *f) const
string name;
+ RGWAccessKey system_key;
+
static string get_pool_name(CephContext *cct);
void init_name(CephContext *cct, RGWRegion& region);
int init(CephContext *cct, RGWRados *store, RGWRegion& region);
int store_info(CephContext *cct, RGWRados *store, RGWRegion& region);
void encode(bufferlist& bl) const {
- ENCODE_START(2, 1, bl);
+ ENCODE_START(3, 1, bl);
::encode(domain_root, bl);
::encode(control_pool, bl);
::encode(gc_pool, bl);
}
void decode(bufferlist::iterator& bl) {
- DECODE_START(2, bl);
+ DECODE_START(3, bl);
::decode(domain_root, bl);
::decode(control_pool, bl);
::decode(gc_pool, bl);
::decode(user_uid_pool, bl);
if (struct_v >= 2)
::decode(name, bl);
+ if (struct_v >= 3)
+ ::decode(system_key, bl);
DECODE_FINISH(bl);
}
void dump(Formatter *f) const;