30 #ifndef GOOGLE_COMPUTE_API_ROUTER_BGP_H_ 31 #define GOOGLE_COMPUTE_API_ROUTER_BGP_H_ 34 #include "googleapis/base/integral_types.h" 35 #include "googleapis/base/macros.h" 36 #include "googleapis/client/data/jsoncpp_data.h" 37 #include "googleapis/strings/stringpiece.h" 39 #include "google/compute_api/router_advertised_ip_range.h" 67 explicit RouterBgp(
const Json::Value& storage);
87 return StringPiece(
"google_compute_api::RouterBgp");
96 return Storage().isMember(
"advertiseMode");
103 MutableStorage()->removeMember(
"advertiseMode");
111 const Json::Value& v = Storage(
"advertiseMode");
112 if (v == Json::Value::null)
return StringPiece(
"");
113 return StringPiece(v.asCString());
124 *MutableStorage(
"advertiseMode") = value.data();
133 return Storage().isMember(
"advertisedGroups");
140 MutableStorage()->removeMember(
"advertisedGroups");
149 const Json::Value& storage = Storage(
"advertisedGroups");
150 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
166 Json::Value* storage = MutableStorage(
"advertisedGroups");
167 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
176 return Storage().isMember(
"advertisedIpRanges");
183 MutableStorage()->removeMember(
"advertisedIpRanges");
191 const client::JsonCppArray<RouterAdvertisedIpRange > get_advertised_ip_ranges()
const;
205 client::JsonCppArray<RouterAdvertisedIpRange > mutable_advertisedIpRanges();
213 return Storage().isMember(
"asn");
220 MutableStorage()->removeMember(
"asn");
228 const Json::Value& storage = Storage(
"asn");
229 return client::JsonValueToCppValueHelper<uint32 >(storage);
242 client::SetJsonValueFromCppValueHelper<uint32 >(
243 value, MutableStorage(
"asn"));
250 #endif // GOOGLE_COMPUTE_API_ROUTER_BGP_H_ uint32 get_asn() const
Definition: router_bgp.h:227
bool has_advertised_ip_ranges() const
Definition: router_bgp.h:175
void set_asn(uint32 value)
Definition: router_bgp.h:241
void clear_asn()
Definition: router_bgp.h:219
bool has_advertised_groups() const
Definition: router_bgp.h:132
bool has_advertise_mode() const
Definition: router_bgp.h:95
void clear_advertise_mode()
Definition: router_bgp.h:102
void clear_advertised_groups()
Definition: router_bgp.h:139
const StringPiece GetTypeName() const
Definition: router_bgp.h:86
Definition: accelerator_config.h:39
void set_advertise_mode(const StringPiece &value)
Definition: router_bgp.h:123
Definition: router_bgp.h:53
client::JsonCppArray< string > mutable_advertisedGroups()
Definition: router_bgp.h:165
bool has_asn() const
Definition: router_bgp.h:212
Definition: accelerator_config.cc:41
const client::JsonCppArray< string > get_advertised_groups() const
Definition: router_bgp.h:148
const StringPiece get_advertise_mode() const
Definition: router_bgp.h:110
void clear_advertised_ip_ranges()
Definition: router_bgp.h:182