30 #ifndef GOOGLE_CONTAINER_API_MAX_PODS_CONSTRAINT_H_ 31 #define GOOGLE_CONTAINER_API_MAX_PODS_CONSTRAINT_H_ 33 #include "googleapis/base/integral_types.h" 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 84 return StringPiece(
"google_container_api::MaxPodsConstraint");
93 return Storage().isMember(
"maxPodsPerNode");
100 MutableStorage()->removeMember(
"maxPodsPerNode");
108 const Json::Value& storage = Storage(
"maxPodsPerNode");
109 return client::JsonValueToCppValueHelper<int64 >(storage);
120 client::SetJsonValueFromCppValueHelper<int64 >(
121 value, MutableStorage(
"maxPodsPerNode"));
128 #endif // GOOGLE_CONTAINER_API_MAX_PODS_CONSTRAINT_H_ Definition: max_pods_constraint.h:50
const StringPiece GetTypeName() const
Definition: max_pods_constraint.h:83
bool has_max_pods_per_node() const
Definition: max_pods_constraint.h:92
void clear_max_pods_per_node()
Definition: max_pods_constraint.h:99
Definition: accelerator_config.h:39
int64 get_max_pods_per_node() const
Definition: max_pods_constraint.h:107
Definition: accelerator_config.cc:41
void set_max_pods_per_node(int64 value)
Definition: max_pods_constraint.h:119