30 #ifndef GOOGLE_COMPUTE_API_INTERCONNECT_H_ 31 #define GOOGLE_COMPUTE_API_INTERCONNECT_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/interconnect_circuit_info.h" 40 #include "google/compute_api/interconnect_outage_notification.h" 91 return StringPiece(
"google_compute_api::Interconnect");
100 return Storage().isMember(
"adminEnabled");
107 MutableStorage()->removeMember(
"adminEnabled");
115 const Json::Value& storage = Storage(
"adminEnabled");
116 return client::JsonValueToCppValueHelper<bool >(storage);
130 client::SetJsonValueFromCppValueHelper<bool >(
131 value, MutableStorage(
"adminEnabled"));
140 return Storage().isMember(
"circuitInfos");
147 MutableStorage()->removeMember(
"circuitInfos");
154 const client::JsonCppArray<InterconnectCircuitInfo > get_circuit_infos()
const;
165 client::JsonCppArray<InterconnectCircuitInfo > mutable_circuitInfos();
173 return Storage().isMember(
"creationTimestamp");
180 MutableStorage()->removeMember(
"creationTimestamp");
188 const Json::Value& v = Storage(
"creationTimestamp");
189 if (v == Json::Value::null)
return StringPiece(
"");
190 return StringPiece(v.asCString());
201 *MutableStorage(
"creationTimestamp") = value.data();
210 return Storage().isMember(
"customerName");
217 MutableStorage()->removeMember(
"customerName");
225 const Json::Value& v = Storage(
"customerName");
226 if (v == Json::Value::null)
return StringPiece(
"");
227 return StringPiece(v.asCString());
239 *MutableStorage(
"customerName") = value.data();
248 return Storage().isMember(
"description");
255 MutableStorage()->removeMember(
"description");
263 const Json::Value& v = Storage(
"description");
264 if (v == Json::Value::null)
return StringPiece(
"");
265 return StringPiece(v.asCString());
277 *MutableStorage(
"description") = value.data();
286 return Storage().isMember(
"expectedOutages");
293 MutableStorage()->removeMember(
"expectedOutages");
301 const client::JsonCppArray<InterconnectOutageNotification > get_expected_outages()
const;
311 client::JsonCppArray<InterconnectOutageNotification > mutable_expectedOutages();
319 return Storage().isMember(
"googleIpAddress");
326 MutableStorage()->removeMember(
"googleIpAddress");
334 const Json::Value& v = Storage(
"googleIpAddress");
335 if (v == Json::Value::null)
return StringPiece(
"");
336 return StringPiece(v.asCString());
348 *MutableStorage(
"googleIpAddress") = value.data();
357 return Storage().isMember(
"googleReferenceId");
364 MutableStorage()->removeMember(
"googleReferenceId");
372 const Json::Value& v = Storage(
"googleReferenceId");
373 if (v == Json::Value::null)
return StringPiece(
"");
374 return StringPiece(v.asCString());
386 *MutableStorage(
"googleReferenceId") = value.data();
395 return Storage().isMember(
"id");
402 MutableStorage()->removeMember(
"id");
410 const Json::Value& storage = Storage(
"id");
411 return client::JsonValueToCppValueHelper<uint64 >(storage);
423 client::SetJsonValueFromCppValueHelper<uint64 >(
424 value, MutableStorage(
"id"));
434 return Storage().isMember(
"interconnectAttachments");
441 MutableStorage()->removeMember(
"interconnectAttachments");
450 const Json::Value& storage = Storage(
"interconnectAttachments");
451 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
464 Json::Value* storage = MutableStorage(
"interconnectAttachments");
465 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
474 return Storage().isMember(
"interconnectType");
481 MutableStorage()->removeMember(
"interconnectType");
489 const Json::Value& v = Storage(
"interconnectType");
490 if (v == Json::Value::null)
return StringPiece(
"");
491 return StringPiece(v.asCString());
503 *MutableStorage(
"interconnectType") = value.data();
512 return Storage().isMember(
"kind");
519 MutableStorage()->removeMember(
"kind");
527 const Json::Value& v = Storage(
"kind");
528 if (v == Json::Value::null)
return StringPiece(
"");
529 return StringPiece(v.asCString());
541 *MutableStorage(
"kind") = value.data();
550 return Storage().isMember(
"linkType");
557 MutableStorage()->removeMember(
"linkType");
565 const Json::Value& v = Storage(
"linkType");
566 if (v == Json::Value::null)
return StringPiece(
"");
567 return StringPiece(v.asCString());
579 *MutableStorage(
"linkType") = value.data();
588 return Storage().isMember(
"location");
595 MutableStorage()->removeMember(
"location");
603 const Json::Value& v = Storage(
"location");
604 if (v == Json::Value::null)
return StringPiece(
"");
605 return StringPiece(v.asCString());
617 *MutableStorage(
"location") = value.data();
626 return Storage().isMember(
"name");
633 MutableStorage()->removeMember(
"name");
641 const Json::Value& v = Storage(
"name");
642 if (v == Json::Value::null)
return StringPiece(
"");
643 return StringPiece(v.asCString());
660 *MutableStorage(
"name") = value.data();
669 return Storage().isMember(
"nocContactEmail");
676 MutableStorage()->removeMember(
"nocContactEmail");
684 const Json::Value& v = Storage(
"nocContactEmail");
685 if (v == Json::Value::null)
return StringPiece(
"");
686 return StringPiece(v.asCString());
700 *MutableStorage(
"nocContactEmail") = value.data();
709 return Storage().isMember(
"operationalStatus");
716 MutableStorage()->removeMember(
"operationalStatus");
724 const Json::Value& v = Storage(
"operationalStatus");
725 if (v == Json::Value::null)
return StringPiece(
"");
726 return StringPiece(v.asCString());
738 *MutableStorage(
"operationalStatus") = value.data();
747 return Storage().isMember(
"peerIpAddress");
754 MutableStorage()->removeMember(
"peerIpAddress");
762 const Json::Value& v = Storage(
"peerIpAddress");
763 if (v == Json::Value::null)
return StringPiece(
"");
764 return StringPiece(v.asCString());
777 *MutableStorage(
"peerIpAddress") = value.data();
786 return Storage().isMember(
"provisionedLinkCount");
793 MutableStorage()->removeMember(
"provisionedLinkCount");
801 const Json::Value& storage = Storage(
"provisionedLinkCount");
802 return client::JsonValueToCppValueHelper<int32 >(storage);
813 client::SetJsonValueFromCppValueHelper<int32 >(
814 value, MutableStorage(
"provisionedLinkCount"));
823 return Storage().isMember(
"requestedLinkCount");
830 MutableStorage()->removeMember(
"requestedLinkCount");
838 const Json::Value& storage = Storage(
"requestedLinkCount");
839 return client::JsonValueToCppValueHelper<int32 >(storage);
851 client::SetJsonValueFromCppValueHelper<int32 >(
852 value, MutableStorage(
"requestedLinkCount"));
861 return Storage().isMember(
"selfLink");
868 MutableStorage()->removeMember(
"selfLink");
876 const Json::Value& v = Storage(
"selfLink");
877 if (v == Json::Value::null)
return StringPiece(
"");
878 return StringPiece(v.asCString());
889 *MutableStorage(
"selfLink") = value.data();
898 return Storage().isMember(
"state");
905 MutableStorage()->removeMember(
"state");
913 const Json::Value& v = Storage(
"state");
914 if (v == Json::Value::null)
return StringPiece(
"");
915 return StringPiece(v.asCString());
927 *MutableStorage(
"state") = value.data();
934 #endif // GOOGLE_COMPUTE_API_INTERCONNECT_H_ void set_google_ip_address(const StringPiece &value)
Definition: interconnect.h:347
void set_location(const StringPiece &value)
Definition: interconnect.h:616
bool has_description() const
Definition: interconnect.h:247
bool has_google_ip_address() const
Definition: interconnect.h:318
void clear_location()
Definition: interconnect.h:594
void clear_creation_timestamp()
Definition: interconnect.h:179
void clear_circuit_infos()
Definition: interconnect.h:146
bool has_google_reference_id() const
Definition: interconnect.h:356
void set_creation_timestamp(const StringPiece &value)
Definition: interconnect.h:200
void set_state(const StringPiece &value)
Definition: interconnect.h:926
void set_requested_link_count(int32 value)
Definition: interconnect.h:850
void set_link_type(const StringPiece &value)
Definition: interconnect.h:578
const StringPiece get_google_reference_id() const
Definition: interconnect.h:371
void clear_google_ip_address()
Definition: interconnect.h:325
const StringPiece get_link_type() const
Definition: interconnect.h:564
const StringPiece get_google_ip_address() const
Definition: interconnect.h:333
void set_customer_name(const StringPiece &value)
Definition: interconnect.h:238
void clear_expected_outages()
Definition: interconnect.h:292
bool has_creation_timestamp() const
Definition: interconnect.h:172
void set_peer_ip_address(const StringPiece &value)
Definition: interconnect.h:776
bool has_location() const
Definition: interconnect.h:587
bool has_operational_status() const
Definition: interconnect.h:708
int32 get_requested_link_count() const
Definition: interconnect.h:837
void clear_requested_link_count()
Definition: interconnect.h:829
const StringPiece get_noc_contact_email() const
Definition: interconnect.h:683
void clear_admin_enabled()
Definition: interconnect.h:106
const StringPiece get_kind() const
Definition: interconnect.h:526
bool has_noc_contact_email() const
Definition: interconnect.h:668
bool get_admin_enabled() const
Definition: interconnect.h:114
void clear_kind()
Definition: interconnect.h:518
void clear_interconnect_type()
Definition: interconnect.h:480
bool has_interconnect_attachments() const
Definition: interconnect.h:433
void set_operational_status(const StringPiece &value)
Definition: interconnect.h:737
void set_noc_contact_email(const StringPiece &value)
Definition: interconnect.h:699
void clear_peer_ip_address()
Definition: interconnect.h:753
void set_google_reference_id(const StringPiece &value)
Definition: interconnect.h:385
const client::JsonCppArray< string > get_interconnect_attachments() const
Definition: interconnect.h:449
void clear_self_link()
Definition: interconnect.h:867
void set_interconnect_type(const StringPiece &value)
Definition: interconnect.h:502
void set_id(uint64 value)
Definition: interconnect.h:422
void clear_state()
Definition: interconnect.h:904
void set_kind(const StringPiece &value)
Definition: interconnect.h:540
const StringPiece get_state() const
Definition: interconnect.h:912
bool has_kind() const
Definition: interconnect.h:511
bool has_interconnect_type() const
Definition: interconnect.h:473
bool has_expected_outages() const
Definition: interconnect.h:285
const StringPiece get_name() const
Definition: interconnect.h:640
const StringPiece get_operational_status() const
Definition: interconnect.h:723
void clear_google_reference_id()
Definition: interconnect.h:363
Definition: accelerator_config.h:39
void clear_id()
Definition: interconnect.h:401
void set_self_link(const StringPiece &value)
Definition: interconnect.h:888
bool has_customer_name() const
Definition: interconnect.h:209
void clear_name()
Definition: interconnect.h:632
void clear_customer_name()
Definition: interconnect.h:216
uint64 get_id() const
Definition: interconnect.h:409
const StringPiece get_customer_name() const
Definition: interconnect.h:224
bool has_peer_ip_address() const
Definition: interconnect.h:746
bool has_link_type() const
Definition: interconnect.h:549
const StringPiece get_peer_ip_address() const
Definition: interconnect.h:761
Definition: accelerator_config.cc:41
void set_name(const StringPiece &value)
Definition: interconnect.h:659
void clear_noc_contact_email()
Definition: interconnect.h:675
const StringPiece get_self_link() const
Definition: interconnect.h:875
bool has_self_link() const
Definition: interconnect.h:860
bool has_provisioned_link_count() const
Definition: interconnect.h:785
bool has_name() const
Definition: interconnect.h:625
bool has_circuit_infos() const
Definition: interconnect.h:139
void clear_link_type()
Definition: interconnect.h:556
const StringPiece GetTypeName() const
Definition: interconnect.h:90
bool has_admin_enabled() const
Definition: interconnect.h:99
bool has_requested_link_count() const
Definition: interconnect.h:822
void set_description(const StringPiece &value)
Definition: interconnect.h:276
void set_admin_enabled(bool value)
Definition: interconnect.h:129
const StringPiece get_creation_timestamp() const
Definition: interconnect.h:187
Definition: interconnect.h:57
int32 get_provisioned_link_count() const
Definition: interconnect.h:800
void set_provisioned_link_count(int32 value)
Definition: interconnect.h:812
const StringPiece get_description() const
Definition: interconnect.h:262
void clear_provisioned_link_count()
Definition: interconnect.h:792
const StringPiece get_interconnect_type() const
Definition: interconnect.h:488
void clear_operational_status()
Definition: interconnect.h:715
client::JsonCppArray< string > mutable_interconnectAttachments()
Definition: interconnect.h:463
void clear_interconnect_attachments()
Definition: interconnect.h:440
const StringPiece get_location() const
Definition: interconnect.h:602
void clear_description()
Definition: interconnect.h:254
bool has_state() const
Definition: interconnect.h:897
bool has_id() const
Definition: interconnect.h:394