container  v1
node_management.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_NODE_MANAGEMENT_H_
31 #define GOOGLE_CONTAINER_API_NODE_MANAGEMENT_H_
32 
33 #include "googleapis/base/macros.h"
34 #include "googleapis/client/data/jsoncpp_data.h"
35 #include "googleapis/strings/stringpiece.h"
36 
37 #include "google/container_api/auto_upgrade_options.h"
38 
39 namespace Json {
40 class Value;
41 } // namespace Json
42 
43 namespace google_container_api {
44 using namespace googleapis;
45 
52 class NodeManagement : public client::JsonCppData {
53  public:
59  static NodeManagement* New();
60 
66  explicit NodeManagement(const Json::Value& storage);
67 
73  explicit NodeManagement(Json::Value* storage);
74 
78  virtual ~NodeManagement();
79 
85  const StringPiece GetTypeName() const {
86  return StringPiece("google_container_api::NodeManagement");
87  }
88 
94  bool has_auto_repair() const {
95  return Storage().isMember("autoRepair");
96  }
97 
102  MutableStorage()->removeMember("autoRepair");
103  }
104 
105 
109  bool get_auto_repair() const {
110  const Json::Value& storage = Storage("autoRepair");
111  return client::JsonValueToCppValueHelper<bool >(storage);
112  }
113 
124  void set_auto_repair(bool value) {
125  client::SetJsonValueFromCppValueHelper<bool >(
126  value, MutableStorage("autoRepair"));
127  }
128 
134  bool has_auto_upgrade() const {
135  return Storage().isMember("autoUpgrade");
136  }
137 
142  MutableStorage()->removeMember("autoUpgrade");
143  }
144 
145 
149  bool get_auto_upgrade() const {
150  const Json::Value& storage = Storage("autoUpgrade");
151  return client::JsonValueToCppValueHelper<bool >(storage);
152  }
153 
163  void set_auto_upgrade(bool value) {
164  client::SetJsonValueFromCppValueHelper<bool >(
165  value, MutableStorage("autoUpgrade"));
166  }
167 
173  bool has_upgrade_options() const {
174  return Storage().isMember("upgradeOptions");
175  }
176 
181  MutableStorage()->removeMember("upgradeOptions");
182  }
183 
184 
189  const AutoUpgradeOptions get_upgrade_options() const;
190 
199  AutoUpgradeOptions mutable_upgradeOptions();
200 
201  private:
202  void operator=(const NodeManagement&);
203 }; // NodeManagement
204 } // namespace google_container_api
205 #endif // GOOGLE_CONTAINER_API_NODE_MANAGEMENT_H_
bool get_auto_upgrade() const
Definition: node_management.h:149
Definition: auto_upgrade_options.h:51
bool get_auto_repair() const
Definition: node_management.h:109
bool has_upgrade_options() const
Definition: node_management.h:173
void clear_upgrade_options()
Definition: node_management.h:180
void set_auto_repair(bool value)
Definition: node_management.h:124
const StringPiece GetTypeName() const
Definition: node_management.h:85
Definition: accelerator_config.h:39
Definition: accelerator_config.cc:41
void clear_auto_repair()
Definition: node_management.h:101
bool has_auto_upgrade() const
Definition: node_management.h:134
Definition: node_management.h:52
bool has_auto_repair() const
Definition: node_management.h:94
void set_auto_upgrade(bool value)
Definition: node_management.h:163
void clear_auto_upgrade()
Definition: node_management.h:141