container  v1
set_master_auth_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_MASTER_AUTH_REQUEST_H_
31 #define GOOGLE_CONTAINER_API_SET_MASTER_AUTH_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/master_auth.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
44 namespace google_container_api {
45 using namespace googleapis;
46 
52 class SetMasterAuthRequest : public client::JsonCppData {
53  public:
59  static SetMasterAuthRequest* New();
60 
66  explicit SetMasterAuthRequest(const Json::Value& storage);
67 
73  explicit SetMasterAuthRequest(Json::Value* storage);
74 
78  virtual ~SetMasterAuthRequest();
79 
85  const StringPiece GetTypeName() const {
86  return StringPiece("google_container_api::SetMasterAuthRequest");
87  }
88 
94  bool has_action() const {
95  return Storage().isMember("action");
96  }
97 
101  void clear_action() {
102  MutableStorage()->removeMember("action");
103  }
104 
105 
109  const StringPiece get_action() const {
110  const Json::Value& v = Storage("action");
111  if (v == Json::Value::null) return StringPiece("");
112  return StringPiece(v.asCString());
113  }
114 
122  void set_action(const StringPiece& value) {
123  *MutableStorage("action") = value.data();
124  }
125 
131  bool has_cluster_id() const {
132  return Storage().isMember("clusterId");
133  }
134 
139  MutableStorage()->removeMember("clusterId");
140  }
141 
142 
146  const StringPiece get_cluster_id() const {
147  const Json::Value& v = Storage("clusterId");
148  if (v == Json::Value::null) return StringPiece("");
149  return StringPiece(v.asCString());
150  }
151 
162  void set_cluster_id(const StringPiece& value) {
163  *MutableStorage("clusterId") = value.data();
164  }
165 
171  bool has_name() const {
172  return Storage().isMember("name");
173  }
174 
178  void clear_name() {
179  MutableStorage()->removeMember("name");
180  }
181 
182 
186  const StringPiece get_name() const {
187  const Json::Value& v = Storage("name");
188  if (v == Json::Value::null) return StringPiece("");
189  return StringPiece(v.asCString());
190  }
191 
200  void set_name(const StringPiece& value) {
201  *MutableStorage("name") = value.data();
202  }
203 
209  bool has_project_id() const {
210  return Storage().isMember("projectId");
211  }
212 
217  MutableStorage()->removeMember("projectId");
218  }
219 
220 
224  const StringPiece get_project_id() const {
225  const Json::Value& v = Storage("projectId");
226  if (v == Json::Value::null) return StringPiece("");
227  return StringPiece(v.asCString());
228  }
229 
241  void set_project_id(const StringPiece& value) {
242  *MutableStorage("projectId") = value.data();
243  }
244 
250  bool has_update() const {
251  return Storage().isMember("update");
252  }
253 
257  void clear_update() {
258  MutableStorage()->removeMember("update");
259  }
260 
261 
265  const MasterAuth get_update() const;
266 
274  MasterAuth mutable_update();
275 
281  bool has_zone() const {
282  return Storage().isMember("zone");
283  }
284 
288  void clear_zone() {
289  MutableStorage()->removeMember("zone");
290  }
291 
292 
296  const StringPiece get_zone() const {
297  const Json::Value& v = Storage("zone");
298  if (v == Json::Value::null) return StringPiece("");
299  return StringPiece(v.asCString());
300  }
301 
314  void set_zone(const StringPiece& value) {
315  *MutableStorage("zone") = value.data();
316  }
317 
318  private:
319  void operator=(const SetMasterAuthRequest&);
320 }; // SetMasterAuthRequest
321 } // namespace google_container_api
322 #endif // GOOGLE_CONTAINER_API_SET_MASTER_AUTH_REQUEST_H_
const StringPiece get_project_id() const
Definition: set_master_auth_request.h:224
void set_action(const StringPiece &value)
Definition: set_master_auth_request.h:122
bool has_cluster_id() const
Definition: set_master_auth_request.h:131
const StringPiece get_cluster_id() const
Definition: set_master_auth_request.h:146
bool has_action() const
Definition: set_master_auth_request.h:94
bool has_project_id() const
Definition: set_master_auth_request.h:209
void clear_update()
Definition: set_master_auth_request.h:257
void set_zone(const StringPiece &value)
Definition: set_master_auth_request.h:314
void clear_name()
Definition: set_master_auth_request.h:178
void clear_zone()
Definition: set_master_auth_request.h:288
const StringPiece GetTypeName() const
Definition: set_master_auth_request.h:85
void set_name(const StringPiece &value)
Definition: set_master_auth_request.h:200
const StringPiece get_name() const
Definition: set_master_auth_request.h:186
void clear_action()
Definition: set_master_auth_request.h:101
void set_cluster_id(const StringPiece &value)
Definition: set_master_auth_request.h:162
Definition: master_auth.h:54
void clear_cluster_id()
Definition: set_master_auth_request.h:138
const StringPiece get_zone() const
Definition: set_master_auth_request.h:296
bool has_update() const
Definition: set_master_auth_request.h:250
Definition: accelerator_config.h:39
void set_project_id(const StringPiece &value)
Definition: set_master_auth_request.h:241
bool has_zone() const
Definition: set_master_auth_request.h:281
Definition: accelerator_config.cc:41
const StringPiece get_action() const
Definition: set_master_auth_request.h:109
void clear_project_id()
Definition: set_master_auth_request.h:216
Definition: set_master_auth_request.h:52
bool has_name() const
Definition: set_master_auth_request.h:171