container  v1
jwk.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_JWK_H_
31 #define GOOGLE_CONTAINER_API_JWK_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 Jwk : public client::JsonCppData {
51  public:
57  static Jwk* New();
58 
64  explicit Jwk(const Json::Value& storage);
65 
71  explicit Jwk(Json::Value* storage);
72 
76  virtual ~Jwk();
77 
83  const StringPiece GetTypeName() const {
84  return StringPiece("google_container_api::Jwk");
85  }
86 
92  bool has_alg() const {
93  return Storage().isMember("alg");
94  }
95 
99  void clear_alg() {
100  MutableStorage()->removeMember("alg");
101  }
102 
103 
107  const StringPiece get_alg() const {
108  const Json::Value& v = Storage("alg");
109  if (v == Json::Value::null) return StringPiece("");
110  return StringPiece(v.asCString());
111  }
112 
120  void set_alg(const StringPiece& value) {
121  *MutableStorage("alg") = value.data();
122  }
123 
129  bool has_crv() const {
130  return Storage().isMember("crv");
131  }
132 
136  void clear_crv() {
137  MutableStorage()->removeMember("crv");
138  }
139 
140 
144  const StringPiece get_crv() const {
145  const Json::Value& v = Storage("crv");
146  if (v == Json::Value::null) return StringPiece("");
147  return StringPiece(v.asCString());
148  }
149 
157  void set_crv(const StringPiece& value) {
158  *MutableStorage("crv") = value.data();
159  }
160 
166  bool has_e() const {
167  return Storage().isMember("e");
168  }
169 
173  void clear_e() {
174  MutableStorage()->removeMember("e");
175  }
176 
177 
181  const StringPiece get_e() const {
182  const Json::Value& v = Storage("e");
183  if (v == Json::Value::null) return StringPiece("");
184  return StringPiece(v.asCString());
185  }
186 
194  void set_e(const StringPiece& value) {
195  *MutableStorage("e") = value.data();
196  }
197 
203  bool has_kid() const {
204  return Storage().isMember("kid");
205  }
206 
210  void clear_kid() {
211  MutableStorage()->removeMember("kid");
212  }
213 
214 
218  const StringPiece get_kid() const {
219  const Json::Value& v = Storage("kid");
220  if (v == Json::Value::null) return StringPiece("");
221  return StringPiece(v.asCString());
222  }
223 
231  void set_kid(const StringPiece& value) {
232  *MutableStorage("kid") = value.data();
233  }
234 
240  bool has_kty() const {
241  return Storage().isMember("kty");
242  }
243 
247  void clear_kty() {
248  MutableStorage()->removeMember("kty");
249  }
250 
251 
255  const StringPiece get_kty() const {
256  const Json::Value& v = Storage("kty");
257  if (v == Json::Value::null) return StringPiece("");
258  return StringPiece(v.asCString());
259  }
260 
268  void set_kty(const StringPiece& value) {
269  *MutableStorage("kty") = value.data();
270  }
271 
277  bool has_n() const {
278  return Storage().isMember("n");
279  }
280 
284  void clear_n() {
285  MutableStorage()->removeMember("n");
286  }
287 
288 
292  const StringPiece get_n() const {
293  const Json::Value& v = Storage("n");
294  if (v == Json::Value::null) return StringPiece("");
295  return StringPiece(v.asCString());
296  }
297 
305  void set_n(const StringPiece& value) {
306  *MutableStorage("n") = value.data();
307  }
308 
314  bool has_use() const {
315  return Storage().isMember("use");
316  }
317 
321  void clear_use() {
322  MutableStorage()->removeMember("use");
323  }
324 
325 
329  const StringPiece get_use() const {
330  const Json::Value& v = Storage("use");
331  if (v == Json::Value::null) return StringPiece("");
332  return StringPiece(v.asCString());
333  }
334 
342  void set_use(const StringPiece& value) {
343  *MutableStorage("use") = value.data();
344  }
345 
351  bool has_x() const {
352  return Storage().isMember("x");
353  }
354 
358  void clear_x() {
359  MutableStorage()->removeMember("x");
360  }
361 
362 
366  const StringPiece get_x() const {
367  const Json::Value& v = Storage("x");
368  if (v == Json::Value::null) return StringPiece("");
369  return StringPiece(v.asCString());
370  }
371 
379  void set_x(const StringPiece& value) {
380  *MutableStorage("x") = value.data();
381  }
382 
388  bool has_y() const {
389  return Storage().isMember("y");
390  }
391 
395  void clear_y() {
396  MutableStorage()->removeMember("y");
397  }
398 
399 
403  const StringPiece get_y() const {
404  const Json::Value& v = Storage("y");
405  if (v == Json::Value::null) return StringPiece("");
406  return StringPiece(v.asCString());
407  }
408 
416  void set_y(const StringPiece& value) {
417  *MutableStorage("y") = value.data();
418  }
419 
420  private:
421  void operator=(const Jwk&);
422 }; // Jwk
423 } // namespace google_container_api
424 #endif // GOOGLE_CONTAINER_API_JWK_H_
void set_y(const StringPiece &value)
Definition: jwk.h:416
const StringPiece get_alg() const
Definition: jwk.h:107
void set_crv(const StringPiece &value)
Definition: jwk.h:157
void clear_use()
Definition: jwk.h:321
const StringPiece get_crv() const
Definition: jwk.h:144
const StringPiece GetTypeName() const
Definition: jwk.h:83
void clear_crv()
Definition: jwk.h:136
void clear_e()
Definition: jwk.h:173
bool has_crv() const
Definition: jwk.h:129
void clear_alg()
Definition: jwk.h:99
const StringPiece get_y() const
Definition: jwk.h:403
bool has_kty() const
Definition: jwk.h:240
Definition: jwk.h:50
const StringPiece get_n() const
Definition: jwk.h:292
void set_use(const StringPiece &value)
Definition: jwk.h:342
void set_kty(const StringPiece &value)
Definition: jwk.h:268
void set_n(const StringPiece &value)
Definition: jwk.h:305
const StringPiece get_e() const
Definition: jwk.h:181
bool has_alg() const
Definition: jwk.h:92
void set_kid(const StringPiece &value)
Definition: jwk.h:231
bool has_kid() const
Definition: jwk.h:203
const StringPiece get_kty() const
Definition: jwk.h:255
void clear_kty()
Definition: jwk.h:247
bool has_y() const
Definition: jwk.h:388
Definition: accelerator_config.h:39
const StringPiece get_kid() const
Definition: jwk.h:218
bool has_x() const
Definition: jwk.h:351
void clear_x()
Definition: jwk.h:358
Definition: accelerator_config.cc:41
void set_x(const StringPiece &value)
Definition: jwk.h:379
void clear_n()
Definition: jwk.h:284
bool has_n() const
Definition: jwk.h:277
void set_alg(const StringPiece &value)
Definition: jwk.h:120
const StringPiece get_x() const
Definition: jwk.h:366
bool has_use() const
Definition: jwk.h:314
const StringPiece get_use() const
Definition: jwk.h:329
void clear_y()
Definition: jwk.h:395
void set_e(const StringPiece &value)
Definition: jwk.h:194
void clear_kid()
Definition: jwk.h:210
bool has_e() const
Definition: jwk.h:166