androidenterprise  v1
service_account_key.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_SERVICE_ACCOUNT_KEY_H_
31 #define GOOGLE_ANDROIDENTERPRISE_API_SERVICE_ACCOUNT_KEY_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 
43 using namespace googleapis;
44 
50 class ServiceAccountKey : public client::JsonCppData {
51  public:
57  static ServiceAccountKey* New();
58 
64  explicit ServiceAccountKey(const Json::Value& storage);
65 
71  explicit ServiceAccountKey(Json::Value* storage);
72 
76  virtual ~ServiceAccountKey();
77 
83  const StringPiece GetTypeName() const {
84  return StringPiece("google_androidenterprise_api::ServiceAccountKey");
85  }
86 
92  bool has_data() const {
93  return Storage().isMember("data");
94  }
95 
99  void clear_data() {
100  MutableStorage()->removeMember("data");
101  }
102 
103 
107  const StringPiece get_data() const {
108  const Json::Value& v = Storage("data");
109  if (v == Json::Value::null) return StringPiece("");
110  return StringPiece(v.asCString());
111  }
112 
122  void set_data(const StringPiece& value) {
123  *MutableStorage("data") = value.data();
124  }
125 
131  bool has_id() const {
132  return Storage().isMember("id");
133  }
134 
138  void clear_id() {
139  MutableStorage()->removeMember("id");
140  }
141 
142 
146  const StringPiece get_id() const {
147  const Json::Value& v = Storage("id");
148  if (v == Json::Value::null) return StringPiece("");
149  return StringPiece(v.asCString());
150  }
151 
160  void set_id(const StringPiece& value) {
161  *MutableStorage("id") = value.data();
162  }
163 
169  bool has_kind() const {
170  return Storage().isMember("kind");
171  }
172 
176  void clear_kind() {
177  MutableStorage()->removeMember("kind");
178  }
179 
180 
184  const StringPiece get_kind() const {
185  const Json::Value& v = Storage("kind");
186  if (v == Json::Value::null) return StringPiece("");
187  return StringPiece(v.asCString());
188  }
189 
194  void set_kind(const StringPiece& value) {
195  *MutableStorage("kind") = value.data();
196  }
197 
203  bool has_public_data() const {
204  return Storage().isMember("publicData");
205  }
206 
211  MutableStorage()->removeMember("publicData");
212  }
213 
214 
218  const StringPiece get_public_data() const {
219  const Json::Value& v = Storage("publicData");
220  if (v == Json::Value::null) return StringPiece("");
221  return StringPiece(v.asCString());
222  }
223 
234  void set_public_data(const StringPiece& value) {
235  *MutableStorage("publicData") = value.data();
236  }
237 
243  bool has_type() const {
244  return Storage().isMember("type");
245  }
246 
250  void clear_type() {
251  MutableStorage()->removeMember("type");
252  }
253 
254 
258  const StringPiece get_type() const {
259  const Json::Value& v = Storage("type");
260  if (v == Json::Value::null) return StringPiece("");
261  return StringPiece(v.asCString());
262  }
263 
271  void set_type(const StringPiece& value) {
272  *MutableStorage("type") = value.data();
273  }
274 
275  private:
276  void operator=(const ServiceAccountKey&);
277 }; // ServiceAccountKey
278 } // namespace google_androidenterprise_api
279 #endif // GOOGLE_ANDROIDENTERPRISE_API_SERVICE_ACCOUNT_KEY_H_
bool has_id() const
Definition: service_account_key.h:131
void set_public_data(const StringPiece &value)
Definition: service_account_key.h:234
const StringPiece get_public_data() const
Definition: service_account_key.h:218
bool has_data() const
Definition: service_account_key.h:92
const StringPiece get_id() const
Definition: service_account_key.h:146
void clear_kind()
Definition: service_account_key.h:176
void clear_data()
Definition: service_account_key.h:99
void set_type(const StringPiece &value)
Definition: service_account_key.h:271
bool has_public_data() const
Definition: service_account_key.h:203
void clear_id()
Definition: service_account_key.h:138
const StringPiece GetTypeName() const
Definition: service_account_key.h:83
void set_id(const StringPiece &value)
Definition: service_account_key.h:160
const StringPiece get_data() const
Definition: service_account_key.h:107
Definition: administrator.h:38
Definition: administrator.cc:40
void clear_public_data()
Definition: service_account_key.h:210
void set_data(const StringPiece &value)
Definition: service_account_key.h:122
void set_kind(const StringPiece &value)
Definition: service_account_key.h:194
bool has_type() const
Definition: service_account_key.h:243
void clear_type()
Definition: service_account_key.h:250
const StringPiece get_type() const
Definition: service_account_key.h:258
Definition: service_account_key.h:50
bool has_kind() const
Definition: service_account_key.h:169
const StringPiece get_kind() const
Definition: service_account_key.h:184