container  v1
get_open_idc_onfig_response.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_GET_OPEN_IDC_ONFIG_RESPONSE_H_
31 #define GOOGLE_CONTAINER_API_GET_OPEN_IDC_ONFIG_RESPONSE_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/http_cache_control_response_header.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
44 namespace google_container_api {
45 using namespace googleapis;
46 
53 class GetOpenIDConfigResponse : public client::JsonCppData {
54  public:
60  static GetOpenIDConfigResponse* New();
61 
67  explicit GetOpenIDConfigResponse(const Json::Value& storage);
68 
74  explicit GetOpenIDConfigResponse(Json::Value* storage);
75 
79  virtual ~GetOpenIDConfigResponse();
80 
86  const StringPiece GetTypeName() const {
87  return StringPiece("google_container_api::GetOpenIDConfigResponse");
88  }
89 
95  bool has_cache_header() const {
96  return Storage().isMember("cacheHeader");
97  }
98 
103  MutableStorage()->removeMember("cacheHeader");
104  }
105 
106 
110  const HttpCacheControlResponseHeader get_cache_header() const;
111 
121  HttpCacheControlResponseHeader mutable_cacheHeader();
122 
128  bool has_claims_supported() const {
129  return Storage().isMember("claims_supported");
130  }
131 
136  MutableStorage()->removeMember("claims_supported");
137  }
138 
139 
144  const client::JsonCppArray<string > get_claims_supported() const {
145  const Json::Value& storage = Storage("claims_supported");
146  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
147  }
148 
157  client::JsonCppArray<string > mutable_claims_supported() {
158  Json::Value* storage = MutableStorage("claims_supported");
159  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
160  }
161 
167  bool has_grant_types() const {
168  return Storage().isMember("grant_types");
169  }
170 
175  MutableStorage()->removeMember("grant_types");
176  }
177 
178 
182  const client::JsonCppArray<string > get_grant_types() const {
183  const Json::Value& storage = Storage("grant_types");
184  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
185  }
186 
195  client::JsonCppArray<string > mutable_grant_types() {
196  Json::Value* storage = MutableStorage("grant_types");
197  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
198  }
199 
208  return Storage().isMember("id_token_signing_alg_values_supported");
209  }
210 
215  MutableStorage()->removeMember("id_token_signing_alg_values_supported");
216  }
217 
218 
223  const client::JsonCppArray<string > get_id_token_signing_alg_values_supported() const {
224  const Json::Value& storage = Storage("id_token_signing_alg_values_supported");
225  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
226  }
227 
236  client::JsonCppArray<string > mutable_id_token_signing_alg_values_supported() {
237  Json::Value* storage = MutableStorage("id_token_signing_alg_values_supported");
238  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
239  }
240 
246  bool has_issuer() const {
247  return Storage().isMember("issuer");
248  }
249 
253  void clear_issuer() {
254  MutableStorage()->removeMember("issuer");
255  }
256 
257 
261  const StringPiece get_issuer() const {
262  const Json::Value& v = Storage("issuer");
263  if (v == Json::Value::null) return StringPiece("");
264  return StringPiece(v.asCString());
265  }
266 
274  void set_issuer(const StringPiece& value) {
275  *MutableStorage("issuer") = value.data();
276  }
277 
283  bool has_jwks_uri() const {
284  return Storage().isMember("jwks_uri");
285  }
286 
290  void clear_jwks_uri() {
291  MutableStorage()->removeMember("jwks_uri");
292  }
293 
294 
298  const StringPiece get_jwks_uri() const {
299  const Json::Value& v = Storage("jwks_uri");
300  if (v == Json::Value::null) return StringPiece("");
301  return StringPiece(v.asCString());
302  }
303 
311  void set_jwks_uri(const StringPiece& value) {
312  *MutableStorage("jwks_uri") = value.data();
313  }
314 
322  return Storage().isMember("response_types_supported");
323  }
324 
329  MutableStorage()->removeMember("response_types_supported");
330  }
331 
332 
337  const client::JsonCppArray<string > get_response_types_supported() const {
338  const Json::Value& storage = Storage("response_types_supported");
339  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
340  }
341 
350  client::JsonCppArray<string > mutable_response_types_supported() {
351  Json::Value* storage = MutableStorage("response_types_supported");
352  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
353  }
354 
362  return Storage().isMember("subject_types_supported");
363  }
364 
369  MutableStorage()->removeMember("subject_types_supported");
370  }
371 
372 
377  const client::JsonCppArray<string > get_subject_types_supported() const {
378  const Json::Value& storage = Storage("subject_types_supported");
379  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
380  }
381 
390  client::JsonCppArray<string > mutable_subject_types_supported() {
391  Json::Value* storage = MutableStorage("subject_types_supported");
392  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
393  }
394 
395  private:
396  void operator=(const GetOpenIDConfigResponse&);
397 }; // GetOpenIDConfigResponse
398 } // namespace google_container_api
399 #endif // GOOGLE_CONTAINER_API_GET_OPEN_IDC_ONFIG_RESPONSE_H_
const client::JsonCppArray< string > get_subject_types_supported() const
Definition: get_open_idc_onfig_response.h:377
bool has_cache_header() const
Definition: get_open_idc_onfig_response.h:95
void clear_cache_header()
Definition: get_open_idc_onfig_response.h:102
bool has_grant_types() const
Definition: get_open_idc_onfig_response.h:167
void clear_issuer()
Definition: get_open_idc_onfig_response.h:253
bool has_issuer() const
Definition: get_open_idc_onfig_response.h:246
void set_jwks_uri(const StringPiece &value)
Definition: get_open_idc_onfig_response.h:311
bool has_claims_supported() const
Definition: get_open_idc_onfig_response.h:128
Definition: get_open_idc_onfig_response.h:53
const StringPiece get_issuer() const
Definition: get_open_idc_onfig_response.h:261
const client::JsonCppArray< string > get_claims_supported() const
Definition: get_open_idc_onfig_response.h:144
const client::JsonCppArray< string > get_id_token_signing_alg_values_supported() const
Definition: get_open_idc_onfig_response.h:223
const StringPiece GetTypeName() const
Definition: get_open_idc_onfig_response.h:86
const StringPiece get_jwks_uri() const
Definition: get_open_idc_onfig_response.h:298
void clear_id_token_signing_alg_values_supported()
Definition: get_open_idc_onfig_response.h:214
void clear_subject_types_supported()
Definition: get_open_idc_onfig_response.h:368
client::JsonCppArray< string > mutable_response_types_supported()
Definition: get_open_idc_onfig_response.h:350
void set_issuer(const StringPiece &value)
Definition: get_open_idc_onfig_response.h:274
void clear_response_types_supported()
Definition: get_open_idc_onfig_response.h:328
const client::JsonCppArray< string > get_grant_types() const
Definition: get_open_idc_onfig_response.h:182
void clear_jwks_uri()
Definition: get_open_idc_onfig_response.h:290
client::JsonCppArray< string > mutable_subject_types_supported()
Definition: get_open_idc_onfig_response.h:390
bool has_jwks_uri() const
Definition: get_open_idc_onfig_response.h:283
Definition: accelerator_config.h:39
const client::JsonCppArray< string > get_response_types_supported() const
Definition: get_open_idc_onfig_response.h:337
client::JsonCppArray< string > mutable_claims_supported()
Definition: get_open_idc_onfig_response.h:157
Definition: accelerator_config.cc:41
void clear_claims_supported()
Definition: get_open_idc_onfig_response.h:135
bool has_id_token_signing_alg_values_supported() const
Definition: get_open_idc_onfig_response.h:207
client::JsonCppArray< string > mutable_grant_types()
Definition: get_open_idc_onfig_response.h:195
Definition: http_cache_control_response_header.h:51
bool has_response_types_supported() const
Definition: get_open_idc_onfig_response.h:321
client::JsonCppArray< string > mutable_id_token_signing_alg_values_supported()
Definition: get_open_idc_onfig_response.h:236
bool has_subject_types_supported() const
Definition: get_open_idc_onfig_response.h:361
void clear_grant_types()
Definition: get_open_idc_onfig_response.h:174