30 #ifndef GOOGLE_CONTAINER_API_WORKLOAD_METADATA_CONFIG_H_ 31 #define GOOGLE_CONTAINER_API_WORKLOAD_METADATA_CONFIG_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 85 return StringPiece(
"google_container_api::WorkloadMetadataConfig");
94 return Storage().isMember(
"mode");
101 MutableStorage()->removeMember(
"mode");
109 const Json::Value& v = Storage(
"mode");
110 if (v == Json::Value::null)
return StringPiece(
"");
111 return StringPiece(v.asCString());
123 *MutableStorage(
"mode") = value.data();
130 #endif // GOOGLE_CONTAINER_API_WORKLOAD_METADATA_CONFIG_H_
Definition: accelerator_config.h:39
Definition: accelerator_config.cc:41