30 #ifndef GOOGLE_CONTAINER_API_BINARY_AUTHORIZATION_H_ 31 #define GOOGLE_CONTAINER_API_BINARY_AUTHORIZATION_H_ 33 #include "googleapis/base/macros.h" 34 #include "googleapis/client/data/jsoncpp_data.h" 35 #include "googleapis/strings/stringpiece.h" 83 return StringPiece(
"google_container_api::BinaryAuthorization");
92 return Storage().isMember(
"enabled");
99 MutableStorage()->removeMember(
"enabled");
107 const Json::Value& storage = Storage(
"enabled");
108 return client::JsonValueToCppValueHelper<bool >(storage);
120 client::SetJsonValueFromCppValueHelper<bool >(
121 value, MutableStorage(
"enabled"));
128 #endif // GOOGLE_CONTAINER_API_BINARY_AUTHORIZATION_H_ void set_enabled(bool value)
Definition: binary_authorization.h:119
Definition: binary_authorization.h:49
const StringPiece GetTypeName() const
Definition: binary_authorization.h:82
bool get_enabled() const
Definition: binary_authorization.h:106
Definition: accelerator_config.h:39
Definition: accelerator_config.cc:41
void clear_enabled()
Definition: binary_authorization.h:98
bool has_enabled() const
Definition: binary_authorization.h:91