compute  v1
interconnect.h
1 // Copyright 2010 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 // use this file except in compliance with the License. You may obtain a copy of
5 // the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 // License for the specific language governing permissions and limitations under
13 // the License.
14 
15 // This code was generated by google-apis-code-generator 1.5.1
16 // Build date: 2018-10-08 17:45:39 UTC
17 // on: 2019-05-15, 03:08:54 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Compute Engine API (compute/v1)
24 // Generated from:
25 // Version: v1
26 // Revision: 214
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_COMPUTE_API_INTERCONNECT_H_
31 #define GOOGLE_COMPUTE_API_INTERCONNECT_H_
32 
33 #include <string>
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"
38 
39 #include "google/compute_api/interconnect_circuit_info.h"
40 #include "google/compute_api/interconnect_outage_notification.h"
41 
42 namespace Json {
43 class Value;
44 } // namespace Json
45 
46 namespace google_compute_api {
47 using namespace googleapis;
48 
57 class Interconnect : public client::JsonCppData {
58  public:
64  static Interconnect* New();
65 
71  explicit Interconnect(const Json::Value& storage);
72 
78  explicit Interconnect(Json::Value* storage);
79 
83  virtual ~Interconnect();
84 
90  const StringPiece GetTypeName() const {
91  return StringPiece("google_compute_api::Interconnect");
92  }
93 
99  bool has_admin_enabled() const {
100  return Storage().isMember("adminEnabled");
101  }
102 
107  MutableStorage()->removeMember("adminEnabled");
108  }
109 
110 
114  bool get_admin_enabled() const {
115  const Json::Value& storage = Storage("adminEnabled");
116  return client::JsonValueToCppValueHelper<bool >(storage);
117  }
118 
129  void set_admin_enabled(bool value) {
130  client::SetJsonValueFromCppValueHelper<bool >(
131  value, MutableStorage("adminEnabled"));
132  }
133 
139  bool has_circuit_infos() const {
140  return Storage().isMember("circuitInfos");
141  }
142 
147  MutableStorage()->removeMember("circuitInfos");
148  }
149 
150 
154  const client::JsonCppArray<InterconnectCircuitInfo > get_circuit_infos() const;
155 
165  client::JsonCppArray<InterconnectCircuitInfo > mutable_circuitInfos();
166 
172  bool has_creation_timestamp() const {
173  return Storage().isMember("creationTimestamp");
174  }
175 
180  MutableStorage()->removeMember("creationTimestamp");
181  }
182 
183 
187  const StringPiece get_creation_timestamp() const {
188  const Json::Value& v = Storage("creationTimestamp");
189  if (v == Json::Value::null) return StringPiece("");
190  return StringPiece(v.asCString());
191  }
192 
200  void set_creation_timestamp(const StringPiece& value) {
201  *MutableStorage("creationTimestamp") = value.data();
202  }
203 
209  bool has_customer_name() const {
210  return Storage().isMember("customerName");
211  }
212 
217  MutableStorage()->removeMember("customerName");
218  }
219 
220 
224  const StringPiece get_customer_name() const {
225  const Json::Value& v = Storage("customerName");
226  if (v == Json::Value::null) return StringPiece("");
227  return StringPiece(v.asCString());
228  }
229 
238  void set_customer_name(const StringPiece& value) {
239  *MutableStorage("customerName") = value.data();
240  }
241 
247  bool has_description() const {
248  return Storage().isMember("description");
249  }
250 
255  MutableStorage()->removeMember("description");
256  }
257 
258 
262  const StringPiece get_description() const {
263  const Json::Value& v = Storage("description");
264  if (v == Json::Value::null) return StringPiece("");
265  return StringPiece(v.asCString());
266  }
267 
276  void set_description(const StringPiece& value) {
277  *MutableStorage("description") = value.data();
278  }
279 
285  bool has_expected_outages() const {
286  return Storage().isMember("expectedOutages");
287  }
288 
293  MutableStorage()->removeMember("expectedOutages");
294  }
295 
296 
301  const client::JsonCppArray<InterconnectOutageNotification > get_expected_outages() const;
302 
311  client::JsonCppArray<InterconnectOutageNotification > mutable_expectedOutages();
312 
318  bool has_google_ip_address() const {
319  return Storage().isMember("googleIpAddress");
320  }
321 
326  MutableStorage()->removeMember("googleIpAddress");
327  }
328 
329 
333  const StringPiece get_google_ip_address() const {
334  const Json::Value& v = Storage("googleIpAddress");
335  if (v == Json::Value::null) return StringPiece("");
336  return StringPiece(v.asCString());
337  }
338 
347  void set_google_ip_address(const StringPiece& value) {
348  *MutableStorage("googleIpAddress") = value.data();
349  }
350 
356  bool has_google_reference_id() const {
357  return Storage().isMember("googleReferenceId");
358  }
359 
364  MutableStorage()->removeMember("googleReferenceId");
365  }
366 
367 
371  const StringPiece get_google_reference_id() const {
372  const Json::Value& v = Storage("googleReferenceId");
373  if (v == Json::Value::null) return StringPiece("");
374  return StringPiece(v.asCString());
375  }
376 
385  void set_google_reference_id(const StringPiece& value) {
386  *MutableStorage("googleReferenceId") = value.data();
387  }
388 
394  bool has_id() const {
395  return Storage().isMember("id");
396  }
397 
401  void clear_id() {
402  MutableStorage()->removeMember("id");
403  }
404 
405 
409  uint64 get_id() const {
410  const Json::Value& storage = Storage("id");
411  return client::JsonValueToCppValueHelper<uint64 >(storage);
412  }
413 
422  void set_id(uint64 value) {
423  client::SetJsonValueFromCppValueHelper<uint64 >(
424  value, MutableStorage("id"));
425  }
426 
434  return Storage().isMember("interconnectAttachments");
435  }
436 
441  MutableStorage()->removeMember("interconnectAttachments");
442  }
443 
444 
449  const client::JsonCppArray<string > get_interconnect_attachments() const {
450  const Json::Value& storage = Storage("interconnectAttachments");
451  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
452  }
453 
463  client::JsonCppArray<string > mutable_interconnectAttachments() {
464  Json::Value* storage = MutableStorage("interconnectAttachments");
465  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
466  }
467 
473  bool has_interconnect_type() const {
474  return Storage().isMember("interconnectType");
475  }
476 
481  MutableStorage()->removeMember("interconnectType");
482  }
483 
484 
488  const StringPiece get_interconnect_type() const {
489  const Json::Value& v = Storage("interconnectType");
490  if (v == Json::Value::null) return StringPiece("");
491  return StringPiece(v.asCString());
492  }
493 
502  void set_interconnect_type(const StringPiece& value) {
503  *MutableStorage("interconnectType") = value.data();
504  }
505 
511  bool has_kind() const {
512  return Storage().isMember("kind");
513  }
514 
518  void clear_kind() {
519  MutableStorage()->removeMember("kind");
520  }
521 
522 
526  const StringPiece get_kind() const {
527  const Json::Value& v = Storage("kind");
528  if (v == Json::Value::null) return StringPiece("");
529  return StringPiece(v.asCString());
530  }
531 
540  void set_kind(const StringPiece& value) {
541  *MutableStorage("kind") = value.data();
542  }
543 
549  bool has_link_type() const {
550  return Storage().isMember("linkType");
551  }
552 
557  MutableStorage()->removeMember("linkType");
558  }
559 
560 
564  const StringPiece get_link_type() const {
565  const Json::Value& v = Storage("linkType");
566  if (v == Json::Value::null) return StringPiece("");
567  return StringPiece(v.asCString());
568  }
569 
578  void set_link_type(const StringPiece& value) {
579  *MutableStorage("linkType") = value.data();
580  }
581 
587  bool has_location() const {
588  return Storage().isMember("location");
589  }
590 
594  void clear_location() {
595  MutableStorage()->removeMember("location");
596  }
597 
598 
602  const StringPiece get_location() const {
603  const Json::Value& v = Storage("location");
604  if (v == Json::Value::null) return StringPiece("");
605  return StringPiece(v.asCString());
606  }
607 
616  void set_location(const StringPiece& value) {
617  *MutableStorage("location") = value.data();
618  }
619 
625  bool has_name() const {
626  return Storage().isMember("name");
627  }
628 
632  void clear_name() {
633  MutableStorage()->removeMember("name");
634  }
635 
636 
640  const StringPiece get_name() const {
641  const Json::Value& v = Storage("name");
642  if (v == Json::Value::null) return StringPiece("");
643  return StringPiece(v.asCString());
644  }
645 
659  void set_name(const StringPiece& value) {
660  *MutableStorage("name") = value.data();
661  }
662 
668  bool has_noc_contact_email() const {
669  return Storage().isMember("nocContactEmail");
670  }
671 
676  MutableStorage()->removeMember("nocContactEmail");
677  }
678 
679 
683  const StringPiece get_noc_contact_email() const {
684  const Json::Value& v = Storage("nocContactEmail");
685  if (v == Json::Value::null) return StringPiece("");
686  return StringPiece(v.asCString());
687  }
688 
699  void set_noc_contact_email(const StringPiece& value) {
700  *MutableStorage("nocContactEmail") = value.data();
701  }
702 
708  bool has_operational_status() const {
709  return Storage().isMember("operationalStatus");
710  }
711 
716  MutableStorage()->removeMember("operationalStatus");
717  }
718 
719 
723  const StringPiece get_operational_status() const {
724  const Json::Value& v = Storage("operationalStatus");
725  if (v == Json::Value::null) return StringPiece("");
726  return StringPiece(v.asCString());
727  }
728 
737  void set_operational_status(const StringPiece& value) {
738  *MutableStorage("operationalStatus") = value.data();
739  }
740 
746  bool has_peer_ip_address() const {
747  return Storage().isMember("peerIpAddress");
748  }
749 
754  MutableStorage()->removeMember("peerIpAddress");
755  }
756 
757 
761  const StringPiece get_peer_ip_address() const {
762  const Json::Value& v = Storage("peerIpAddress");
763  if (v == Json::Value::null) return StringPiece("");
764  return StringPiece(v.asCString());
765  }
766 
776  void set_peer_ip_address(const StringPiece& value) {
777  *MutableStorage("peerIpAddress") = value.data();
778  }
779 
786  return Storage().isMember("provisionedLinkCount");
787  }
788 
793  MutableStorage()->removeMember("provisionedLinkCount");
794  }
795 
796 
801  const Json::Value& storage = Storage("provisionedLinkCount");
802  return client::JsonValueToCppValueHelper<int32 >(storage);
803  }
804 
812  void set_provisioned_link_count(int32 value) {
813  client::SetJsonValueFromCppValueHelper<int32 >(
814  value, MutableStorage("provisionedLinkCount"));
815  }
816 
823  return Storage().isMember("requestedLinkCount");
824  }
825 
830  MutableStorage()->removeMember("requestedLinkCount");
831  }
832 
833 
837  int32 get_requested_link_count() const {
838  const Json::Value& storage = Storage("requestedLinkCount");
839  return client::JsonValueToCppValueHelper<int32 >(storage);
840  }
841 
850  void set_requested_link_count(int32 value) {
851  client::SetJsonValueFromCppValueHelper<int32 >(
852  value, MutableStorage("requestedLinkCount"));
853  }
854 
860  bool has_self_link() const {
861  return Storage().isMember("selfLink");
862  }
863 
868  MutableStorage()->removeMember("selfLink");
869  }
870 
871 
875  const StringPiece get_self_link() const {
876  const Json::Value& v = Storage("selfLink");
877  if (v == Json::Value::null) return StringPiece("");
878  return StringPiece(v.asCString());
879  }
880 
888  void set_self_link(const StringPiece& value) {
889  *MutableStorage("selfLink") = value.data();
890  }
891 
897  bool has_state() const {
898  return Storage().isMember("state");
899  }
900 
904  void clear_state() {
905  MutableStorage()->removeMember("state");
906  }
907 
908 
912  const StringPiece get_state() const {
913  const Json::Value& v = Storage("state");
914  if (v == Json::Value::null) return StringPiece("");
915  return StringPiece(v.asCString());
916  }
917 
926  void set_state(const StringPiece& value) {
927  *MutableStorage("state") = value.data();
928  }
929 
930  private:
931  void operator=(const Interconnect&);
932 }; // Interconnect
933 } // namespace google_compute_api
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