container  v1
set_legacy_abac_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_LEGACY_ABAC_REQUEST_H_
31 #define GOOGLE_CONTAINER_API_SET_LEGACY_ABAC_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 
51 class SetLegacyAbacRequest : public client::JsonCppData {
52  public:
58  static SetLegacyAbacRequest* New();
59 
65  explicit SetLegacyAbacRequest(const Json::Value& storage);
66 
72  explicit SetLegacyAbacRequest(Json::Value* storage);
73 
77  virtual ~SetLegacyAbacRequest();
78 
84  const StringPiece GetTypeName() const {
85  return StringPiece("google_container_api::SetLegacyAbacRequest");
86  }
87 
93  bool has_cluster_id() const {
94  return Storage().isMember("clusterId");
95  }
96 
101  MutableStorage()->removeMember("clusterId");
102  }
103 
104 
108  const StringPiece get_cluster_id() const {
109  const Json::Value& v = Storage("clusterId");
110  if (v == Json::Value::null) return StringPiece("");
111  return StringPiece(v.asCString());
112  }
113 
124  void set_cluster_id(const StringPiece& value) {
125  *MutableStorage("clusterId") = value.data();
126  }
127 
133  bool has_enabled() const {
134  return Storage().isMember("enabled");
135  }
136 
140  void clear_enabled() {
141  MutableStorage()->removeMember("enabled");
142  }
143 
144 
148  bool get_enabled() const {
149  const Json::Value& storage = Storage("enabled");
150  return client::JsonValueToCppValueHelper<bool >(storage);
151  }
152 
160  void set_enabled(bool value) {
161  client::SetJsonValueFromCppValueHelper<bool >(
162  value, MutableStorage("enabled"));
163  }
164 
170  bool has_name() const {
171  return Storage().isMember("name");
172  }
173 
177  void clear_name() {
178  MutableStorage()->removeMember("name");
179  }
180 
181 
185  const StringPiece get_name() const {
186  const Json::Value& v = Storage("name");
187  if (v == Json::Value::null) return StringPiece("");
188  return StringPiece(v.asCString());
189  }
190 
199  void set_name(const StringPiece& value) {
200  *MutableStorage("name") = value.data();
201  }
202 
208  bool has_project_id() const {
209  return Storage().isMember("projectId");
210  }
211 
216  MutableStorage()->removeMember("projectId");
217  }
218 
219 
223  const StringPiece get_project_id() const {
224  const Json::Value& v = Storage("projectId");
225  if (v == Json::Value::null) return StringPiece("");
226  return StringPiece(v.asCString());
227  }
228 
240  void set_project_id(const StringPiece& value) {
241  *MutableStorage("projectId") = value.data();
242  }
243 
249  bool has_zone() const {
250  return Storage().isMember("zone");
251  }
252 
256  void clear_zone() {
257  MutableStorage()->removeMember("zone");
258  }
259 
260 
264  const StringPiece get_zone() const {
265  const Json::Value& v = Storage("zone");
266  if (v == Json::Value::null) return StringPiece("");
267  return StringPiece(v.asCString());
268  }
269 
282  void set_zone(const StringPiece& value) {
283  *MutableStorage("zone") = value.data();
284  }
285 
286  private:
287  void operator=(const SetLegacyAbacRequest&);
288 }; // SetLegacyAbacRequest
289 } // namespace google_container_api
290 #endif // GOOGLE_CONTAINER_API_SET_LEGACY_ABAC_REQUEST_H_
void set_cluster_id(const StringPiece &value)
Definition: set_legacy_abac_request.h:124
bool has_enabled() const
Definition: set_legacy_abac_request.h:133
const StringPiece get_name() const
Definition: set_legacy_abac_request.h:185
const StringPiece GetTypeName() const
Definition: set_legacy_abac_request.h:84
void clear_enabled()
Definition: set_legacy_abac_request.h:140
const StringPiece get_zone() const
Definition: set_legacy_abac_request.h:264
void set_zone(const StringPiece &value)
Definition: set_legacy_abac_request.h:282
const StringPiece get_project_id() const
Definition: set_legacy_abac_request.h:223
void clear_name()
Definition: set_legacy_abac_request.h:177
void clear_cluster_id()
Definition: set_legacy_abac_request.h:100
bool has_zone() const
Definition: set_legacy_abac_request.h:249
void clear_project_id()
Definition: set_legacy_abac_request.h:215
const StringPiece get_cluster_id() const
Definition: set_legacy_abac_request.h:108
bool has_project_id() const
Definition: set_legacy_abac_request.h:208
bool has_cluster_id() const
Definition: set_legacy_abac_request.h:93
void set_name(const StringPiece &value)
Definition: set_legacy_abac_request.h:199
bool has_name() const
Definition: set_legacy_abac_request.h:170
Definition: accelerator_config.h:39
void set_enabled(bool value)
Definition: set_legacy_abac_request.h:160
void set_project_id(const StringPiece &value)
Definition: set_legacy_abac_request.h:240
Definition: accelerator_config.cc:41
Definition: set_legacy_abac_request.h:51
void clear_zone()
Definition: set_legacy_abac_request.h:256
bool get_enabled() const
Definition: set_legacy_abac_request.h:148