container  v1
set_node_pool_management_request.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_SET_NODE_POOL_MANAGEMENT_REQUEST_H_
31 #define GOOGLE_CONTAINER_API_SET_NODE_POOL_MANAGEMENT_REQUEST_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 #include "google/container_api/node_management.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
44 namespace google_container_api {
45 using namespace googleapis;
46 
53 class SetNodePoolManagementRequest : public client::JsonCppData {
54  public:
60  static SetNodePoolManagementRequest* New();
61 
67  explicit SetNodePoolManagementRequest(const Json::Value& storage);
68 
74  explicit SetNodePoolManagementRequest(Json::Value* storage);
75 
80 
86  const StringPiece GetTypeName() const {
87  return StringPiece("google_container_api::SetNodePoolManagementRequest");
88  }
89 
95  bool has_cluster_id() const {
96  return Storage().isMember("clusterId");
97  }
98 
103  MutableStorage()->removeMember("clusterId");
104  }
105 
106 
110  const StringPiece get_cluster_id() const {
111  const Json::Value& v = Storage("clusterId");
112  if (v == Json::Value::null) return StringPiece("");
113  return StringPiece(v.asCString());
114  }
115 
126  void set_cluster_id(const StringPiece& value) {
127  *MutableStorage("clusterId") = value.data();
128  }
129 
135  bool has_management() const {
136  return Storage().isMember("management");
137  }
138 
143  MutableStorage()->removeMember("management");
144  }
145 
146 
150  const NodeManagement get_management() const;
151 
160  NodeManagement mutable_management();
161 
167  bool has_name() const {
168  return Storage().isMember("name");
169  }
170 
174  void clear_name() {
175  MutableStorage()->removeMember("name");
176  }
177 
178 
182  const StringPiece get_name() const {
183  const Json::Value& v = Storage("name");
184  if (v == Json::Value::null) return StringPiece("");
185  return StringPiece(v.asCString());
186  }
187 
197  void set_name(const StringPiece& value) {
198  *MutableStorage("name") = value.data();
199  }
200 
206  bool has_node_pool_id() const {
207  return Storage().isMember("nodePoolId");
208  }
209 
214  MutableStorage()->removeMember("nodePoolId");
215  }
216 
217 
221  const StringPiece get_node_pool_id() const {
222  const Json::Value& v = Storage("nodePoolId");
223  if (v == Json::Value::null) return StringPiece("");
224  return StringPiece(v.asCString());
225  }
226 
237  void set_node_pool_id(const StringPiece& value) {
238  *MutableStorage("nodePoolId") = value.data();
239  }
240 
246  bool has_project_id() const {
247  return Storage().isMember("projectId");
248  }
249 
254  MutableStorage()->removeMember("projectId");
255  }
256 
257 
261  const StringPiece get_project_id() const {
262  const Json::Value& v = Storage("projectId");
263  if (v == Json::Value::null) return StringPiece("");
264  return StringPiece(v.asCString());
265  }
266 
278  void set_project_id(const StringPiece& value) {
279  *MutableStorage("projectId") = value.data();
280  }
281 
287  bool has_zone() const {
288  return Storage().isMember("zone");
289  }
290 
294  void clear_zone() {
295  MutableStorage()->removeMember("zone");
296  }
297 
298 
302  const StringPiece get_zone() const {
303  const Json::Value& v = Storage("zone");
304  if (v == Json::Value::null) return StringPiece("");
305  return StringPiece(v.asCString());
306  }
307 
320  void set_zone(const StringPiece& value) {
321  *MutableStorage("zone") = value.data();
322  }
323 
324  private:
325  void operator=(const SetNodePoolManagementRequest&);
326 }; // SetNodePoolManagementRequest
327 } // namespace google_container_api
328 #endif // GOOGLE_CONTAINER_API_SET_NODE_POOL_MANAGEMENT_REQUEST_H_
bool has_cluster_id() const
Definition: set_node_pool_management_request.h:95
const StringPiece get_cluster_id() const
Definition: set_node_pool_management_request.h:110
bool has_project_id() const
Definition: set_node_pool_management_request.h:246
void clear_node_pool_id()
Definition: set_node_pool_management_request.h:213
void set_name(const StringPiece &value)
Definition: set_node_pool_management_request.h:197
const StringPiece get_node_pool_id() const
Definition: set_node_pool_management_request.h:221
const StringPiece GetTypeName() const
Definition: set_node_pool_management_request.h:86
void set_project_id(const StringPiece &value)
Definition: set_node_pool_management_request.h:278
void clear_project_id()
Definition: set_node_pool_management_request.h:253
bool has_name() const
Definition: set_node_pool_management_request.h:167
bool has_zone() const
Definition: set_node_pool_management_request.h:287
const StringPiece get_name() const
Definition: set_node_pool_management_request.h:182
Definition: set_node_pool_management_request.h:53
void clear_zone()
Definition: set_node_pool_management_request.h:294
void clear_management()
Definition: set_node_pool_management_request.h:142
Definition: accelerator_config.h:39
const StringPiece get_zone() const
Definition: set_node_pool_management_request.h:302
bool has_node_pool_id() const
Definition: set_node_pool_management_request.h:206
bool has_management() const
Definition: set_node_pool_management_request.h:135
void set_cluster_id(const StringPiece &value)
Definition: set_node_pool_management_request.h:126
void set_zone(const StringPiece &value)
Definition: set_node_pool_management_request.h:320
void clear_cluster_id()
Definition: set_node_pool_management_request.h:102
Definition: accelerator_config.cc:41
const StringPiece get_project_id() const
Definition: set_node_pool_management_request.h:261
Definition: node_management.h:52
void set_node_pool_id(const StringPiece &value)
Definition: set_node_pool_management_request.h:237
void clear_name()
Definition: set_node_pool_management_request.h:174