container  v1
update_node_pool_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_UPDATE_NODE_POOL_REQUEST_H_
31 #define GOOGLE_CONTAINER_API_UPDATE_NODE_POOL_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/upgrade_settings.h"
39 #include "google/container_api/workload_metadata_config.h"
40 
41 namespace Json {
42 class Value;
43 } // namespace Json
44 
45 namespace google_container_api {
46 using namespace googleapis;
47 
53 class UpdateNodePoolRequest : public client::JsonCppData {
54  public:
60  static UpdateNodePoolRequest* New();
61 
67  explicit UpdateNodePoolRequest(const Json::Value& storage);
68 
74  explicit UpdateNodePoolRequest(Json::Value* storage);
75 
79  virtual ~UpdateNodePoolRequest();
80 
86  const StringPiece GetTypeName() const {
87  return StringPiece("google_container_api::UpdateNodePoolRequest");
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_image_type() const {
136  return Storage().isMember("imageType");
137  }
138 
143  MutableStorage()->removeMember("imageType");
144  }
145 
146 
150  const StringPiece get_image_type() const {
151  const Json::Value& v = Storage("imageType");
152  if (v == Json::Value::null) return StringPiece("");
153  return StringPiece(v.asCString());
154  }
155 
163  void set_image_type(const StringPiece& value) {
164  *MutableStorage("imageType") = value.data();
165  }
166 
172  bool has_locations() const {
173  return Storage().isMember("locations");
174  }
175 
180  MutableStorage()->removeMember("locations");
181  }
182 
183 
187  const client::JsonCppArray<string > get_locations() const {
188  const Json::Value& storage = Storage("locations");
189  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
190  }
191 
204  client::JsonCppArray<string > mutable_locations() {
205  Json::Value* storage = MutableStorage("locations");
206  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
207  }
208 
214  bool has_name() const {
215  return Storage().isMember("name");
216  }
217 
221  void clear_name() {
222  MutableStorage()->removeMember("name");
223  }
224 
225 
229  const StringPiece get_name() const {
230  const Json::Value& v = Storage("name");
231  if (v == Json::Value::null) return StringPiece("");
232  return StringPiece(v.asCString());
233  }
234 
244  void set_name(const StringPiece& value) {
245  *MutableStorage("name") = value.data();
246  }
247 
253  bool has_node_pool_id() const {
254  return Storage().isMember("nodePoolId");
255  }
256 
261  MutableStorage()->removeMember("nodePoolId");
262  }
263 
264 
268  const StringPiece get_node_pool_id() const {
269  const Json::Value& v = Storage("nodePoolId");
270  if (v == Json::Value::null) return StringPiece("");
271  return StringPiece(v.asCString());
272  }
273 
284  void set_node_pool_id(const StringPiece& value) {
285  *MutableStorage("nodePoolId") = value.data();
286  }
287 
293  bool has_node_version() const {
294  return Storage().isMember("nodeVersion");
295  }
296 
301  MutableStorage()->removeMember("nodeVersion");
302  }
303 
304 
308  const StringPiece get_node_version() const {
309  const Json::Value& v = Storage("nodeVersion");
310  if (v == Json::Value::null) return StringPiece("");
311  return StringPiece(v.asCString());
312  }
313 
338  void set_node_version(const StringPiece& value) {
339  *MutableStorage("nodeVersion") = value.data();
340  }
341 
347  bool has_project_id() const {
348  return Storage().isMember("projectId");
349  }
350 
355  MutableStorage()->removeMember("projectId");
356  }
357 
358 
362  const StringPiece get_project_id() const {
363  const Json::Value& v = Storage("projectId");
364  if (v == Json::Value::null) return StringPiece("");
365  return StringPiece(v.asCString());
366  }
367 
379  void set_project_id(const StringPiece& value) {
380  *MutableStorage("projectId") = value.data();
381  }
382 
388  bool has_upgrade_settings() const {
389  return Storage().isMember("upgradeSettings");
390  }
391 
396  MutableStorage()->removeMember("upgradeSettings");
397  }
398 
399 
404  const UpgradeSettings get_upgrade_settings() const;
405 
414  UpgradeSettings mutable_upgradeSettings();
415 
423  return Storage().isMember("workloadMetadataConfig");
424  }
425 
430  MutableStorage()->removeMember("workloadMetadataConfig");
431  }
432 
433 
438  const WorkloadMetadataConfig get_workload_metadata_config() const;
439 
448  WorkloadMetadataConfig mutable_workloadMetadataConfig();
449 
455  bool has_zone() const {
456  return Storage().isMember("zone");
457  }
458 
462  void clear_zone() {
463  MutableStorage()->removeMember("zone");
464  }
465 
466 
470  const StringPiece get_zone() const {
471  const Json::Value& v = Storage("zone");
472  if (v == Json::Value::null) return StringPiece("");
473  return StringPiece(v.asCString());
474  }
475 
488  void set_zone(const StringPiece& value) {
489  *MutableStorage("zone") = value.data();
490  }
491 
492  private:
493  void operator=(const UpdateNodePoolRequest&);
494 }; // UpdateNodePoolRequest
495 } // namespace google_container_api
496 #endif // GOOGLE_CONTAINER_API_UPDATE_NODE_POOL_REQUEST_H_
const StringPiece get_node_version() const
Definition: update_node_pool_request.h:308
void set_node_pool_id(const StringPiece &value)
Definition: update_node_pool_request.h:284
const client::JsonCppArray< string > get_locations() const
Definition: update_node_pool_request.h:187
bool has_name() const
Definition: update_node_pool_request.h:214
void clear_project_id()
Definition: update_node_pool_request.h:354
bool has_image_type() const
Definition: update_node_pool_request.h:135
Definition: workload_metadata_config.h:51
bool has_locations() const
Definition: update_node_pool_request.h:172
void clear_node_version()
Definition: update_node_pool_request.h:300
Definition: update_node_pool_request.h:53
void set_image_type(const StringPiece &value)
Definition: update_node_pool_request.h:163
const StringPiece get_project_id() const
Definition: update_node_pool_request.h:362
bool has_project_id() const
Definition: update_node_pool_request.h:347
void clear_name()
Definition: update_node_pool_request.h:221
Definition: upgrade_settings.h:72
void set_zone(const StringPiece &value)
Definition: update_node_pool_request.h:488
void clear_workload_metadata_config()
Definition: update_node_pool_request.h:429
void clear_cluster_id()
Definition: update_node_pool_request.h:102
const StringPiece get_node_pool_id() const
Definition: update_node_pool_request.h:268
void clear_locations()
Definition: update_node_pool_request.h:179
const StringPiece get_zone() const
Definition: update_node_pool_request.h:470
bool has_upgrade_settings() const
Definition: update_node_pool_request.h:388
bool has_node_pool_id() const
Definition: update_node_pool_request.h:253
bool has_workload_metadata_config() const
Definition: update_node_pool_request.h:422
Definition: accelerator_config.h:39
client::JsonCppArray< string > mutable_locations()
Definition: update_node_pool_request.h:204
bool has_cluster_id() const
Definition: update_node_pool_request.h:95
bool has_zone() const
Definition: update_node_pool_request.h:455
void clear_node_pool_id()
Definition: update_node_pool_request.h:260
void clear_upgrade_settings()
Definition: update_node_pool_request.h:395
const StringPiece get_image_type() const
Definition: update_node_pool_request.h:150
void set_name(const StringPiece &value)
Definition: update_node_pool_request.h:244
Definition: accelerator_config.cc:41
void clear_zone()
Definition: update_node_pool_request.h:462
bool has_node_version() const
Definition: update_node_pool_request.h:293
const StringPiece get_cluster_id() const
Definition: update_node_pool_request.h:110
void set_project_id(const StringPiece &value)
Definition: update_node_pool_request.h:379
void set_node_version(const StringPiece &value)
Definition: update_node_pool_request.h:338
const StringPiece GetTypeName() const
Definition: update_node_pool_request.h:86
void set_cluster_id(const StringPiece &value)
Definition: update_node_pool_request.h:126
void clear_image_type()
Definition: update_node_pool_request.h:142
const StringPiece get_name() const
Definition: update_node_pool_request.h:229