container  v1
update_master_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_MASTER_REQUEST_H_
31 #define GOOGLE_CONTAINER_API_UPDATE_MASTER_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 namespace Json {
39 class Value;
40 } // namespace Json
41 
42 namespace google_container_api {
43 using namespace googleapis;
44 
50 class UpdateMasterRequest : public client::JsonCppData {
51  public:
57  static UpdateMasterRequest* New();
58 
64  explicit UpdateMasterRequest(const Json::Value& storage);
65 
71  explicit UpdateMasterRequest(Json::Value* storage);
72 
76  virtual ~UpdateMasterRequest();
77 
83  const StringPiece GetTypeName() const {
84  return StringPiece("google_container_api::UpdateMasterRequest");
85  }
86 
92  bool has_cluster_id() const {
93  return Storage().isMember("clusterId");
94  }
95 
100  MutableStorage()->removeMember("clusterId");
101  }
102 
103 
107  const StringPiece get_cluster_id() const {
108  const Json::Value& v = Storage("clusterId");
109  if (v == Json::Value::null) return StringPiece("");
110  return StringPiece(v.asCString());
111  }
112 
123  void set_cluster_id(const StringPiece& value) {
124  *MutableStorage("clusterId") = value.data();
125  }
126 
132  bool has_master_version() const {
133  return Storage().isMember("masterVersion");
134  }
135 
140  MutableStorage()->removeMember("masterVersion");
141  }
142 
143 
147  const StringPiece get_master_version() const {
148  const Json::Value& v = Storage("masterVersion");
149  if (v == Json::Value::null) return StringPiece("");
150  return StringPiece(v.asCString());
151  }
152 
176  void set_master_version(const StringPiece& value) {
177  *MutableStorage("masterVersion") = value.data();
178  }
179 
185  bool has_name() const {
186  return Storage().isMember("name");
187  }
188 
192  void clear_name() {
193  MutableStorage()->removeMember("name");
194  }
195 
196 
200  const StringPiece get_name() const {
201  const Json::Value& v = Storage("name");
202  if (v == Json::Value::null) return StringPiece("");
203  return StringPiece(v.asCString());
204  }
205 
214  void set_name(const StringPiece& value) {
215  *MutableStorage("name") = value.data();
216  }
217 
223  bool has_project_id() const {
224  return Storage().isMember("projectId");
225  }
226 
231  MutableStorage()->removeMember("projectId");
232  }
233 
234 
238  const StringPiece get_project_id() const {
239  const Json::Value& v = Storage("projectId");
240  if (v == Json::Value::null) return StringPiece("");
241  return StringPiece(v.asCString());
242  }
243 
255  void set_project_id(const StringPiece& value) {
256  *MutableStorage("projectId") = value.data();
257  }
258 
264  bool has_zone() const {
265  return Storage().isMember("zone");
266  }
267 
271  void clear_zone() {
272  MutableStorage()->removeMember("zone");
273  }
274 
275 
279  const StringPiece get_zone() const {
280  const Json::Value& v = Storage("zone");
281  if (v == Json::Value::null) return StringPiece("");
282  return StringPiece(v.asCString());
283  }
284 
297  void set_zone(const StringPiece& value) {
298  *MutableStorage("zone") = value.data();
299  }
300 
301  private:
302  void operator=(const UpdateMasterRequest&);
303 }; // UpdateMasterRequest
304 } // namespace google_container_api
305 #endif // GOOGLE_CONTAINER_API_UPDATE_MASTER_REQUEST_H_
bool has_zone() const
Definition: update_master_request.h:264
Definition: update_master_request.h:50
void clear_name()
Definition: update_master_request.h:192
void set_project_id(const StringPiece &value)
Definition: update_master_request.h:255
const StringPiece get_project_id() const
Definition: update_master_request.h:238
const StringPiece get_cluster_id() const
Definition: update_master_request.h:107
void clear_master_version()
Definition: update_master_request.h:139
bool has_cluster_id() const
Definition: update_master_request.h:92
void clear_cluster_id()
Definition: update_master_request.h:99
void set_name(const StringPiece &value)
Definition: update_master_request.h:214
void set_zone(const StringPiece &value)
Definition: update_master_request.h:297
const StringPiece GetTypeName() const
Definition: update_master_request.h:83
void clear_project_id()
Definition: update_master_request.h:230
Definition: accelerator_config.h:39
const StringPiece get_zone() const
Definition: update_master_request.h:279
bool has_master_version() const
Definition: update_master_request.h:132
Definition: accelerator_config.cc:41
void set_master_version(const StringPiece &value)
Definition: update_master_request.h:176
bool has_project_id() const
Definition: update_master_request.h:223
void clear_zone()
Definition: update_master_request.h:271
bool has_name() const
Definition: update_master_request.h:185
const StringPiece get_name() const
Definition: update_master_request.h:200
void set_cluster_id(const StringPiece &value)
Definition: update_master_request.h:123
const StringPiece get_master_version() const
Definition: update_master_request.h:147