androidenterprise  v1
administrator_web_token_spec.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-02-11, 20:26:36 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Google Play EMM API (androidenterprise/v1)
24 // Generated from:
25 // Version: v1
26 // Revision: 218
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_ANDROIDENTERPRISE_API_ADMINISTRATOR_WEB_TOKEN_SPEC_H_
31 #define GOOGLE_ANDROIDENTERPRISE_API_ADMINISTRATOR_WEB_TOKEN_SPEC_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/androidenterprise_api/administrator_web_token_spec_managed_configurations.h"
39 #include "google/androidenterprise_api/administrator_web_token_spec_play_search.h"
40 #include "google/androidenterprise_api/administrator_web_token_spec_private_apps.h"
41 #include "google/androidenterprise_api/administrator_web_token_spec_store_builder.h"
42 #include "google/androidenterprise_api/administrator_web_token_spec_web_apps.h"
43 
44 namespace Json {
45 class Value;
46 } // namespace Json
47 
49 using namespace googleapis;
50 
58 class AdministratorWebTokenSpec : public client::JsonCppData {
59  public:
65  static AdministratorWebTokenSpec* New();
66 
72  explicit AdministratorWebTokenSpec(const Json::Value& storage);
73 
79  explicit AdministratorWebTokenSpec(Json::Value* storage);
80 
84  virtual ~AdministratorWebTokenSpec();
85 
92  const StringPiece GetTypeName() const {
93  return StringPiece("google_androidenterprise_api::AdministratorWebTokenSpec");
94  }
95 
101  bool has_kind() const {
102  return Storage().isMember("kind");
103  }
104 
108  void clear_kind() {
109  MutableStorage()->removeMember("kind");
110  }
111 
112 
116  const StringPiece get_kind() const {
117  const Json::Value& v = Storage("kind");
118  if (v == Json::Value::null) return StringPiece("");
119  return StringPiece(v.asCString());
120  }
121 
126  void set_kind(const StringPiece& value) {
127  *MutableStorage("kind") = value.data();
128  }
129 
136  return Storage().isMember("managedConfigurations");
137  }
138 
143  MutableStorage()->removeMember("managedConfigurations");
144  }
145 
146 
151  const AdministratorWebTokenSpecManagedConfigurations get_managed_configurations() const;
152 
161  AdministratorWebTokenSpecManagedConfigurations mutable_managedConfigurations();
162 
168  bool has_parent() const {
169  return Storage().isMember("parent");
170  }
171 
175  void clear_parent() {
176  MutableStorage()->removeMember("parent");
177  }
178 
179 
183  const StringPiece get_parent() const {
184  const Json::Value& v = Storage("parent");
185  if (v == Json::Value::null) return StringPiece("");
186  return StringPiece(v.asCString());
187  }
188 
198  void set_parent(const StringPiece& value) {
199  *MutableStorage("parent") = value.data();
200  }
201 
207  bool has_permission() const {
208  return Storage().isMember("permission");
209  }
210 
215  MutableStorage()->removeMember("permission");
216  }
217 
218 
222  const client::JsonCppArray<string > get_permission() const {
223  const Json::Value& storage = Storage("permission");
224  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
225  }
226 
237  client::JsonCppArray<string > mutable_permission() {
238  Json::Value* storage = MutableStorage("permission");
239  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
240  }
241 
247  bool has_play_search() const {
248  return Storage().isMember("playSearch");
249  }
250 
255  MutableStorage()->removeMember("playSearch");
256  }
257 
258 
262  const AdministratorWebTokenSpecPlaySearch get_play_search() const;
263 
272  AdministratorWebTokenSpecPlaySearch mutable_playSearch();
273 
279  bool has_private_apps() const {
280  return Storage().isMember("privateApps");
281  }
282 
287  MutableStorage()->removeMember("privateApps");
288  }
289 
290 
294  const AdministratorWebTokenSpecPrivateApps get_private_apps() const;
295 
304  AdministratorWebTokenSpecPrivateApps mutable_privateApps();
305 
311  bool has_store_builder() const {
312  return Storage().isMember("storeBuilder");
313  }
314 
319  MutableStorage()->removeMember("storeBuilder");
320  }
321 
322 
326  const AdministratorWebTokenSpecStoreBuilder get_store_builder() const;
327 
336  AdministratorWebTokenSpecStoreBuilder mutable_storeBuilder();
337 
343  bool has_web_apps() const {
344  return Storage().isMember("webApps");
345  }
346 
350  void clear_web_apps() {
351  MutableStorage()->removeMember("webApps");
352  }
353 
354 
358  const AdministratorWebTokenSpecWebApps get_web_apps() const;
359 
367  AdministratorWebTokenSpecWebApps mutable_webApps();
368 
369  private:
370  void operator=(const AdministratorWebTokenSpec&);
371 }; // AdministratorWebTokenSpec
372 } // namespace google_androidenterprise_api
373 #endif // GOOGLE_ANDROIDENTERPRISE_API_ADMINISTRATOR_WEB_TOKEN_SPEC_H_
client::JsonCppArray< string > mutable_permission()
Definition: administrator_web_token_spec.h:237
void clear_web_apps()
Definition: administrator_web_token_spec.h:350
void clear_permission()
Definition: administrator_web_token_spec.h:214
Definition: administrator_web_token_spec_managed_configurations.h:49
Definition: administrator_web_token_spec_web_apps.h:49
bool has_store_builder() const
Definition: administrator_web_token_spec.h:311
void set_kind(const StringPiece &value)
Definition: administrator_web_token_spec.h:126
bool has_web_apps() const
Definition: administrator_web_token_spec.h:343
bool has_kind() const
Definition: administrator_web_token_spec.h:101
void set_parent(const StringPiece &value)
Definition: administrator_web_token_spec.h:198
void clear_kind()
Definition: administrator_web_token_spec.h:108
Definition: administrator.h:38
Definition: administrator_web_token_spec_play_search.h:49
Definition: administrator.cc:40
void clear_managed_configurations()
Definition: administrator_web_token_spec.h:142
void clear_play_search()
Definition: administrator_web_token_spec.h:254
bool has_private_apps() const
Definition: administrator_web_token_spec.h:279
const StringPiece GetTypeName() const
Definition: administrator_web_token_spec.h:92
const client::JsonCppArray< string > get_permission() const
Definition: administrator_web_token_spec.h:222
void clear_parent()
Definition: administrator_web_token_spec.h:175
bool has_managed_configurations() const
Definition: administrator_web_token_spec.h:135
void clear_store_builder()
Definition: administrator_web_token_spec.h:318
Definition: administrator_web_token_spec.h:58
bool has_play_search() const
Definition: administrator_web_token_spec.h:247
void clear_private_apps()
Definition: administrator_web_token_spec.h:286
const StringPiece get_parent() const
Definition: administrator_web_token_spec.h:183
const StringPiece get_kind() const
Definition: administrator_web_token_spec.h:116
bool has_parent() const
Definition: administrator_web_token_spec.h:168
bool has_permission() const
Definition: administrator_web_token_spec.h:207
Definition: administrator_web_token_spec_private_apps.h:49
Definition: administrator_web_token_spec_store_builder.h:49