container  v1
ipa_llocation_policy.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: 2020-03-07, 01:20:42 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Kubernetes Engine API (container/v1)
24 // Generated from:
25 // Version: v1
26 // Revision: 93
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_CONTAINER_API_IPA_LLOCATION_POLICY_H_
31 #define GOOGLE_CONTAINER_API_IPA_LLOCATION_POLICY_H_
32 
33 #include <string>
34 #include "googleapis/base/macros.h"
35 #include "googleapis/client/data/jsoncpp_data.h"
36 #include "googleapis/strings/stringpiece.h"
37 
38 namespace Json {
39 class Value;
40 } // namespace Json
41 
42 namespace google_container_api {
43 using namespace googleapis;
44 
50 class IPAllocationPolicy : public client::JsonCppData {
51  public:
57  static IPAllocationPolicy* New();
58 
64  explicit IPAllocationPolicy(const Json::Value& storage);
65 
71  explicit IPAllocationPolicy(Json::Value* storage);
72 
76  virtual ~IPAllocationPolicy();
77 
83  const StringPiece GetTypeName() const {
84  return StringPiece("google_container_api::IPAllocationPolicy");
85  }
86 
92  bool has_cluster_ipv4_cidr() const {
93  return Storage().isMember("clusterIpv4Cidr");
94  }
95 
100  MutableStorage()->removeMember("clusterIpv4Cidr");
101  }
102 
103 
107  const StringPiece get_cluster_ipv4_cidr() const {
108  const Json::Value& v = Storage("clusterIpv4Cidr");
109  if (v == Json::Value::null) return StringPiece("");
110  return StringPiece(v.asCString());
111  }
112 
120  void set_cluster_ipv4_cidr(const StringPiece& value) {
121  *MutableStorage("clusterIpv4Cidr") = value.data();
122  }
123 
130  return Storage().isMember("clusterIpv4CidrBlock");
131  }
132 
137  MutableStorage()->removeMember("clusterIpv4CidrBlock");
138  }
139 
140 
144  const StringPiece get_cluster_ipv4_cidr_block() const {
145  const Json::Value& v = Storage("clusterIpv4CidrBlock");
146  if (v == Json::Value::null) return StringPiece("");
147  return StringPiece(v.asCString());
148  }
149 
172  void set_cluster_ipv4_cidr_block(const StringPiece& value) {
173  *MutableStorage("clusterIpv4CidrBlock") = value.data();
174  }
175 
184  return Storage().isMember("clusterSecondaryRangeName");
185  }
186 
191  MutableStorage()->removeMember("clusterSecondaryRangeName");
192  }
193 
194 
198  const StringPiece get_cluster_secondary_range_name() const {
199  const Json::Value& v = Storage("clusterSecondaryRangeName");
200  if (v == Json::Value::null) return StringPiece("");
201  return StringPiece(v.asCString());
202  }
203 
217  void set_cluster_secondary_range_name(const StringPiece& value) {
218  *MutableStorage("clusterSecondaryRangeName") = value.data();
219  }
220 
226  bool has_create_subnetwork() const {
227  return Storage().isMember("createSubnetwork");
228  }
229 
234  MutableStorage()->removeMember("createSubnetwork");
235  }
236 
237 
241  bool get_create_subnetwork() const {
242  const Json::Value& storage = Storage("createSubnetwork");
243  return client::JsonValueToCppValueHelper<bool >(storage);
244  }
245 
255  void set_create_subnetwork(bool value) {
256  client::SetJsonValueFromCppValueHelper<bool >(
257  value, MutableStorage("createSubnetwork"));
258  }
259 
265  bool has_node_ipv4_cidr() const {
266  return Storage().isMember("nodeIpv4Cidr");
267  }
268 
273  MutableStorage()->removeMember("nodeIpv4Cidr");
274  }
275 
276 
280  const StringPiece get_node_ipv4_cidr() const {
281  const Json::Value& v = Storage("nodeIpv4Cidr");
282  if (v == Json::Value::null) return StringPiece("");
283  return StringPiece(v.asCString());
284  }
285 
293  void set_node_ipv4_cidr(const StringPiece& value) {
294  *MutableStorage("nodeIpv4Cidr") = value.data();
295  }
296 
303  return Storage().isMember("nodeIpv4CidrBlock");
304  }
305 
310  MutableStorage()->removeMember("nodeIpv4CidrBlock");
311  }
312 
313 
317  const StringPiece get_node_ipv4_cidr_block() const {
318  const Json::Value& v = Storage("nodeIpv4CidrBlock");
319  if (v == Json::Value::null) return StringPiece("");
320  return StringPiece(v.asCString());
321  }
322 
344  void set_node_ipv4_cidr_block(const StringPiece& value) {
345  *MutableStorage("nodeIpv4CidrBlock") = value.data();
346  }
347 
353  bool has_services_ipv4_cidr() const {
354  return Storage().isMember("servicesIpv4Cidr");
355  }
356 
361  MutableStorage()->removeMember("servicesIpv4Cidr");
362  }
363 
364 
368  const StringPiece get_services_ipv4_cidr() const {
369  const Json::Value& v = Storage("servicesIpv4Cidr");
370  if (v == Json::Value::null) return StringPiece("");
371  return StringPiece(v.asCString());
372  }
373 
381  void set_services_ipv4_cidr(const StringPiece& value) {
382  *MutableStorage("servicesIpv4Cidr") = value.data();
383  }
384 
391  return Storage().isMember("servicesIpv4CidrBlock");
392  }
393 
398  MutableStorage()->removeMember("servicesIpv4CidrBlock");
399  }
400 
401 
405  const StringPiece get_services_ipv4_cidr_block() const {
406  const Json::Value& v = Storage("servicesIpv4CidrBlock");
407  if (v == Json::Value::null) return StringPiece("");
408  return StringPiece(v.asCString());
409  }
410 
433  void set_services_ipv4_cidr_block(const StringPiece& value) {
434  *MutableStorage("servicesIpv4CidrBlock") = value.data();
435  }
436 
445  return Storage().isMember("servicesSecondaryRangeName");
446  }
447 
452  MutableStorage()->removeMember("servicesSecondaryRangeName");
453  }
454 
455 
459  const StringPiece get_services_secondary_range_name() const {
460  const Json::Value& v = Storage("servicesSecondaryRangeName");
461  if (v == Json::Value::null) return StringPiece("");
462  return StringPiece(v.asCString());
463  }
464 
478  void set_services_secondary_range_name(const StringPiece& value) {
479  *MutableStorage("servicesSecondaryRangeName") = value.data();
480  }
481 
487  bool has_subnetwork_name() const {
488  return Storage().isMember("subnetworkName");
489  }
490 
495  MutableStorage()->removeMember("subnetworkName");
496  }
497 
498 
502  const StringPiece get_subnetwork_name() const {
503  const Json::Value& v = Storage("subnetworkName");
504  if (v == Json::Value::null) return StringPiece("");
505  return StringPiece(v.asCString());
506  }
507 
517  void set_subnetwork_name(const StringPiece& value) {
518  *MutableStorage("subnetworkName") = value.data();
519  }
520 
526  bool has_tpu_ipv4_cidr_block() const {
527  return Storage().isMember("tpuIpv4CidrBlock");
528  }
529 
534  MutableStorage()->removeMember("tpuIpv4CidrBlock");
535  }
536 
537 
541  const StringPiece get_tpu_ipv4_cidr_block() const {
542  const Json::Value& v = Storage("tpuIpv4CidrBlock");
543  if (v == Json::Value::null) return StringPiece("");
544  return StringPiece(v.asCString());
545  }
546 
569  void set_tpu_ipv4_cidr_block(const StringPiece& value) {
570  *MutableStorage("tpuIpv4CidrBlock") = value.data();
571  }
572 
578  bool has_use_ip_aliases() const {
579  return Storage().isMember("useIpAliases");
580  }
581 
586  MutableStorage()->removeMember("useIpAliases");
587  }
588 
589 
593  bool get_use_ip_aliases() const {
594  const Json::Value& storage = Storage("useIpAliases");
595  return client::JsonValueToCppValueHelper<bool >(storage);
596  }
597 
605  void set_use_ip_aliases(bool value) {
606  client::SetJsonValueFromCppValueHelper<bool >(
607  value, MutableStorage("useIpAliases"));
608  }
609 
610  private:
611  void operator=(const IPAllocationPolicy&);
612 }; // IPAllocationPolicy
613 } // namespace google_container_api
614 #endif // GOOGLE_CONTAINER_API_IPA_LLOCATION_POLICY_H_
const StringPiece get_cluster_secondary_range_name() const
Definition: ipa_llocation_policy.h:198
void set_services_ipv4_cidr(const StringPiece &value)
Definition: ipa_llocation_policy.h:381
bool has_services_secondary_range_name() const
Definition: ipa_llocation_policy.h:444
bool has_cluster_secondary_range_name() const
Definition: ipa_llocation_policy.h:183
bool has_subnetwork_name() const
Definition: ipa_llocation_policy.h:487
void clear_cluster_secondary_range_name()
Definition: ipa_llocation_policy.h:190
const StringPiece get_services_secondary_range_name() const
Definition: ipa_llocation_policy.h:459
bool has_node_ipv4_cidr_block() const
Definition: ipa_llocation_policy.h:302
const StringPiece get_subnetwork_name() const
Definition: ipa_llocation_policy.h:502
void set_node_ipv4_cidr_block(const StringPiece &value)
Definition: ipa_llocation_policy.h:344
void set_services_ipv4_cidr_block(const StringPiece &value)
Definition: ipa_llocation_policy.h:433
void clear_tpu_ipv4_cidr_block()
Definition: ipa_llocation_policy.h:533
const StringPiece get_cluster_ipv4_cidr_block() const
Definition: ipa_llocation_policy.h:144
bool has_create_subnetwork() const
Definition: ipa_llocation_policy.h:226
void set_use_ip_aliases(bool value)
Definition: ipa_llocation_policy.h:605
void set_node_ipv4_cidr(const StringPiece &value)
Definition: ipa_llocation_policy.h:293
void set_subnetwork_name(const StringPiece &value)
Definition: ipa_llocation_policy.h:517
void clear_use_ip_aliases()
Definition: ipa_llocation_policy.h:585
bool has_cluster_ipv4_cidr_block() const
Definition: ipa_llocation_policy.h:129
void clear_create_subnetwork()
Definition: ipa_llocation_policy.h:233
Definition: ipa_llocation_policy.h:50
void set_create_subnetwork(bool value)
Definition: ipa_llocation_policy.h:255
void clear_cluster_ipv4_cidr_block()
Definition: ipa_llocation_policy.h:136
void clear_node_ipv4_cidr()
Definition: ipa_llocation_policy.h:272
bool has_services_ipv4_cidr_block() const
Definition: ipa_llocation_policy.h:390
void set_cluster_ipv4_cidr(const StringPiece &value)
Definition: ipa_llocation_policy.h:120
const StringPiece get_cluster_ipv4_cidr() const
Definition: ipa_llocation_policy.h:107
bool has_use_ip_aliases() const
Definition: ipa_llocation_policy.h:578
void clear_services_secondary_range_name()
Definition: ipa_llocation_policy.h:451
const StringPiece get_node_ipv4_cidr() const
Definition: ipa_llocation_policy.h:280
void clear_services_ipv4_cidr_block()
Definition: ipa_llocation_policy.h:397
bool get_use_ip_aliases() const
Definition: ipa_llocation_policy.h:593
void clear_services_ipv4_cidr()
Definition: ipa_llocation_policy.h:360
Definition: accelerator_config.h:39
bool get_create_subnetwork() const
Definition: ipa_llocation_policy.h:241
const StringPiece get_node_ipv4_cidr_block() const
Definition: ipa_llocation_policy.h:317
const StringPiece get_services_ipv4_cidr_block() const
Definition: ipa_llocation_policy.h:405
bool has_services_ipv4_cidr() const
Definition: ipa_llocation_policy.h:353
const StringPiece get_services_ipv4_cidr() const
Definition: ipa_llocation_policy.h:368
Definition: accelerator_config.cc:41
void set_services_secondary_range_name(const StringPiece &value)
Definition: ipa_llocation_policy.h:478
void set_cluster_ipv4_cidr_block(const StringPiece &value)
Definition: ipa_llocation_policy.h:172
void clear_node_ipv4_cidr_block()
Definition: ipa_llocation_policy.h:309
bool has_node_ipv4_cidr() const
Definition: ipa_llocation_policy.h:265
const StringPiece get_tpu_ipv4_cidr_block() const
Definition: ipa_llocation_policy.h:541
bool has_cluster_ipv4_cidr() const
Definition: ipa_llocation_policy.h:92
void clear_cluster_ipv4_cidr()
Definition: ipa_llocation_policy.h:99
bool has_tpu_ipv4_cidr_block() const
Definition: ipa_llocation_policy.h:526
void clear_subnetwork_name()
Definition: ipa_llocation_policy.h:494
void set_cluster_secondary_range_name(const StringPiece &value)
Definition: ipa_llocation_policy.h:217
const StringPiece GetTypeName() const
Definition: ipa_llocation_policy.h:83
void set_tpu_ipv4_cidr_block(const StringPiece &value)
Definition: ipa_llocation_policy.h:569