30 #ifndef GOOGLE_COMPUTE_API_DISKS_SCOPED_LIST_H_ 31 #define GOOGLE_COMPUTE_API_DISKS_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/disk.h" 101 return StringPiece(
"google_compute_api::DisksScopedListWarningData");
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::DisksScopedListWarning");
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<DisksScopedListWarningData >
get_data()
const {
281 const Json::Value& storage = Storage(
"data");
282 return client::JsonValueToCppValueHelper<client::JsonCppArray<DisksScopedListWarningData > >(storage);
295 Json::Value* storage = MutableStorage(
"data");
296 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<DisksScopedListWarningData > >(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::DisksScopedList");
380 return Storage().isMember(
"disks");
387 MutableStorage()->removeMember(
"disks");
394 const client::JsonCppArray<Disk > get_disks()
const;
403 client::JsonCppArray<Disk > mutable_disks();
411 return Storage().isMember(
"warning");
418 MutableStorage()->removeMember(
"warning");
426 const Json::Value& storage = Storage(
"warning");
427 return client::JsonValueToCppValueHelper<DisksScopedListWarning >(storage);
439 Json::Value* storage = MutableStorage(
"warning");
440 return client::JsonValueToMutableCppValueHelper<DisksScopedListWarning >(storage);
447 #endif // GOOGLE_COMPUTE_API_DISKS_SCOPED_LIST_H_ bool has_value() const
Definition: disks_scoped_list.h:152
bool has_data() const
Definition: disks_scoped_list.h:265
const client::JsonCppArray< DisksScopedListWarningData > get_data() const
Definition: disks_scoped_list.h:280
void set_code(const StringPiece &value)
Definition: disks_scoped_list.h:256
bool has_warning() const
Definition: disks_scoped_list.h:410
const DisksScopedListWarning get_warning() const
Definition: disks_scoped_list.h:425
const StringPiece GetTypeName() const
Definition: disks_scoped_list.h:370
void set_value(const StringPiece &value)
Definition: disks_scoped_list.h:180
const StringPiece get_key() const
Definition: disks_scoped_list.h:124
void clear_disks()
Definition: disks_scoped_list.h:386
void clear_key()
Definition: disks_scoped_list.h:116
bool has_key() const
Definition: disks_scoped_list.h:109
Definition: accelerator_config.h:39
void set_message(const StringPiece &value)
Definition: disks_scoped_list.h:332
const StringPiece GetTypeName() const
Definition: disks_scoped_list.h:100
bool has_code() const
Definition: disks_scoped_list.h:227
void clear_message()
Definition: disks_scoped_list.h:311
DisksScopedListWarning mutable_warning()
Definition: disks_scoped_list.h:438
Definition: accelerator_config.cc:41
bool has_disks() const
Definition: disks_scoped_list.h:379
const StringPiece GetTypeName() const
Definition: disks_scoped_list.h:218
const StringPiece get_code() const
Definition: disks_scoped_list.h:242
Definition: disks_scoped_list.h:67
void clear_value()
Definition: disks_scoped_list.h:159
client::JsonCppArray< DisksScopedListWarningData > mutable_data()
Definition: disks_scoped_list.h:294
void clear_warning()
Definition: disks_scoped_list.h:417
void set_key(const StringPiece &value)
Definition: disks_scoped_list.h:143
Definition: disks_scoped_list.h:60
const StringPiece get_value() const
Definition: disks_scoped_list.h:167
bool has_message() const
Definition: disks_scoped_list.h:304
void clear_data()
Definition: disks_scoped_list.h:272
const StringPiece get_message() const
Definition: disks_scoped_list.h:319
void clear_code()
Definition: disks_scoped_list.h:234
Definition: disks_scoped_list.h:52