30 #ifndef GOOGLE_COMPUTE_API_AUTOSCALERS_SCOPED_LIST_H_ 31 #define GOOGLE_COMPUTE_API_AUTOSCALERS_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/autoscaler.h" 102 return StringPiece(
"google_compute_api::AutoscalersScopedListWarningData");
111 return Storage().isMember(
"key");
118 MutableStorage()->removeMember(
"key");
126 const Json::Value& v = Storage(
"key");
127 if (v == Json::Value::null)
return StringPiece(
"");
128 return StringPiece(v.asCString());
145 *MutableStorage(
"key") = value.data();
154 return Storage().isMember(
"value");
161 MutableStorage()->removeMember(
"value");
169 const Json::Value& v = Storage(
"value");
170 if (v == Json::Value::null)
return StringPiece(
"");
171 return StringPiece(v.asCString());
182 *MutableStorage(
"value") = value.data();
220 return StringPiece(
"google_compute_api::AutoscalersScopedListWarning");
229 return Storage().isMember(
"code");
236 MutableStorage()->removeMember(
"code");
244 const Json::Value& v = Storage(
"code");
245 if (v == Json::Value::null)
return StringPiece(
"");
246 return StringPiece(v.asCString());
258 *MutableStorage(
"code") = value.data();
267 return Storage().isMember(
"data");
274 MutableStorage()->removeMember(
"data");
281 const client::JsonCppArray<AutoscalersScopedListWarningData >
get_data()
const {
282 const Json::Value& storage = Storage(
"data");
283 return client::JsonValueToCppValueHelper<client::JsonCppArray<AutoscalersScopedListWarningData > >(storage);
295 client::JsonCppArray<AutoscalersScopedListWarningData >
mutable_data() {
296 Json::Value* storage = MutableStorage(
"data");
297 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<AutoscalersScopedListWarningData > >(storage);
306 return Storage().isMember(
"message");
313 MutableStorage()->removeMember(
"message");
321 const Json::Value& v = Storage(
"message");
322 if (v == Json::Value::null)
return StringPiece(
"");
323 return StringPiece(v.asCString());
334 *MutableStorage(
"message") = value.data();
372 return StringPiece(
"google_compute_api::AutoscalersScopedList");
381 return Storage().isMember(
"autoscalers");
388 MutableStorage()->removeMember(
"autoscalers");
395 const client::JsonCppArray<Autoscaler > get_autoscalers()
const;
405 client::JsonCppArray<Autoscaler > mutable_autoscalers();
413 return Storage().isMember(
"warning");
420 MutableStorage()->removeMember(
"warning");
428 const Json::Value& storage = Storage(
"warning");
429 return client::JsonValueToCppValueHelper<AutoscalersScopedListWarning >(storage);
441 Json::Value* storage = MutableStorage(
"warning");
442 return client::JsonValueToMutableCppValueHelper<AutoscalersScopedListWarning >(storage);
449 #endif // GOOGLE_COMPUTE_API_AUTOSCALERS_SCOPED_LIST_H_
Definition: accelerator_config.h:39
Definition: accelerator_config.cc:41