30 #ifndef GOOGLE_COMPUTE_API_ROUTERS_SCOPED_LIST_H_ 31 #define GOOGLE_COMPUTE_API_ROUTERS_SCOPED_LIST_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 38 #include "google/compute_api/router.h" 101 return StringPiece(
"google_compute_api::RoutersScopedListWarningData");
110 return Storage().isMember(
"key");
117 MutableStorage()->removeMember(
"key");
125 const Json::Value& v = Storage(
"key");
126 if (v == Json::Value::null)
return StringPiece(
"");
127 return StringPiece(v.asCString());
144 *MutableStorage(
"key") = value.data();
153 return Storage().isMember(
"value");
160 MutableStorage()->removeMember(
"value");
168 const Json::Value& v = Storage(
"value");
169 if (v == Json::Value::null)
return StringPiece(
"");
170 return StringPiece(v.asCString());
181 *MutableStorage(
"value") = value.data();
219 return StringPiece(
"google_compute_api::RoutersScopedListWarning");
228 return Storage().isMember(
"code");
235 MutableStorage()->removeMember(
"code");
243 const Json::Value& v = Storage(
"code");
244 if (v == Json::Value::null)
return StringPiece(
"");
245 return StringPiece(v.asCString());
257 *MutableStorage(
"code") = value.data();
266 return Storage().isMember(
"data");
273 MutableStorage()->removeMember(
"data");
280 const client::JsonCppArray<RoutersScopedListWarningData >
get_data()
const {
281 const Json::Value& storage = Storage(
"data");
282 return client::JsonValueToCppValueHelper<client::JsonCppArray<RoutersScopedListWarningData > >(storage);
295 Json::Value* storage = MutableStorage(
"data");
296 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<RoutersScopedListWarningData > >(storage);
305 return Storage().isMember(
"message");
312 MutableStorage()->removeMember(
"message");
320 const Json::Value& v = Storage(
"message");
321 if (v == Json::Value::null)
return StringPiece(
"");
322 return StringPiece(v.asCString());
333 *MutableStorage(
"message") = value.data();
371 return StringPiece(
"google_compute_api::RoutersScopedList");
380 return Storage().isMember(
"routers");
387 MutableStorage()->removeMember(
"routers");
394 const client::JsonCppArray<Router > get_routers()
const;
403 client::JsonCppArray<Router > mutable_routers();
411 return Storage().isMember(
"warning");
418 MutableStorage()->removeMember(
"warning");
426 const Json::Value& storage = Storage(
"warning");
427 return client::JsonValueToCppValueHelper<RoutersScopedListWarning >(storage);
439 Json::Value* storage = MutableStorage(
"warning");
440 return client::JsonValueToMutableCppValueHelper<RoutersScopedListWarning >(storage);
447 #endif // GOOGLE_COMPUTE_API_ROUTERS_SCOPED_LIST_H_
Definition: accelerator_config.h:39
Definition: accelerator_config.cc:41