1 | <?php
|
---|
2 | /*
|
---|
3 | * Copyright 2014 Google Inc.
|
---|
4 | *
|
---|
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
7 | * the License at
|
---|
8 | *
|
---|
9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
10 | *
|
---|
11 | * Unless required by applicable law or agreed to in writing, software
|
---|
12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
14 | * License for the specific language governing permissions and limitations under
|
---|
15 | * the License.
|
---|
16 | */
|
---|
17 |
|
---|
18 | namespace Google\Service\Drive;
|
---|
19 |
|
---|
20 | class App extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'secondaryMimeTypes';
|
---|
23 | /**
|
---|
24 | * @var bool
|
---|
25 | */
|
---|
26 | public $authorized;
|
---|
27 | /**
|
---|
28 | * @var string
|
---|
29 | */
|
---|
30 | public $createInFolderTemplate;
|
---|
31 | /**
|
---|
32 | * @var string
|
---|
33 | */
|
---|
34 | public $createUrl;
|
---|
35 | /**
|
---|
36 | * @var bool
|
---|
37 | */
|
---|
38 | public $hasDriveWideScope;
|
---|
39 | protected $iconsType = AppIcons::class;
|
---|
40 | protected $iconsDataType = 'array';
|
---|
41 | /**
|
---|
42 | * @var string
|
---|
43 | */
|
---|
44 | public $id;
|
---|
45 | /**
|
---|
46 | * @var bool
|
---|
47 | */
|
---|
48 | public $installed;
|
---|
49 | /**
|
---|
50 | * @var string
|
---|
51 | */
|
---|
52 | public $kind;
|
---|
53 | /**
|
---|
54 | * @var string
|
---|
55 | */
|
---|
56 | public $longDescription;
|
---|
57 | /**
|
---|
58 | * @var string
|
---|
59 | */
|
---|
60 | public $name;
|
---|
61 | /**
|
---|
62 | * @var string
|
---|
63 | */
|
---|
64 | public $objectType;
|
---|
65 | /**
|
---|
66 | * @var string
|
---|
67 | */
|
---|
68 | public $openUrlTemplate;
|
---|
69 | /**
|
---|
70 | * @var string[]
|
---|
71 | */
|
---|
72 | public $primaryFileExtensions;
|
---|
73 | /**
|
---|
74 | * @var string[]
|
---|
75 | */
|
---|
76 | public $primaryMimeTypes;
|
---|
77 | /**
|
---|
78 | * @var string
|
---|
79 | */
|
---|
80 | public $productId;
|
---|
81 | /**
|
---|
82 | * @var string
|
---|
83 | */
|
---|
84 | public $productUrl;
|
---|
85 | /**
|
---|
86 | * @var string[]
|
---|
87 | */
|
---|
88 | public $secondaryFileExtensions;
|
---|
89 | /**
|
---|
90 | * @var string[]
|
---|
91 | */
|
---|
92 | public $secondaryMimeTypes;
|
---|
93 | /**
|
---|
94 | * @var string
|
---|
95 | */
|
---|
96 | public $shortDescription;
|
---|
97 | /**
|
---|
98 | * @var bool
|
---|
99 | */
|
---|
100 | public $supportsCreate;
|
---|
101 | /**
|
---|
102 | * @var bool
|
---|
103 | */
|
---|
104 | public $supportsImport;
|
---|
105 | /**
|
---|
106 | * @var bool
|
---|
107 | */
|
---|
108 | public $supportsMultiOpen;
|
---|
109 | /**
|
---|
110 | * @var bool
|
---|
111 | */
|
---|
112 | public $supportsOfflineCreate;
|
---|
113 | /**
|
---|
114 | * @var bool
|
---|
115 | */
|
---|
116 | public $useByDefault;
|
---|
117 |
|
---|
118 | /**
|
---|
119 | * @param bool
|
---|
120 | */
|
---|
121 | public function setAuthorized($authorized)
|
---|
122 | {
|
---|
123 | $this->authorized = $authorized;
|
---|
124 | }
|
---|
125 | /**
|
---|
126 | * @return bool
|
---|
127 | */
|
---|
128 | public function getAuthorized()
|
---|
129 | {
|
---|
130 | return $this->authorized;
|
---|
131 | }
|
---|
132 | /**
|
---|
133 | * @param string
|
---|
134 | */
|
---|
135 | public function setCreateInFolderTemplate($createInFolderTemplate)
|
---|
136 | {
|
---|
137 | $this->createInFolderTemplate = $createInFolderTemplate;
|
---|
138 | }
|
---|
139 | /**
|
---|
140 | * @return string
|
---|
141 | */
|
---|
142 | public function getCreateInFolderTemplate()
|
---|
143 | {
|
---|
144 | return $this->createInFolderTemplate;
|
---|
145 | }
|
---|
146 | /**
|
---|
147 | * @param string
|
---|
148 | */
|
---|
149 | public function setCreateUrl($createUrl)
|
---|
150 | {
|
---|
151 | $this->createUrl = $createUrl;
|
---|
152 | }
|
---|
153 | /**
|
---|
154 | * @return string
|
---|
155 | */
|
---|
156 | public function getCreateUrl()
|
---|
157 | {
|
---|
158 | return $this->createUrl;
|
---|
159 | }
|
---|
160 | /**
|
---|
161 | * @param bool
|
---|
162 | */
|
---|
163 | public function setHasDriveWideScope($hasDriveWideScope)
|
---|
164 | {
|
---|
165 | $this->hasDriveWideScope = $hasDriveWideScope;
|
---|
166 | }
|
---|
167 | /**
|
---|
168 | * @return bool
|
---|
169 | */
|
---|
170 | public function getHasDriveWideScope()
|
---|
171 | {
|
---|
172 | return $this->hasDriveWideScope;
|
---|
173 | }
|
---|
174 | /**
|
---|
175 | * @param AppIcons[]
|
---|
176 | */
|
---|
177 | public function setIcons($icons)
|
---|
178 | {
|
---|
179 | $this->icons = $icons;
|
---|
180 | }
|
---|
181 | /**
|
---|
182 | * @return AppIcons[]
|
---|
183 | */
|
---|
184 | public function getIcons()
|
---|
185 | {
|
---|
186 | return $this->icons;
|
---|
187 | }
|
---|
188 | /**
|
---|
189 | * @param string
|
---|
190 | */
|
---|
191 | public function setId($id)
|
---|
192 | {
|
---|
193 | $this->id = $id;
|
---|
194 | }
|
---|
195 | /**
|
---|
196 | * @return string
|
---|
197 | */
|
---|
198 | public function getId()
|
---|
199 | {
|
---|
200 | return $this->id;
|
---|
201 | }
|
---|
202 | /**
|
---|
203 | * @param bool
|
---|
204 | */
|
---|
205 | public function setInstalled($installed)
|
---|
206 | {
|
---|
207 | $this->installed = $installed;
|
---|
208 | }
|
---|
209 | /**
|
---|
210 | * @return bool
|
---|
211 | */
|
---|
212 | public function getInstalled()
|
---|
213 | {
|
---|
214 | return $this->installed;
|
---|
215 | }
|
---|
216 | /**
|
---|
217 | * @param string
|
---|
218 | */
|
---|
219 | public function setKind($kind)
|
---|
220 | {
|
---|
221 | $this->kind = $kind;
|
---|
222 | }
|
---|
223 | /**
|
---|
224 | * @return string
|
---|
225 | */
|
---|
226 | public function getKind()
|
---|
227 | {
|
---|
228 | return $this->kind;
|
---|
229 | }
|
---|
230 | /**
|
---|
231 | * @param string
|
---|
232 | */
|
---|
233 | public function setLongDescription($longDescription)
|
---|
234 | {
|
---|
235 | $this->longDescription = $longDescription;
|
---|
236 | }
|
---|
237 | /**
|
---|
238 | * @return string
|
---|
239 | */
|
---|
240 | public function getLongDescription()
|
---|
241 | {
|
---|
242 | return $this->longDescription;
|
---|
243 | }
|
---|
244 | /**
|
---|
245 | * @param string
|
---|
246 | */
|
---|
247 | public function setName($name)
|
---|
248 | {
|
---|
249 | $this->name = $name;
|
---|
250 | }
|
---|
251 | /**
|
---|
252 | * @return string
|
---|
253 | */
|
---|
254 | public function getName()
|
---|
255 | {
|
---|
256 | return $this->name;
|
---|
257 | }
|
---|
258 | /**
|
---|
259 | * @param string
|
---|
260 | */
|
---|
261 | public function setObjectType($objectType)
|
---|
262 | {
|
---|
263 | $this->objectType = $objectType;
|
---|
264 | }
|
---|
265 | /**
|
---|
266 | * @return string
|
---|
267 | */
|
---|
268 | public function getObjectType()
|
---|
269 | {
|
---|
270 | return $this->objectType;
|
---|
271 | }
|
---|
272 | /**
|
---|
273 | * @param string
|
---|
274 | */
|
---|
275 | public function setOpenUrlTemplate($openUrlTemplate)
|
---|
276 | {
|
---|
277 | $this->openUrlTemplate = $openUrlTemplate;
|
---|
278 | }
|
---|
279 | /**
|
---|
280 | * @return string
|
---|
281 | */
|
---|
282 | public function getOpenUrlTemplate()
|
---|
283 | {
|
---|
284 | return $this->openUrlTemplate;
|
---|
285 | }
|
---|
286 | /**
|
---|
287 | * @param string[]
|
---|
288 | */
|
---|
289 | public function setPrimaryFileExtensions($primaryFileExtensions)
|
---|
290 | {
|
---|
291 | $this->primaryFileExtensions = $primaryFileExtensions;
|
---|
292 | }
|
---|
293 | /**
|
---|
294 | * @return string[]
|
---|
295 | */
|
---|
296 | public function getPrimaryFileExtensions()
|
---|
297 | {
|
---|
298 | return $this->primaryFileExtensions;
|
---|
299 | }
|
---|
300 | /**
|
---|
301 | * @param string[]
|
---|
302 | */
|
---|
303 | public function setPrimaryMimeTypes($primaryMimeTypes)
|
---|
304 | {
|
---|
305 | $this->primaryMimeTypes = $primaryMimeTypes;
|
---|
306 | }
|
---|
307 | /**
|
---|
308 | * @return string[]
|
---|
309 | */
|
---|
310 | public function getPrimaryMimeTypes()
|
---|
311 | {
|
---|
312 | return $this->primaryMimeTypes;
|
---|
313 | }
|
---|
314 | /**
|
---|
315 | * @param string
|
---|
316 | */
|
---|
317 | public function setProductId($productId)
|
---|
318 | {
|
---|
319 | $this->productId = $productId;
|
---|
320 | }
|
---|
321 | /**
|
---|
322 | * @return string
|
---|
323 | */
|
---|
324 | public function getProductId()
|
---|
325 | {
|
---|
326 | return $this->productId;
|
---|
327 | }
|
---|
328 | /**
|
---|
329 | * @param string
|
---|
330 | */
|
---|
331 | public function setProductUrl($productUrl)
|
---|
332 | {
|
---|
333 | $this->productUrl = $productUrl;
|
---|
334 | }
|
---|
335 | /**
|
---|
336 | * @return string
|
---|
337 | */
|
---|
338 | public function getProductUrl()
|
---|
339 | {
|
---|
340 | return $this->productUrl;
|
---|
341 | }
|
---|
342 | /**
|
---|
343 | * @param string[]
|
---|
344 | */
|
---|
345 | public function setSecondaryFileExtensions($secondaryFileExtensions)
|
---|
346 | {
|
---|
347 | $this->secondaryFileExtensions = $secondaryFileExtensions;
|
---|
348 | }
|
---|
349 | /**
|
---|
350 | * @return string[]
|
---|
351 | */
|
---|
352 | public function getSecondaryFileExtensions()
|
---|
353 | {
|
---|
354 | return $this->secondaryFileExtensions;
|
---|
355 | }
|
---|
356 | /**
|
---|
357 | * @param string[]
|
---|
358 | */
|
---|
359 | public function setSecondaryMimeTypes($secondaryMimeTypes)
|
---|
360 | {
|
---|
361 | $this->secondaryMimeTypes = $secondaryMimeTypes;
|
---|
362 | }
|
---|
363 | /**
|
---|
364 | * @return string[]
|
---|
365 | */
|
---|
366 | public function getSecondaryMimeTypes()
|
---|
367 | {
|
---|
368 | return $this->secondaryMimeTypes;
|
---|
369 | }
|
---|
370 | /**
|
---|
371 | * @param string
|
---|
372 | */
|
---|
373 | public function setShortDescription($shortDescription)
|
---|
374 | {
|
---|
375 | $this->shortDescription = $shortDescription;
|
---|
376 | }
|
---|
377 | /**
|
---|
378 | * @return string
|
---|
379 | */
|
---|
380 | public function getShortDescription()
|
---|
381 | {
|
---|
382 | return $this->shortDescription;
|
---|
383 | }
|
---|
384 | /**
|
---|
385 | * @param bool
|
---|
386 | */
|
---|
387 | public function setSupportsCreate($supportsCreate)
|
---|
388 | {
|
---|
389 | $this->supportsCreate = $supportsCreate;
|
---|
390 | }
|
---|
391 | /**
|
---|
392 | * @return bool
|
---|
393 | */
|
---|
394 | public function getSupportsCreate()
|
---|
395 | {
|
---|
396 | return $this->supportsCreate;
|
---|
397 | }
|
---|
398 | /**
|
---|
399 | * @param bool
|
---|
400 | */
|
---|
401 | public function setSupportsImport($supportsImport)
|
---|
402 | {
|
---|
403 | $this->supportsImport = $supportsImport;
|
---|
404 | }
|
---|
405 | /**
|
---|
406 | * @return bool
|
---|
407 | */
|
---|
408 | public function getSupportsImport()
|
---|
409 | {
|
---|
410 | return $this->supportsImport;
|
---|
411 | }
|
---|
412 | /**
|
---|
413 | * @param bool
|
---|
414 | */
|
---|
415 | public function setSupportsMultiOpen($supportsMultiOpen)
|
---|
416 | {
|
---|
417 | $this->supportsMultiOpen = $supportsMultiOpen;
|
---|
418 | }
|
---|
419 | /**
|
---|
420 | * @return bool
|
---|
421 | */
|
---|
422 | public function getSupportsMultiOpen()
|
---|
423 | {
|
---|
424 | return $this->supportsMultiOpen;
|
---|
425 | }
|
---|
426 | /**
|
---|
427 | * @param bool
|
---|
428 | */
|
---|
429 | public function setSupportsOfflineCreate($supportsOfflineCreate)
|
---|
430 | {
|
---|
431 | $this->supportsOfflineCreate = $supportsOfflineCreate;
|
---|
432 | }
|
---|
433 | /**
|
---|
434 | * @return bool
|
---|
435 | */
|
---|
436 | public function getSupportsOfflineCreate()
|
---|
437 | {
|
---|
438 | return $this->supportsOfflineCreate;
|
---|
439 | }
|
---|
440 | /**
|
---|
441 | * @param bool
|
---|
442 | */
|
---|
443 | public function setUseByDefault($useByDefault)
|
---|
444 | {
|
---|
445 | $this->useByDefault = $useByDefault;
|
---|
446 | }
|
---|
447 | /**
|
---|
448 | * @return bool
|
---|
449 | */
|
---|
450 | public function getUseByDefault()
|
---|
451 | {
|
---|
452 | return $this->useByDefault;
|
---|
453 | }
|
---|
454 | }
|
---|
455 |
|
---|
456 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
457 | class_alias(App::class, 'Google_Service_Drive_App');
|
---|