1
|
|
|
<?php |
2
|
|
|
/* |
3
|
|
|
* Copyright 2010 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
|
|
|
/** |
19
|
|
|
* Service definition for Drive (v2). |
20
|
|
|
* |
21
|
|
|
* <p> |
22
|
|
|
* The API to interact with Drive.</p> |
23
|
|
|
* |
24
|
|
|
* <p> |
25
|
|
|
* For more information about this service, see the API |
26
|
|
|
* <a href="https://developers.google.com/drive/" target="_blank">Documentation</a> |
27
|
|
|
* </p> |
28
|
|
|
* |
29
|
|
|
* @author Google, Inc. |
30
|
|
|
*/ |
31
|
|
|
class Google_Service_Drive extends Google_Service |
32
|
|
|
{ |
33
|
|
|
/** View and manage the files in your Google Drive. */ |
34
|
|
|
const DRIVE = |
35
|
|
|
"https://www.googleapis.com/auth/drive"; |
36
|
|
|
/** View and manage its own configuration data in your Google Drive. */ |
37
|
|
|
const DRIVE_APPDATA = |
38
|
|
|
"https://www.googleapis.com/auth/drive.appdata"; |
39
|
|
|
/** View your Google Drive apps. */ |
40
|
|
|
const DRIVE_APPS_READONLY = |
41
|
|
|
"https://www.googleapis.com/auth/drive.apps.readonly"; |
42
|
|
|
/** View and manage Google Drive files and folders that you have opened or created with this app. */ |
43
|
|
|
const DRIVE_FILE = |
44
|
|
|
"https://www.googleapis.com/auth/drive.file"; |
45
|
|
|
/** View and manage metadata of files in your Google Drive. */ |
46
|
|
|
const DRIVE_METADATA = |
47
|
|
|
"https://www.googleapis.com/auth/drive.metadata"; |
48
|
|
|
/** View metadata for files in your Google Drive. */ |
49
|
|
|
const DRIVE_METADATA_READONLY = |
50
|
|
|
"https://www.googleapis.com/auth/drive.metadata.readonly"; |
51
|
|
|
/** View the photos, videos and albums in your Google Photos. */ |
52
|
|
|
const DRIVE_PHOTOS_READONLY = |
53
|
|
|
"https://www.googleapis.com/auth/drive.photos.readonly"; |
54
|
|
|
/** View the files in your Google Drive. */ |
55
|
|
|
const DRIVE_READONLY = |
56
|
|
|
"https://www.googleapis.com/auth/drive.readonly"; |
57
|
|
|
/** Modify your Google Apps Script scripts' behavior. */ |
58
|
|
|
const DRIVE_SCRIPTS = |
59
|
|
|
"https://www.googleapis.com/auth/drive.scripts"; |
60
|
|
|
|
61
|
|
|
public $about; |
62
|
|
|
public $apps; |
63
|
|
|
public $changes; |
64
|
|
|
public $channels; |
65
|
|
|
public $children; |
66
|
|
|
public $comments; |
67
|
|
|
public $files; |
68
|
|
|
public $parents; |
69
|
|
|
public $permissions; |
70
|
|
|
public $properties; |
71
|
|
|
public $realtime; |
72
|
|
|
public $replies; |
73
|
|
|
public $revisions; |
74
|
|
|
|
75
|
|
|
|
76
|
|
|
/** |
77
|
|
|
* Constructs the internal representation of the Drive service. |
78
|
|
|
* |
79
|
|
|
* @param Google_Client $client |
80
|
|
|
*/ |
81
|
|
|
public function __construct(Google_Client $client) |
82
|
|
|
{ |
83
|
|
|
parent::__construct($client); |
84
|
|
|
$this->rootUrl = 'https://www.googleapis.com/'; |
85
|
|
|
$this->servicePath = 'drive/v2/'; |
86
|
|
|
$this->version = 'v2'; |
87
|
|
|
$this->serviceName = 'drive'; |
|
|
|
|
88
|
|
|
|
89
|
|
|
$this->about = new Google_Service_Drive_About_Resource( |
90
|
|
|
$this, |
91
|
|
|
$this->serviceName, |
92
|
|
|
'about', |
93
|
|
|
array( |
94
|
|
|
'methods' => array( |
95
|
|
|
'get' => array( |
96
|
|
|
'path' => 'about', |
97
|
|
|
'httpMethod' => 'GET', |
98
|
|
|
'parameters' => array( |
99
|
|
|
'includeSubscribed' => array( |
100
|
|
|
'location' => 'query', |
101
|
|
|
'type' => 'boolean', |
102
|
|
|
), |
103
|
|
|
'maxChangeIdCount' => array( |
104
|
|
|
'location' => 'query', |
105
|
|
|
'type' => 'string', |
106
|
|
|
), |
107
|
|
|
'startChangeId' => array( |
108
|
|
|
'location' => 'query', |
109
|
|
|
'type' => 'string', |
110
|
|
|
), |
111
|
|
|
), |
112
|
|
|
), |
113
|
|
|
) |
114
|
|
|
) |
115
|
|
|
); |
116
|
|
|
$this->apps = new Google_Service_Drive_Apps_Resource( |
117
|
|
|
$this, |
118
|
|
|
$this->serviceName, |
119
|
|
|
'apps', |
120
|
|
|
array( |
121
|
|
|
'methods' => array( |
122
|
|
|
'get' => array( |
123
|
|
|
'path' => 'apps/{appId}', |
124
|
|
|
'httpMethod' => 'GET', |
125
|
|
|
'parameters' => array( |
126
|
|
|
'appId' => array( |
127
|
|
|
'location' => 'path', |
128
|
|
|
'type' => 'string', |
129
|
|
|
'required' => true, |
130
|
|
|
), |
131
|
|
|
), |
132
|
|
|
),'list' => array( |
133
|
|
|
'path' => 'apps', |
134
|
|
|
'httpMethod' => 'GET', |
135
|
|
|
'parameters' => array( |
136
|
|
|
'languageCode' => array( |
137
|
|
|
'location' => 'query', |
138
|
|
|
'type' => 'string', |
139
|
|
|
), |
140
|
|
|
'appFilterExtensions' => array( |
141
|
|
|
'location' => 'query', |
142
|
|
|
'type' => 'string', |
143
|
|
|
), |
144
|
|
|
'appFilterMimeTypes' => array( |
145
|
|
|
'location' => 'query', |
146
|
|
|
'type' => 'string', |
147
|
|
|
), |
148
|
|
|
), |
149
|
|
|
), |
150
|
|
|
) |
151
|
|
|
) |
152
|
|
|
); |
153
|
|
|
$this->changes = new Google_Service_Drive_Changes_Resource( |
154
|
|
|
$this, |
155
|
|
|
$this->serviceName, |
156
|
|
|
'changes', |
157
|
|
|
array( |
158
|
|
|
'methods' => array( |
159
|
|
|
'get' => array( |
160
|
|
|
'path' => 'changes/{changeId}', |
161
|
|
|
'httpMethod' => 'GET', |
162
|
|
|
'parameters' => array( |
163
|
|
|
'changeId' => array( |
164
|
|
|
'location' => 'path', |
165
|
|
|
'type' => 'string', |
166
|
|
|
'required' => true, |
167
|
|
|
), |
168
|
|
|
), |
169
|
|
|
),'list' => array( |
170
|
|
|
'path' => 'changes', |
171
|
|
|
'httpMethod' => 'GET', |
172
|
|
|
'parameters' => array( |
173
|
|
|
'includeSubscribed' => array( |
174
|
|
|
'location' => 'query', |
175
|
|
|
'type' => 'boolean', |
176
|
|
|
), |
177
|
|
|
'includeDeleted' => array( |
178
|
|
|
'location' => 'query', |
179
|
|
|
'type' => 'boolean', |
180
|
|
|
), |
181
|
|
|
'maxResults' => array( |
182
|
|
|
'location' => 'query', |
183
|
|
|
'type' => 'integer', |
184
|
|
|
), |
185
|
|
|
'pageToken' => array( |
186
|
|
|
'location' => 'query', |
187
|
|
|
'type' => 'string', |
188
|
|
|
), |
189
|
|
|
'spaces' => array( |
190
|
|
|
'location' => 'query', |
191
|
|
|
'type' => 'string', |
192
|
|
|
), |
193
|
|
|
'startChangeId' => array( |
194
|
|
|
'location' => 'query', |
195
|
|
|
'type' => 'string', |
196
|
|
|
), |
197
|
|
|
), |
198
|
|
|
),'watch' => array( |
199
|
|
|
'path' => 'changes/watch', |
200
|
|
|
'httpMethod' => 'POST', |
201
|
|
|
'parameters' => array( |
202
|
|
|
'includeSubscribed' => array( |
203
|
|
|
'location' => 'query', |
204
|
|
|
'type' => 'boolean', |
205
|
|
|
), |
206
|
|
|
'includeDeleted' => array( |
207
|
|
|
'location' => 'query', |
208
|
|
|
'type' => 'boolean', |
209
|
|
|
), |
210
|
|
|
'maxResults' => array( |
211
|
|
|
'location' => 'query', |
212
|
|
|
'type' => 'integer', |
213
|
|
|
), |
214
|
|
|
'pageToken' => array( |
215
|
|
|
'location' => 'query', |
216
|
|
|
'type' => 'string', |
217
|
|
|
), |
218
|
|
|
'spaces' => array( |
219
|
|
|
'location' => 'query', |
220
|
|
|
'type' => 'string', |
221
|
|
|
), |
222
|
|
|
'startChangeId' => array( |
223
|
|
|
'location' => 'query', |
224
|
|
|
'type' => 'string', |
225
|
|
|
), |
226
|
|
|
), |
227
|
|
|
), |
228
|
|
|
) |
229
|
|
|
) |
230
|
|
|
); |
231
|
|
|
$this->channels = new Google_Service_Drive_Channels_Resource( |
232
|
|
|
$this, |
233
|
|
|
$this->serviceName, |
234
|
|
|
'channels', |
235
|
|
|
array( |
236
|
|
|
'methods' => array( |
237
|
|
|
'stop' => array( |
238
|
|
|
'path' => 'channels/stop', |
239
|
|
|
'httpMethod' => 'POST', |
240
|
|
|
'parameters' => array(), |
241
|
|
|
), |
242
|
|
|
) |
243
|
|
|
) |
244
|
|
|
); |
245
|
|
|
$this->children = new Google_Service_Drive_Children_Resource( |
246
|
|
|
$this, |
247
|
|
|
$this->serviceName, |
248
|
|
|
'children', |
249
|
|
|
array( |
250
|
|
|
'methods' => array( |
251
|
|
|
'delete' => array( |
252
|
|
|
'path' => 'files/{folderId}/children/{childId}', |
253
|
|
|
'httpMethod' => 'DELETE', |
254
|
|
|
'parameters' => array( |
255
|
|
|
'folderId' => array( |
256
|
|
|
'location' => 'path', |
257
|
|
|
'type' => 'string', |
258
|
|
|
'required' => true, |
259
|
|
|
), |
260
|
|
|
'childId' => array( |
261
|
|
|
'location' => 'path', |
262
|
|
|
'type' => 'string', |
263
|
|
|
'required' => true, |
264
|
|
|
), |
265
|
|
|
), |
266
|
|
|
),'get' => array( |
267
|
|
|
'path' => 'files/{folderId}/children/{childId}', |
268
|
|
|
'httpMethod' => 'GET', |
269
|
|
|
'parameters' => array( |
270
|
|
|
'folderId' => array( |
271
|
|
|
'location' => 'path', |
272
|
|
|
'type' => 'string', |
273
|
|
|
'required' => true, |
274
|
|
|
), |
275
|
|
|
'childId' => array( |
276
|
|
|
'location' => 'path', |
277
|
|
|
'type' => 'string', |
278
|
|
|
'required' => true, |
279
|
|
|
), |
280
|
|
|
), |
281
|
|
|
),'insert' => array( |
282
|
|
|
'path' => 'files/{folderId}/children', |
283
|
|
|
'httpMethod' => 'POST', |
284
|
|
|
'parameters' => array( |
285
|
|
|
'folderId' => array( |
286
|
|
|
'location' => 'path', |
287
|
|
|
'type' => 'string', |
288
|
|
|
'required' => true, |
289
|
|
|
), |
290
|
|
|
), |
291
|
|
|
),'list' => array( |
292
|
|
|
'path' => 'files/{folderId}/children', |
293
|
|
|
'httpMethod' => 'GET', |
294
|
|
|
'parameters' => array( |
295
|
|
|
'folderId' => array( |
296
|
|
|
'location' => 'path', |
297
|
|
|
'type' => 'string', |
298
|
|
|
'required' => true, |
299
|
|
|
), |
300
|
|
|
'orderBy' => array( |
301
|
|
|
'location' => 'query', |
302
|
|
|
'type' => 'string', |
303
|
|
|
), |
304
|
|
|
'pageToken' => array( |
305
|
|
|
'location' => 'query', |
306
|
|
|
'type' => 'string', |
307
|
|
|
), |
308
|
|
|
'q' => array( |
309
|
|
|
'location' => 'query', |
310
|
|
|
'type' => 'string', |
311
|
|
|
), |
312
|
|
|
'maxResults' => array( |
313
|
|
|
'location' => 'query', |
314
|
|
|
'type' => 'integer', |
315
|
|
|
), |
316
|
|
|
), |
317
|
|
|
), |
318
|
|
|
) |
319
|
|
|
) |
320
|
|
|
); |
321
|
|
|
$this->comments = new Google_Service_Drive_Comments_Resource( |
322
|
|
|
$this, |
323
|
|
|
$this->serviceName, |
324
|
|
|
'comments', |
325
|
|
|
array( |
326
|
|
|
'methods' => array( |
327
|
|
|
'delete' => array( |
328
|
|
|
'path' => 'files/{fileId}/comments/{commentId}', |
329
|
|
|
'httpMethod' => 'DELETE', |
330
|
|
|
'parameters' => array( |
331
|
|
|
'fileId' => array( |
332
|
|
|
'location' => 'path', |
333
|
|
|
'type' => 'string', |
334
|
|
|
'required' => true, |
335
|
|
|
), |
336
|
|
|
'commentId' => array( |
337
|
|
|
'location' => 'path', |
338
|
|
|
'type' => 'string', |
339
|
|
|
'required' => true, |
340
|
|
|
), |
341
|
|
|
), |
342
|
|
|
),'get' => array( |
343
|
|
|
'path' => 'files/{fileId}/comments/{commentId}', |
344
|
|
|
'httpMethod' => 'GET', |
345
|
|
|
'parameters' => array( |
346
|
|
|
'fileId' => array( |
347
|
|
|
'location' => 'path', |
348
|
|
|
'type' => 'string', |
349
|
|
|
'required' => true, |
350
|
|
|
), |
351
|
|
|
'commentId' => array( |
352
|
|
|
'location' => 'path', |
353
|
|
|
'type' => 'string', |
354
|
|
|
'required' => true, |
355
|
|
|
), |
356
|
|
|
'includeDeleted' => array( |
357
|
|
|
'location' => 'query', |
358
|
|
|
'type' => 'boolean', |
359
|
|
|
), |
360
|
|
|
), |
361
|
|
|
),'insert' => array( |
362
|
|
|
'path' => 'files/{fileId}/comments', |
363
|
|
|
'httpMethod' => 'POST', |
364
|
|
|
'parameters' => array( |
365
|
|
|
'fileId' => array( |
366
|
|
|
'location' => 'path', |
367
|
|
|
'type' => 'string', |
368
|
|
|
'required' => true, |
369
|
|
|
), |
370
|
|
|
), |
371
|
|
|
),'list' => array( |
372
|
|
|
'path' => 'files/{fileId}/comments', |
373
|
|
|
'httpMethod' => 'GET', |
374
|
|
|
'parameters' => array( |
375
|
|
|
'fileId' => array( |
376
|
|
|
'location' => 'path', |
377
|
|
|
'type' => 'string', |
378
|
|
|
'required' => true, |
379
|
|
|
), |
380
|
|
|
'pageToken' => array( |
381
|
|
|
'location' => 'query', |
382
|
|
|
'type' => 'string', |
383
|
|
|
), |
384
|
|
|
'updatedMin' => array( |
385
|
|
|
'location' => 'query', |
386
|
|
|
'type' => 'string', |
387
|
|
|
), |
388
|
|
|
'includeDeleted' => array( |
389
|
|
|
'location' => 'query', |
390
|
|
|
'type' => 'boolean', |
391
|
|
|
), |
392
|
|
|
'maxResults' => array( |
393
|
|
|
'location' => 'query', |
394
|
|
|
'type' => 'integer', |
395
|
|
|
), |
396
|
|
|
), |
397
|
|
|
),'patch' => array( |
398
|
|
|
'path' => 'files/{fileId}/comments/{commentId}', |
399
|
|
|
'httpMethod' => 'PATCH', |
400
|
|
|
'parameters' => array( |
401
|
|
|
'fileId' => array( |
402
|
|
|
'location' => 'path', |
403
|
|
|
'type' => 'string', |
404
|
|
|
'required' => true, |
405
|
|
|
), |
406
|
|
|
'commentId' => array( |
407
|
|
|
'location' => 'path', |
408
|
|
|
'type' => 'string', |
409
|
|
|
'required' => true, |
410
|
|
|
), |
411
|
|
|
), |
412
|
|
|
),'update' => array( |
413
|
|
|
'path' => 'files/{fileId}/comments/{commentId}', |
414
|
|
|
'httpMethod' => 'PUT', |
415
|
|
|
'parameters' => array( |
416
|
|
|
'fileId' => array( |
417
|
|
|
'location' => 'path', |
418
|
|
|
'type' => 'string', |
419
|
|
|
'required' => true, |
420
|
|
|
), |
421
|
|
|
'commentId' => array( |
422
|
|
|
'location' => 'path', |
423
|
|
|
'type' => 'string', |
424
|
|
|
'required' => true, |
425
|
|
|
), |
426
|
|
|
), |
427
|
|
|
), |
428
|
|
|
) |
429
|
|
|
) |
430
|
|
|
); |
431
|
|
|
$this->files = new Google_Service_Drive_Files_Resource( |
432
|
|
|
$this, |
433
|
|
|
$this->serviceName, |
434
|
|
|
'files', |
435
|
|
|
array( |
436
|
|
|
'methods' => array( |
437
|
|
|
'copy' => array( |
438
|
|
|
'path' => 'files/{fileId}/copy', |
439
|
|
|
'httpMethod' => 'POST', |
440
|
|
|
'parameters' => array( |
441
|
|
|
'fileId' => array( |
442
|
|
|
'location' => 'path', |
443
|
|
|
'type' => 'string', |
444
|
|
|
'required' => true, |
445
|
|
|
), |
446
|
|
|
'convert' => array( |
447
|
|
|
'location' => 'query', |
448
|
|
|
'type' => 'boolean', |
449
|
|
|
), |
450
|
|
|
'ocrLanguage' => array( |
451
|
|
|
'location' => 'query', |
452
|
|
|
'type' => 'string', |
453
|
|
|
), |
454
|
|
|
'visibility' => array( |
455
|
|
|
'location' => 'query', |
456
|
|
|
'type' => 'string', |
457
|
|
|
), |
458
|
|
|
'pinned' => array( |
459
|
|
|
'location' => 'query', |
460
|
|
|
'type' => 'boolean', |
461
|
|
|
), |
462
|
|
|
'ocr' => array( |
463
|
|
|
'location' => 'query', |
464
|
|
|
'type' => 'boolean', |
465
|
|
|
), |
466
|
|
|
'timedTextTrackName' => array( |
467
|
|
|
'location' => 'query', |
468
|
|
|
'type' => 'string', |
469
|
|
|
), |
470
|
|
|
'timedTextLanguage' => array( |
471
|
|
|
'location' => 'query', |
472
|
|
|
'type' => 'string', |
473
|
|
|
), |
474
|
|
|
), |
475
|
|
|
),'delete' => array( |
476
|
|
|
'path' => 'files/{fileId}', |
477
|
|
|
'httpMethod' => 'DELETE', |
478
|
|
|
'parameters' => array( |
479
|
|
|
'fileId' => array( |
480
|
|
|
'location' => 'path', |
481
|
|
|
'type' => 'string', |
482
|
|
|
'required' => true, |
483
|
|
|
), |
484
|
|
|
), |
485
|
|
|
),'emptyTrash' => array( |
486
|
|
|
'path' => 'files/trash', |
487
|
|
|
'httpMethod' => 'DELETE', |
488
|
|
|
'parameters' => array(), |
489
|
|
|
),'generateIds' => array( |
490
|
|
|
'path' => 'files/generateIds', |
491
|
|
|
'httpMethod' => 'GET', |
492
|
|
|
'parameters' => array( |
493
|
|
|
'maxResults' => array( |
494
|
|
|
'location' => 'query', |
495
|
|
|
'type' => 'integer', |
496
|
|
|
), |
497
|
|
|
'space' => array( |
498
|
|
|
'location' => 'query', |
499
|
|
|
'type' => 'string', |
500
|
|
|
), |
501
|
|
|
), |
502
|
|
|
),'get' => array( |
503
|
|
|
'path' => 'files/{fileId}', |
504
|
|
|
'httpMethod' => 'GET', |
505
|
|
|
'parameters' => array( |
506
|
|
|
'fileId' => array( |
507
|
|
|
'location' => 'path', |
508
|
|
|
'type' => 'string', |
509
|
|
|
'required' => true, |
510
|
|
|
), |
511
|
|
|
'acknowledgeAbuse' => array( |
512
|
|
|
'location' => 'query', |
513
|
|
|
'type' => 'boolean', |
514
|
|
|
), |
515
|
|
|
'updateViewedDate' => array( |
516
|
|
|
'location' => 'query', |
517
|
|
|
'type' => 'boolean', |
518
|
|
|
), |
519
|
|
|
'revisionId' => array( |
520
|
|
|
'location' => 'query', |
521
|
|
|
'type' => 'string', |
522
|
|
|
), |
523
|
|
|
'projection' => array( |
524
|
|
|
'location' => 'query', |
525
|
|
|
'type' => 'string', |
526
|
|
|
), |
527
|
|
|
), |
528
|
|
|
),'insert' => array( |
529
|
|
|
'path' => 'files', |
530
|
|
|
'httpMethod' => 'POST', |
531
|
|
|
'parameters' => array( |
532
|
|
|
'convert' => array( |
533
|
|
|
'location' => 'query', |
534
|
|
|
'type' => 'boolean', |
535
|
|
|
), |
536
|
|
|
'useContentAsIndexableText' => array( |
537
|
|
|
'location' => 'query', |
538
|
|
|
'type' => 'boolean', |
539
|
|
|
), |
540
|
|
|
'ocrLanguage' => array( |
541
|
|
|
'location' => 'query', |
542
|
|
|
'type' => 'string', |
543
|
|
|
), |
544
|
|
|
'visibility' => array( |
545
|
|
|
'location' => 'query', |
546
|
|
|
'type' => 'string', |
547
|
|
|
), |
548
|
|
|
'pinned' => array( |
549
|
|
|
'location' => 'query', |
550
|
|
|
'type' => 'boolean', |
551
|
|
|
), |
552
|
|
|
'ocr' => array( |
553
|
|
|
'location' => 'query', |
554
|
|
|
'type' => 'boolean', |
555
|
|
|
), |
556
|
|
|
'timedTextTrackName' => array( |
557
|
|
|
'location' => 'query', |
558
|
|
|
'type' => 'string', |
559
|
|
|
), |
560
|
|
|
'timedTextLanguage' => array( |
561
|
|
|
'location' => 'query', |
562
|
|
|
'type' => 'string', |
563
|
|
|
), |
564
|
|
|
), |
565
|
|
|
),'list' => array( |
566
|
|
|
'path' => 'files', |
567
|
|
|
'httpMethod' => 'GET', |
568
|
|
|
'parameters' => array( |
569
|
|
|
'orderBy' => array( |
570
|
|
|
'location' => 'query', |
571
|
|
|
'type' => 'string', |
572
|
|
|
), |
573
|
|
|
'projection' => array( |
574
|
|
|
'location' => 'query', |
575
|
|
|
'type' => 'string', |
576
|
|
|
), |
577
|
|
|
'maxResults' => array( |
578
|
|
|
'location' => 'query', |
579
|
|
|
'type' => 'integer', |
580
|
|
|
), |
581
|
|
|
'q' => array( |
582
|
|
|
'location' => 'query', |
583
|
|
|
'type' => 'string', |
584
|
|
|
), |
585
|
|
|
'pageToken' => array( |
586
|
|
|
'location' => 'query', |
587
|
|
|
'type' => 'string', |
588
|
|
|
), |
589
|
|
|
'spaces' => array( |
590
|
|
|
'location' => 'query', |
591
|
|
|
'type' => 'string', |
592
|
|
|
), |
593
|
|
|
'corpus' => array( |
594
|
|
|
'location' => 'query', |
595
|
|
|
'type' => 'string', |
596
|
|
|
), |
597
|
|
|
), |
598
|
|
|
),'patch' => array( |
599
|
|
|
'path' => 'files/{fileId}', |
600
|
|
|
'httpMethod' => 'PATCH', |
601
|
|
|
'parameters' => array( |
602
|
|
|
'fileId' => array( |
603
|
|
|
'location' => 'path', |
604
|
|
|
'type' => 'string', |
605
|
|
|
'required' => true, |
606
|
|
|
), |
607
|
|
|
'addParents' => array( |
608
|
|
|
'location' => 'query', |
609
|
|
|
'type' => 'string', |
610
|
|
|
), |
611
|
|
|
'modifiedDateBehavior' => array( |
612
|
|
|
'location' => 'query', |
613
|
|
|
'type' => 'string', |
614
|
|
|
), |
615
|
|
|
'removeParents' => array( |
616
|
|
|
'location' => 'query', |
617
|
|
|
'type' => 'string', |
618
|
|
|
), |
619
|
|
|
'updateViewedDate' => array( |
620
|
|
|
'location' => 'query', |
621
|
|
|
'type' => 'boolean', |
622
|
|
|
), |
623
|
|
|
'setModifiedDate' => array( |
624
|
|
|
'location' => 'query', |
625
|
|
|
'type' => 'boolean', |
626
|
|
|
), |
627
|
|
|
'useContentAsIndexableText' => array( |
628
|
|
|
'location' => 'query', |
629
|
|
|
'type' => 'boolean', |
630
|
|
|
), |
631
|
|
|
'convert' => array( |
632
|
|
|
'location' => 'query', |
633
|
|
|
'type' => 'boolean', |
634
|
|
|
), |
635
|
|
|
'ocrLanguage' => array( |
636
|
|
|
'location' => 'query', |
637
|
|
|
'type' => 'string', |
638
|
|
|
), |
639
|
|
|
'pinned' => array( |
640
|
|
|
'location' => 'query', |
641
|
|
|
'type' => 'boolean', |
642
|
|
|
), |
643
|
|
|
'newRevision' => array( |
644
|
|
|
'location' => 'query', |
645
|
|
|
'type' => 'boolean', |
646
|
|
|
), |
647
|
|
|
'ocr' => array( |
648
|
|
|
'location' => 'query', |
649
|
|
|
'type' => 'boolean', |
650
|
|
|
), |
651
|
|
|
'timedTextLanguage' => array( |
652
|
|
|
'location' => 'query', |
653
|
|
|
'type' => 'string', |
654
|
|
|
), |
655
|
|
|
'timedTextTrackName' => array( |
656
|
|
|
'location' => 'query', |
657
|
|
|
'type' => 'string', |
658
|
|
|
), |
659
|
|
|
), |
660
|
|
|
),'touch' => array( |
661
|
|
|
'path' => 'files/{fileId}/touch', |
662
|
|
|
'httpMethod' => 'POST', |
663
|
|
|
'parameters' => array( |
664
|
|
|
'fileId' => array( |
665
|
|
|
'location' => 'path', |
666
|
|
|
'type' => 'string', |
667
|
|
|
'required' => true, |
668
|
|
|
), |
669
|
|
|
), |
670
|
|
|
),'trash' => array( |
671
|
|
|
'path' => 'files/{fileId}/trash', |
672
|
|
|
'httpMethod' => 'POST', |
673
|
|
|
'parameters' => array( |
674
|
|
|
'fileId' => array( |
675
|
|
|
'location' => 'path', |
676
|
|
|
'type' => 'string', |
677
|
|
|
'required' => true, |
678
|
|
|
), |
679
|
|
|
), |
680
|
|
|
),'untrash' => array( |
681
|
|
|
'path' => 'files/{fileId}/untrash', |
682
|
|
|
'httpMethod' => 'POST', |
683
|
|
|
'parameters' => array( |
684
|
|
|
'fileId' => array( |
685
|
|
|
'location' => 'path', |
686
|
|
|
'type' => 'string', |
687
|
|
|
'required' => true, |
688
|
|
|
), |
689
|
|
|
), |
690
|
|
|
),'update' => array( |
691
|
|
|
'path' => 'files/{fileId}', |
692
|
|
|
'httpMethod' => 'PUT', |
693
|
|
|
'parameters' => array( |
694
|
|
|
'fileId' => array( |
695
|
|
|
'location' => 'path', |
696
|
|
|
'type' => 'string', |
697
|
|
|
'required' => true, |
698
|
|
|
), |
699
|
|
|
'addParents' => array( |
700
|
|
|
'location' => 'query', |
701
|
|
|
'type' => 'string', |
702
|
|
|
), |
703
|
|
|
'modifiedDateBehavior' => array( |
704
|
|
|
'location' => 'query', |
705
|
|
|
'type' => 'string', |
706
|
|
|
), |
707
|
|
|
'removeParents' => array( |
708
|
|
|
'location' => 'query', |
709
|
|
|
'type' => 'string', |
710
|
|
|
), |
711
|
|
|
'updateViewedDate' => array( |
712
|
|
|
'location' => 'query', |
713
|
|
|
'type' => 'boolean', |
714
|
|
|
), |
715
|
|
|
'setModifiedDate' => array( |
716
|
|
|
'location' => 'query', |
717
|
|
|
'type' => 'boolean', |
718
|
|
|
), |
719
|
|
|
'useContentAsIndexableText' => array( |
720
|
|
|
'location' => 'query', |
721
|
|
|
'type' => 'boolean', |
722
|
|
|
), |
723
|
|
|
'convert' => array( |
724
|
|
|
'location' => 'query', |
725
|
|
|
'type' => 'boolean', |
726
|
|
|
), |
727
|
|
|
'ocrLanguage' => array( |
728
|
|
|
'location' => 'query', |
729
|
|
|
'type' => 'string', |
730
|
|
|
), |
731
|
|
|
'pinned' => array( |
732
|
|
|
'location' => 'query', |
733
|
|
|
'type' => 'boolean', |
734
|
|
|
), |
735
|
|
|
'newRevision' => array( |
736
|
|
|
'location' => 'query', |
737
|
|
|
'type' => 'boolean', |
738
|
|
|
), |
739
|
|
|
'ocr' => array( |
740
|
|
|
'location' => 'query', |
741
|
|
|
'type' => 'boolean', |
742
|
|
|
), |
743
|
|
|
'timedTextLanguage' => array( |
744
|
|
|
'location' => 'query', |
745
|
|
|
'type' => 'string', |
746
|
|
|
), |
747
|
|
|
'timedTextTrackName' => array( |
748
|
|
|
'location' => 'query', |
749
|
|
|
'type' => 'string', |
750
|
|
|
), |
751
|
|
|
), |
752
|
|
|
),'watch' => array( |
753
|
|
|
'path' => 'files/{fileId}/watch', |
754
|
|
|
'httpMethod' => 'POST', |
755
|
|
|
'parameters' => array( |
756
|
|
|
'fileId' => array( |
757
|
|
|
'location' => 'path', |
758
|
|
|
'type' => 'string', |
759
|
|
|
'required' => true, |
760
|
|
|
), |
761
|
|
|
'acknowledgeAbuse' => array( |
762
|
|
|
'location' => 'query', |
763
|
|
|
'type' => 'boolean', |
764
|
|
|
), |
765
|
|
|
'updateViewedDate' => array( |
766
|
|
|
'location' => 'query', |
767
|
|
|
'type' => 'boolean', |
768
|
|
|
), |
769
|
|
|
'revisionId' => array( |
770
|
|
|
'location' => 'query', |
771
|
|
|
'type' => 'string', |
772
|
|
|
), |
773
|
|
|
'projection' => array( |
774
|
|
|
'location' => 'query', |
775
|
|
|
'type' => 'string', |
776
|
|
|
), |
777
|
|
|
), |
778
|
|
|
), |
779
|
|
|
) |
780
|
|
|
) |
781
|
|
|
); |
782
|
|
|
$this->parents = new Google_Service_Drive_Parents_Resource( |
783
|
|
|
$this, |
784
|
|
|
$this->serviceName, |
785
|
|
|
'parents', |
786
|
|
|
array( |
787
|
|
|
'methods' => array( |
788
|
|
|
'delete' => array( |
789
|
|
|
'path' => 'files/{fileId}/parents/{parentId}', |
790
|
|
|
'httpMethod' => 'DELETE', |
791
|
|
|
'parameters' => array( |
792
|
|
|
'fileId' => array( |
793
|
|
|
'location' => 'path', |
794
|
|
|
'type' => 'string', |
795
|
|
|
'required' => true, |
796
|
|
|
), |
797
|
|
|
'parentId' => array( |
798
|
|
|
'location' => 'path', |
799
|
|
|
'type' => 'string', |
800
|
|
|
'required' => true, |
801
|
|
|
), |
802
|
|
|
), |
803
|
|
|
),'get' => array( |
804
|
|
|
'path' => 'files/{fileId}/parents/{parentId}', |
805
|
|
|
'httpMethod' => 'GET', |
806
|
|
|
'parameters' => array( |
807
|
|
|
'fileId' => array( |
808
|
|
|
'location' => 'path', |
809
|
|
|
'type' => 'string', |
810
|
|
|
'required' => true, |
811
|
|
|
), |
812
|
|
|
'parentId' => array( |
813
|
|
|
'location' => 'path', |
814
|
|
|
'type' => 'string', |
815
|
|
|
'required' => true, |
816
|
|
|
), |
817
|
|
|
), |
818
|
|
|
),'insert' => array( |
819
|
|
|
'path' => 'files/{fileId}/parents', |
820
|
|
|
'httpMethod' => 'POST', |
821
|
|
|
'parameters' => array( |
822
|
|
|
'fileId' => array( |
823
|
|
|
'location' => 'path', |
824
|
|
|
'type' => 'string', |
825
|
|
|
'required' => true, |
826
|
|
|
), |
827
|
|
|
), |
828
|
|
|
),'list' => array( |
829
|
|
|
'path' => 'files/{fileId}/parents', |
830
|
|
|
'httpMethod' => 'GET', |
831
|
|
|
'parameters' => array( |
832
|
|
|
'fileId' => array( |
833
|
|
|
'location' => 'path', |
834
|
|
|
'type' => 'string', |
835
|
|
|
'required' => true, |
836
|
|
|
), |
837
|
|
|
), |
838
|
|
|
), |
839
|
|
|
) |
840
|
|
|
) |
841
|
|
|
); |
842
|
|
|
$this->permissions = new Google_Service_Drive_Permissions_Resource( |
843
|
|
|
$this, |
844
|
|
|
$this->serviceName, |
845
|
|
|
'permissions', |
846
|
|
|
array( |
847
|
|
|
'methods' => array( |
848
|
|
|
'delete' => array( |
849
|
|
|
'path' => 'files/{fileId}/permissions/{permissionId}', |
850
|
|
|
'httpMethod' => 'DELETE', |
851
|
|
|
'parameters' => array( |
852
|
|
|
'fileId' => array( |
853
|
|
|
'location' => 'path', |
854
|
|
|
'type' => 'string', |
855
|
|
|
'required' => true, |
856
|
|
|
), |
857
|
|
|
'permissionId' => array( |
858
|
|
|
'location' => 'path', |
859
|
|
|
'type' => 'string', |
860
|
|
|
'required' => true, |
861
|
|
|
), |
862
|
|
|
), |
863
|
|
|
),'get' => array( |
864
|
|
|
'path' => 'files/{fileId}/permissions/{permissionId}', |
865
|
|
|
'httpMethod' => 'GET', |
866
|
|
|
'parameters' => array( |
867
|
|
|
'fileId' => array( |
868
|
|
|
'location' => 'path', |
869
|
|
|
'type' => 'string', |
870
|
|
|
'required' => true, |
871
|
|
|
), |
872
|
|
|
'permissionId' => array( |
873
|
|
|
'location' => 'path', |
874
|
|
|
'type' => 'string', |
875
|
|
|
'required' => true, |
876
|
|
|
), |
877
|
|
|
), |
878
|
|
|
),'getIdForEmail' => array( |
879
|
|
|
'path' => 'permissionIds/{email}', |
880
|
|
|
'httpMethod' => 'GET', |
881
|
|
|
'parameters' => array( |
882
|
|
|
'email' => array( |
883
|
|
|
'location' => 'path', |
884
|
|
|
'type' => 'string', |
885
|
|
|
'required' => true, |
886
|
|
|
), |
887
|
|
|
), |
888
|
|
|
),'insert' => array( |
889
|
|
|
'path' => 'files/{fileId}/permissions', |
890
|
|
|
'httpMethod' => 'POST', |
891
|
|
|
'parameters' => array( |
892
|
|
|
'fileId' => array( |
893
|
|
|
'location' => 'path', |
894
|
|
|
'type' => 'string', |
895
|
|
|
'required' => true, |
896
|
|
|
), |
897
|
|
|
'emailMessage' => array( |
898
|
|
|
'location' => 'query', |
899
|
|
|
'type' => 'string', |
900
|
|
|
), |
901
|
|
|
'sendNotificationEmails' => array( |
902
|
|
|
'location' => 'query', |
903
|
|
|
'type' => 'boolean', |
904
|
|
|
), |
905
|
|
|
), |
906
|
|
|
),'list' => array( |
907
|
|
|
'path' => 'files/{fileId}/permissions', |
908
|
|
|
'httpMethod' => 'GET', |
909
|
|
|
'parameters' => array( |
910
|
|
|
'fileId' => array( |
911
|
|
|
'location' => 'path', |
912
|
|
|
'type' => 'string', |
913
|
|
|
'required' => true, |
914
|
|
|
), |
915
|
|
|
), |
916
|
|
|
),'patch' => array( |
917
|
|
|
'path' => 'files/{fileId}/permissions/{permissionId}', |
918
|
|
|
'httpMethod' => 'PATCH', |
919
|
|
|
'parameters' => array( |
920
|
|
|
'fileId' => array( |
921
|
|
|
'location' => 'path', |
922
|
|
|
'type' => 'string', |
923
|
|
|
'required' => true, |
924
|
|
|
), |
925
|
|
|
'permissionId' => array( |
926
|
|
|
'location' => 'path', |
927
|
|
|
'type' => 'string', |
928
|
|
|
'required' => true, |
929
|
|
|
), |
930
|
|
|
'transferOwnership' => array( |
931
|
|
|
'location' => 'query', |
932
|
|
|
'type' => 'boolean', |
933
|
|
|
), |
934
|
|
|
), |
935
|
|
|
),'update' => array( |
936
|
|
|
'path' => 'files/{fileId}/permissions/{permissionId}', |
937
|
|
|
'httpMethod' => 'PUT', |
938
|
|
|
'parameters' => array( |
939
|
|
|
'fileId' => array( |
940
|
|
|
'location' => 'path', |
941
|
|
|
'type' => 'string', |
942
|
|
|
'required' => true, |
943
|
|
|
), |
944
|
|
|
'permissionId' => array( |
945
|
|
|
'location' => 'path', |
946
|
|
|
'type' => 'string', |
947
|
|
|
'required' => true, |
948
|
|
|
), |
949
|
|
|
'transferOwnership' => array( |
950
|
|
|
'location' => 'query', |
951
|
|
|
'type' => 'boolean', |
952
|
|
|
), |
953
|
|
|
), |
954
|
|
|
), |
955
|
|
|
) |
956
|
|
|
) |
957
|
|
|
); |
958
|
|
|
$this->properties = new Google_Service_Drive_Properties_Resource( |
959
|
|
|
$this, |
960
|
|
|
$this->serviceName, |
961
|
|
|
'properties', |
962
|
|
|
array( |
963
|
|
|
'methods' => array( |
964
|
|
|
'delete' => array( |
965
|
|
|
'path' => 'files/{fileId}/properties/{propertyKey}', |
966
|
|
|
'httpMethod' => 'DELETE', |
967
|
|
|
'parameters' => array( |
968
|
|
|
'fileId' => array( |
969
|
|
|
'location' => 'path', |
970
|
|
|
'type' => 'string', |
971
|
|
|
'required' => true, |
972
|
|
|
), |
973
|
|
|
'propertyKey' => array( |
974
|
|
|
'location' => 'path', |
975
|
|
|
'type' => 'string', |
976
|
|
|
'required' => true, |
977
|
|
|
), |
978
|
|
|
'visibility' => array( |
979
|
|
|
'location' => 'query', |
980
|
|
|
'type' => 'string', |
981
|
|
|
), |
982
|
|
|
), |
983
|
|
|
),'get' => array( |
984
|
|
|
'path' => 'files/{fileId}/properties/{propertyKey}', |
985
|
|
|
'httpMethod' => 'GET', |
986
|
|
|
'parameters' => array( |
987
|
|
|
'fileId' => array( |
988
|
|
|
'location' => 'path', |
989
|
|
|
'type' => 'string', |
990
|
|
|
'required' => true, |
991
|
|
|
), |
992
|
|
|
'propertyKey' => array( |
993
|
|
|
'location' => 'path', |
994
|
|
|
'type' => 'string', |
995
|
|
|
'required' => true, |
996
|
|
|
), |
997
|
|
|
'visibility' => array( |
998
|
|
|
'location' => 'query', |
999
|
|
|
'type' => 'string', |
1000
|
|
|
), |
1001
|
|
|
), |
1002
|
|
|
),'insert' => array( |
1003
|
|
|
'path' => 'files/{fileId}/properties', |
1004
|
|
|
'httpMethod' => 'POST', |
1005
|
|
|
'parameters' => array( |
1006
|
|
|
'fileId' => array( |
1007
|
|
|
'location' => 'path', |
1008
|
|
|
'type' => 'string', |
1009
|
|
|
'required' => true, |
1010
|
|
|
), |
1011
|
|
|
), |
1012
|
|
|
),'list' => array( |
1013
|
|
|
'path' => 'files/{fileId}/properties', |
1014
|
|
|
'httpMethod' => 'GET', |
1015
|
|
|
'parameters' => array( |
1016
|
|
|
'fileId' => array( |
1017
|
|
|
'location' => 'path', |
1018
|
|
|
'type' => 'string', |
1019
|
|
|
'required' => true, |
1020
|
|
|
), |
1021
|
|
|
), |
1022
|
|
|
),'patch' => array( |
1023
|
|
|
'path' => 'files/{fileId}/properties/{propertyKey}', |
1024
|
|
|
'httpMethod' => 'PATCH', |
1025
|
|
|
'parameters' => array( |
1026
|
|
|
'fileId' => array( |
1027
|
|
|
'location' => 'path', |
1028
|
|
|
'type' => 'string', |
1029
|
|
|
'required' => true, |
1030
|
|
|
), |
1031
|
|
|
'propertyKey' => array( |
1032
|
|
|
'location' => 'path', |
1033
|
|
|
'type' => 'string', |
1034
|
|
|
'required' => true, |
1035
|
|
|
), |
1036
|
|
|
'visibility' => array( |
1037
|
|
|
'location' => 'query', |
1038
|
|
|
'type' => 'string', |
1039
|
|
|
), |
1040
|
|
|
), |
1041
|
|
|
),'update' => array( |
1042
|
|
|
'path' => 'files/{fileId}/properties/{propertyKey}', |
1043
|
|
|
'httpMethod' => 'PUT', |
1044
|
|
|
'parameters' => array( |
1045
|
|
|
'fileId' => array( |
1046
|
|
|
'location' => 'path', |
1047
|
|
|
'type' => 'string', |
1048
|
|
|
'required' => true, |
1049
|
|
|
), |
1050
|
|
|
'propertyKey' => array( |
1051
|
|
|
'location' => 'path', |
1052
|
|
|
'type' => 'string', |
1053
|
|
|
'required' => true, |
1054
|
|
|
), |
1055
|
|
|
'visibility' => array( |
1056
|
|
|
'location' => 'query', |
1057
|
|
|
'type' => 'string', |
1058
|
|
|
), |
1059
|
|
|
), |
1060
|
|
|
), |
1061
|
|
|
) |
1062
|
|
|
) |
1063
|
|
|
); |
1064
|
|
|
$this->realtime = new Google_Service_Drive_Realtime_Resource( |
1065
|
|
|
$this, |
1066
|
|
|
$this->serviceName, |
1067
|
|
|
'realtime', |
1068
|
|
|
array( |
1069
|
|
|
'methods' => array( |
1070
|
|
|
'get' => array( |
1071
|
|
|
'path' => 'files/{fileId}/realtime', |
1072
|
|
|
'httpMethod' => 'GET', |
1073
|
|
|
'parameters' => array( |
1074
|
|
|
'fileId' => array( |
1075
|
|
|
'location' => 'path', |
1076
|
|
|
'type' => 'string', |
1077
|
|
|
'required' => true, |
1078
|
|
|
), |
1079
|
|
|
'revision' => array( |
1080
|
|
|
'location' => 'query', |
1081
|
|
|
'type' => 'integer', |
1082
|
|
|
), |
1083
|
|
|
), |
1084
|
|
|
),'update' => array( |
1085
|
|
|
'path' => 'files/{fileId}/realtime', |
1086
|
|
|
'httpMethod' => 'PUT', |
1087
|
|
|
'parameters' => array( |
1088
|
|
|
'fileId' => array( |
1089
|
|
|
'location' => 'path', |
1090
|
|
|
'type' => 'string', |
1091
|
|
|
'required' => true, |
1092
|
|
|
), |
1093
|
|
|
'baseRevision' => array( |
1094
|
|
|
'location' => 'query', |
1095
|
|
|
'type' => 'string', |
1096
|
|
|
), |
1097
|
|
|
), |
1098
|
|
|
), |
1099
|
|
|
) |
1100
|
|
|
) |
1101
|
|
|
); |
1102
|
|
|
$this->replies = new Google_Service_Drive_Replies_Resource( |
1103
|
|
|
$this, |
1104
|
|
|
$this->serviceName, |
1105
|
|
|
'replies', |
1106
|
|
|
array( |
1107
|
|
|
'methods' => array( |
1108
|
|
|
'delete' => array( |
1109
|
|
|
'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', |
1110
|
|
|
'httpMethod' => 'DELETE', |
1111
|
|
|
'parameters' => array( |
1112
|
|
|
'fileId' => array( |
1113
|
|
|
'location' => 'path', |
1114
|
|
|
'type' => 'string', |
1115
|
|
|
'required' => true, |
1116
|
|
|
), |
1117
|
|
|
'commentId' => array( |
1118
|
|
|
'location' => 'path', |
1119
|
|
|
'type' => 'string', |
1120
|
|
|
'required' => true, |
1121
|
|
|
), |
1122
|
|
|
'replyId' => array( |
1123
|
|
|
'location' => 'path', |
1124
|
|
|
'type' => 'string', |
1125
|
|
|
'required' => true, |
1126
|
|
|
), |
1127
|
|
|
), |
1128
|
|
|
),'get' => array( |
1129
|
|
|
'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', |
1130
|
|
|
'httpMethod' => 'GET', |
1131
|
|
|
'parameters' => array( |
1132
|
|
|
'fileId' => array( |
1133
|
|
|
'location' => 'path', |
1134
|
|
|
'type' => 'string', |
1135
|
|
|
'required' => true, |
1136
|
|
|
), |
1137
|
|
|
'commentId' => array( |
1138
|
|
|
'location' => 'path', |
1139
|
|
|
'type' => 'string', |
1140
|
|
|
'required' => true, |
1141
|
|
|
), |
1142
|
|
|
'replyId' => array( |
1143
|
|
|
'location' => 'path', |
1144
|
|
|
'type' => 'string', |
1145
|
|
|
'required' => true, |
1146
|
|
|
), |
1147
|
|
|
'includeDeleted' => array( |
1148
|
|
|
'location' => 'query', |
1149
|
|
|
'type' => 'boolean', |
1150
|
|
|
), |
1151
|
|
|
), |
1152
|
|
|
),'insert' => array( |
1153
|
|
|
'path' => 'files/{fileId}/comments/{commentId}/replies', |
1154
|
|
|
'httpMethod' => 'POST', |
1155
|
|
|
'parameters' => array( |
1156
|
|
|
'fileId' => array( |
1157
|
|
|
'location' => 'path', |
1158
|
|
|
'type' => 'string', |
1159
|
|
|
'required' => true, |
1160
|
|
|
), |
1161
|
|
|
'commentId' => array( |
1162
|
|
|
'location' => 'path', |
1163
|
|
|
'type' => 'string', |
1164
|
|
|
'required' => true, |
1165
|
|
|
), |
1166
|
|
|
), |
1167
|
|
|
),'list' => array( |
1168
|
|
|
'path' => 'files/{fileId}/comments/{commentId}/replies', |
1169
|
|
|
'httpMethod' => 'GET', |
1170
|
|
|
'parameters' => array( |
1171
|
|
|
'fileId' => array( |
1172
|
|
|
'location' => 'path', |
1173
|
|
|
'type' => 'string', |
1174
|
|
|
'required' => true, |
1175
|
|
|
), |
1176
|
|
|
'commentId' => array( |
1177
|
|
|
'location' => 'path', |
1178
|
|
|
'type' => 'string', |
1179
|
|
|
'required' => true, |
1180
|
|
|
), |
1181
|
|
|
'pageToken' => array( |
1182
|
|
|
'location' => 'query', |
1183
|
|
|
'type' => 'string', |
1184
|
|
|
), |
1185
|
|
|
'includeDeleted' => array( |
1186
|
|
|
'location' => 'query', |
1187
|
|
|
'type' => 'boolean', |
1188
|
|
|
), |
1189
|
|
|
'maxResults' => array( |
1190
|
|
|
'location' => 'query', |
1191
|
|
|
'type' => 'integer', |
1192
|
|
|
), |
1193
|
|
|
), |
1194
|
|
|
),'patch' => array( |
1195
|
|
|
'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', |
1196
|
|
|
'httpMethod' => 'PATCH', |
1197
|
|
|
'parameters' => array( |
1198
|
|
|
'fileId' => array( |
1199
|
|
|
'location' => 'path', |
1200
|
|
|
'type' => 'string', |
1201
|
|
|
'required' => true, |
1202
|
|
|
), |
1203
|
|
|
'commentId' => array( |
1204
|
|
|
'location' => 'path', |
1205
|
|
|
'type' => 'string', |
1206
|
|
|
'required' => true, |
1207
|
|
|
), |
1208
|
|
|
'replyId' => array( |
1209
|
|
|
'location' => 'path', |
1210
|
|
|
'type' => 'string', |
1211
|
|
|
'required' => true, |
1212
|
|
|
), |
1213
|
|
|
), |
1214
|
|
|
),'update' => array( |
1215
|
|
|
'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', |
1216
|
|
|
'httpMethod' => 'PUT', |
1217
|
|
|
'parameters' => array( |
1218
|
|
|
'fileId' => array( |
1219
|
|
|
'location' => 'path', |
1220
|
|
|
'type' => 'string', |
1221
|
|
|
'required' => true, |
1222
|
|
|
), |
1223
|
|
|
'commentId' => array( |
1224
|
|
|
'location' => 'path', |
1225
|
|
|
'type' => 'string', |
1226
|
|
|
'required' => true, |
1227
|
|
|
), |
1228
|
|
|
'replyId' => array( |
1229
|
|
|
'location' => 'path', |
1230
|
|
|
'type' => 'string', |
1231
|
|
|
'required' => true, |
1232
|
|
|
), |
1233
|
|
|
), |
1234
|
|
|
), |
1235
|
|
|
) |
1236
|
|
|
) |
1237
|
|
|
); |
1238
|
|
|
$this->revisions = new Google_Service_Drive_Revisions_Resource( |
1239
|
|
|
$this, |
1240
|
|
|
$this->serviceName, |
1241
|
|
|
'revisions', |
1242
|
|
|
array( |
1243
|
|
|
'methods' => array( |
1244
|
|
|
'delete' => array( |
1245
|
|
|
'path' => 'files/{fileId}/revisions/{revisionId}', |
1246
|
|
|
'httpMethod' => 'DELETE', |
1247
|
|
|
'parameters' => array( |
1248
|
|
|
'fileId' => array( |
1249
|
|
|
'location' => 'path', |
1250
|
|
|
'type' => 'string', |
1251
|
|
|
'required' => true, |
1252
|
|
|
), |
1253
|
|
|
'revisionId' => array( |
1254
|
|
|
'location' => 'path', |
1255
|
|
|
'type' => 'string', |
1256
|
|
|
'required' => true, |
1257
|
|
|
), |
1258
|
|
|
), |
1259
|
|
|
),'get' => array( |
1260
|
|
|
'path' => 'files/{fileId}/revisions/{revisionId}', |
1261
|
|
|
'httpMethod' => 'GET', |
1262
|
|
|
'parameters' => array( |
1263
|
|
|
'fileId' => array( |
1264
|
|
|
'location' => 'path', |
1265
|
|
|
'type' => 'string', |
1266
|
|
|
'required' => true, |
1267
|
|
|
), |
1268
|
|
|
'revisionId' => array( |
1269
|
|
|
'location' => 'path', |
1270
|
|
|
'type' => 'string', |
1271
|
|
|
'required' => true, |
1272
|
|
|
), |
1273
|
|
|
), |
1274
|
|
|
),'list' => array( |
1275
|
|
|
'path' => 'files/{fileId}/revisions', |
1276
|
|
|
'httpMethod' => 'GET', |
1277
|
|
|
'parameters' => array( |
1278
|
|
|
'fileId' => array( |
1279
|
|
|
'location' => 'path', |
1280
|
|
|
'type' => 'string', |
1281
|
|
|
'required' => true, |
1282
|
|
|
), |
1283
|
|
|
), |
1284
|
|
|
),'patch' => array( |
1285
|
|
|
'path' => 'files/{fileId}/revisions/{revisionId}', |
1286
|
|
|
'httpMethod' => 'PATCH', |
1287
|
|
|
'parameters' => array( |
1288
|
|
|
'fileId' => array( |
1289
|
|
|
'location' => 'path', |
1290
|
|
|
'type' => 'string', |
1291
|
|
|
'required' => true, |
1292
|
|
|
), |
1293
|
|
|
'revisionId' => array( |
1294
|
|
|
'location' => 'path', |
1295
|
|
|
'type' => 'string', |
1296
|
|
|
'required' => true, |
1297
|
|
|
), |
1298
|
|
|
), |
1299
|
|
|
),'update' => array( |
1300
|
|
|
'path' => 'files/{fileId}/revisions/{revisionId}', |
1301
|
|
|
'httpMethod' => 'PUT', |
1302
|
|
|
'parameters' => array( |
1303
|
|
|
'fileId' => array( |
1304
|
|
|
'location' => 'path', |
1305
|
|
|
'type' => 'string', |
1306
|
|
|
'required' => true, |
1307
|
|
|
), |
1308
|
|
|
'revisionId' => array( |
1309
|
|
|
'location' => 'path', |
1310
|
|
|
'type' => 'string', |
1311
|
|
|
'required' => true, |
1312
|
|
|
), |
1313
|
|
|
), |
1314
|
|
|
), |
1315
|
|
|
) |
1316
|
|
|
) |
1317
|
|
|
); |
1318
|
|
|
} |
1319
|
|
|
} |
1320
|
|
|
|
1321
|
|
|
|
1322
|
|
|
/** |
1323
|
|
|
* The "about" collection of methods. |
1324
|
|
|
* Typical usage is: |
1325
|
|
|
* <code> |
1326
|
|
|
* $driveService = new Google_Service_Drive(...); |
1327
|
|
|
* $about = $driveService->about; |
1328
|
|
|
* </code> |
1329
|
|
|
*/ |
1330
|
|
View Code Duplication |
class Google_Service_Drive_About_Resource extends Google_Service_Resource |
|
|
|
|
1331
|
|
|
{ |
1332
|
|
|
|
1333
|
|
|
/** |
1334
|
|
|
* Gets the information about the current user along with Drive API settings |
1335
|
|
|
* (about.get) |
1336
|
|
|
* |
1337
|
|
|
* @param array $optParams Optional parameters. |
1338
|
|
|
* |
1339
|
|
|
* @opt_param bool includeSubscribed When calculating the number of remaining |
1340
|
|
|
* change IDs, whether to include public files the user has opened and shared |
1341
|
|
|
* files. When set to false, this counts only change IDs for owned files and any |
1342
|
|
|
* shared or public files that the user has explicitly added to a folder they |
1343
|
|
|
* own. |
1344
|
|
|
* @opt_param string maxChangeIdCount Maximum number of remaining change IDs to |
1345
|
|
|
* count |
1346
|
|
|
* @opt_param string startChangeId Change ID to start counting from when |
1347
|
|
|
* calculating number of remaining change IDs |
1348
|
|
|
* @return Google_Service_Drive_About |
1349
|
|
|
*/ |
1350
|
|
|
public function get($optParams = array()) |
1351
|
|
|
{ |
1352
|
|
|
$params = array(); |
1353
|
|
|
$params = array_merge($params, $optParams); |
1354
|
|
|
return $this->call('get', array($params), "Google_Service_Drive_About"); |
1355
|
|
|
} |
1356
|
|
|
} |
1357
|
|
|
|
1358
|
|
|
/** |
1359
|
|
|
* The "apps" collection of methods. |
1360
|
|
|
* Typical usage is: |
1361
|
|
|
* <code> |
1362
|
|
|
* $driveService = new Google_Service_Drive(...); |
1363
|
|
|
* $apps = $driveService->apps; |
1364
|
|
|
* </code> |
1365
|
|
|
*/ |
1366
|
|
|
class Google_Service_Drive_Apps_Resource extends Google_Service_Resource |
1367
|
|
|
{ |
1368
|
|
|
|
1369
|
|
|
/** |
1370
|
|
|
* Gets a specific app. (apps.get) |
1371
|
|
|
* |
1372
|
|
|
* @param string $appId The ID of the app. |
1373
|
|
|
* @param array $optParams Optional parameters. |
1374
|
|
|
* @return Google_Service_Drive_App |
1375
|
|
|
*/ |
1376
|
|
|
public function get($appId, $optParams = array()) |
1377
|
|
|
{ |
1378
|
|
|
$params = array('appId' => $appId); |
1379
|
|
|
$params = array_merge($params, $optParams); |
1380
|
|
|
return $this->call('get', array($params), "Google_Service_Drive_App"); |
1381
|
|
|
} |
1382
|
|
|
|
1383
|
|
|
/** |
1384
|
|
|
* Lists a user's installed apps. (apps.listApps) |
1385
|
|
|
* |
1386
|
|
|
* @param array $optParams Optional parameters. |
1387
|
|
|
* |
1388
|
|
|
* @opt_param string languageCode A language or locale code, as defined by BCP |
1389
|
|
|
* 47, with some extensions from Unicode's LDML format |
1390
|
|
|
* (http://www.unicode.org/reports/tr35/). |
1391
|
|
|
* @opt_param string appFilterExtensions A comma-separated list of file |
1392
|
|
|
* extensions for open with filtering. All apps within the given app query scope |
1393
|
|
|
* which can open any of the given file extensions will be included in the |
1394
|
|
|
* response. If appFilterMimeTypes are provided as well, the result is a union |
1395
|
|
|
* of the two resulting app lists. |
1396
|
|
|
* @opt_param string appFilterMimeTypes A comma-separated list of MIME types for |
1397
|
|
|
* open with filtering. All apps within the given app query scope which can open |
1398
|
|
|
* any of the given MIME types will be included in the response. If |
1399
|
|
|
* appFilterExtensions are provided as well, the result is a union of the two |
1400
|
|
|
* resulting app lists. |
1401
|
|
|
* @return Google_Service_Drive_AppList |
1402
|
|
|
*/ |
1403
|
|
|
public function listApps($optParams = array()) |
1404
|
|
|
{ |
1405
|
|
|
$params = array(); |
1406
|
|
|
$params = array_merge($params, $optParams); |
1407
|
|
|
return $this->call('list', array($params), "Google_Service_Drive_AppList"); |
1408
|
|
|
} |
1409
|
|
|
} |
1410
|
|
|
|
1411
|
|
|
/** |
1412
|
|
|
* The "changes" collection of methods. |
1413
|
|
|
* Typical usage is: |
1414
|
|
|
* <code> |
1415
|
|
|
* $driveService = new Google_Service_Drive(...); |
1416
|
|
|
* $changes = $driveService->changes; |
1417
|
|
|
* </code> |
1418
|
|
|
*/ |
1419
|
|
|
class Google_Service_Drive_Changes_Resource extends Google_Service_Resource |
1420
|
|
|
{ |
1421
|
|
|
|
1422
|
|
|
/** |
1423
|
|
|
* Gets a specific change. (changes.get) |
1424
|
|
|
* |
1425
|
|
|
* @param string $changeId The ID of the change. |
1426
|
|
|
* @param array $optParams Optional parameters. |
1427
|
|
|
* @return Google_Service_Drive_Change |
1428
|
|
|
*/ |
1429
|
|
|
public function get($changeId, $optParams = array()) |
1430
|
|
|
{ |
1431
|
|
|
$params = array('changeId' => $changeId); |
1432
|
|
|
$params = array_merge($params, $optParams); |
1433
|
|
|
return $this->call('get', array($params), "Google_Service_Drive_Change"); |
1434
|
|
|
} |
1435
|
|
|
|
1436
|
|
|
/** |
1437
|
|
|
* Lists the changes for a user. (changes.listChanges) |
1438
|
|
|
* |
1439
|
|
|
* @param array $optParams Optional parameters. |
1440
|
|
|
* |
1441
|
|
|
* @opt_param bool includeSubscribed Whether to include public files the user |
1442
|
|
|
* has opened and shared files. When set to false, the list only includes owned |
1443
|
|
|
* files plus any shared or public files the user has explicitly added to a |
1444
|
|
|
* folder they own. |
1445
|
|
|
* @opt_param bool includeDeleted Whether to include deleted items. |
1446
|
|
|
* @opt_param int maxResults Maximum number of changes to return. |
1447
|
|
|
* @opt_param string pageToken Page token for changes. |
1448
|
|
|
* @opt_param string spaces A comma-separated list of spaces to query. Supported |
1449
|
|
|
* values are 'drive', 'appDataFolder' and 'photos'. |
1450
|
|
|
* @opt_param string startChangeId Change ID to start listing changes from. |
1451
|
|
|
* @return Google_Service_Drive_ChangeList |
1452
|
|
|
*/ |
1453
|
|
|
public function listChanges($optParams = array()) |
1454
|
|
|
{ |
1455
|
|
|
$params = array(); |
1456
|
|
|
$params = array_merge($params, $optParams); |
1457
|
|
|
return $this->call('list', array($params), "Google_Service_Drive_ChangeList"); |
1458
|
|
|
} |
1459
|
|
|
|
1460
|
|
|
/** |
1461
|
|
|
* Subscribe to changes for a user. (changes.watch) |
1462
|
|
|
* |
1463
|
|
|
* @param Google_Channel $postBody |
1464
|
|
|
* @param array $optParams Optional parameters. |
1465
|
|
|
* |
1466
|
|
|
* @opt_param bool includeSubscribed Whether to include public files the user |
1467
|
|
|
* has opened and shared files. When set to false, the list only includes owned |
1468
|
|
|
* files plus any shared or public files the user has explicitly added to a |
1469
|
|
|
* folder they own. |
1470
|
|
|
* @opt_param bool includeDeleted Whether to include deleted items. |
1471
|
|
|
* @opt_param int maxResults Maximum number of changes to return. |
1472
|
|
|
* @opt_param string pageToken Page token for changes. |
1473
|
|
|
* @opt_param string spaces A comma-separated list of spaces to query. Supported |
1474
|
|
|
* values are 'drive', 'appDataFolder' and 'photos'. |
1475
|
|
|
* @opt_param string startChangeId Change ID to start listing changes from. |
1476
|
|
|
* @return Google_Service_Drive_Channel |
1477
|
|
|
*/ |
1478
|
|
|
public function watch(Google_Service_Drive_Channel $postBody, $optParams = array()) |
1479
|
|
|
{ |
1480
|
|
|
$params = array('postBody' => $postBody); |
1481
|
|
|
$params = array_merge($params, $optParams); |
1482
|
|
|
return $this->call('watch', array($params), "Google_Service_Drive_Channel"); |
1483
|
|
|
} |
1484
|
|
|
} |
1485
|
|
|
|
1486
|
|
|
/** |
1487
|
|
|
* The "channels" collection of methods. |
1488
|
|
|
* Typical usage is: |
1489
|
|
|
* <code> |
1490
|
|
|
* $driveService = new Google_Service_Drive(...); |
1491
|
|
|
* $channels = $driveService->channels; |
1492
|
|
|
* </code> |
1493
|
|
|
*/ |
1494
|
|
View Code Duplication |
class Google_Service_Drive_Channels_Resource extends Google_Service_Resource |
|
|
|
|
1495
|
|
|
{ |
1496
|
|
|
|
1497
|
|
|
/** |
1498
|
|
|
* Stop watching resources through this channel (channels.stop) |
1499
|
|
|
* |
1500
|
|
|
* @param Google_Channel $postBody |
1501
|
|
|
* @param array $optParams Optional parameters. |
1502
|
|
|
*/ |
1503
|
|
|
public function stop(Google_Service_Drive_Channel $postBody, $optParams = array()) |
1504
|
|
|
{ |
1505
|
|
|
$params = array('postBody' => $postBody); |
1506
|
|
|
$params = array_merge($params, $optParams); |
1507
|
|
|
return $this->call('stop', array($params)); |
1508
|
|
|
} |
1509
|
|
|
} |
1510
|
|
|
|
1511
|
|
|
/** |
1512
|
|
|
* The "children" collection of methods. |
1513
|
|
|
* Typical usage is: |
1514
|
|
|
* <code> |
1515
|
|
|
* $driveService = new Google_Service_Drive(...); |
1516
|
|
|
* $children = $driveService->children; |
1517
|
|
|
* </code> |
1518
|
|
|
*/ |
1519
|
|
|
class Google_Service_Drive_Children_Resource extends Google_Service_Resource |
1520
|
|
|
{ |
1521
|
|
|
|
1522
|
|
|
/** |
1523
|
|
|
* Removes a child from a folder. (children.delete) |
1524
|
|
|
* |
1525
|
|
|
* @param string $folderId The ID of the folder. |
1526
|
|
|
* @param string $childId The ID of the child. |
1527
|
|
|
* @param array $optParams Optional parameters. |
1528
|
|
|
*/ |
1529
|
|
|
public function delete($folderId, $childId, $optParams = array()) |
1530
|
|
|
{ |
1531
|
|
|
$params = array('folderId' => $folderId, 'childId' => $childId); |
1532
|
|
|
$params = array_merge($params, $optParams); |
1533
|
|
|
return $this->call('delete', array($params)); |
1534
|
|
|
} |
1535
|
|
|
|
1536
|
|
|
/** |
1537
|
|
|
* Gets a specific child reference. (children.get) |
1538
|
|
|
* |
1539
|
|
|
* @param string $folderId The ID of the folder. |
1540
|
|
|
* @param string $childId The ID of the child. |
1541
|
|
|
* @param array $optParams Optional parameters. |
1542
|
|
|
* @return Google_Service_Drive_ChildReference |
1543
|
|
|
*/ |
1544
|
|
|
public function get($folderId, $childId, $optParams = array()) |
1545
|
|
|
{ |
1546
|
|
|
$params = array('folderId' => $folderId, 'childId' => $childId); |
1547
|
|
|
$params = array_merge($params, $optParams); |
1548
|
|
|
return $this->call('get', array($params), "Google_Service_Drive_ChildReference"); |
1549
|
|
|
} |
1550
|
|
|
|
1551
|
|
|
/** |
1552
|
|
|
* Inserts a file into a folder. (children.insert) |
1553
|
|
|
* |
1554
|
|
|
* @param string $folderId The ID of the folder. |
1555
|
|
|
* @param Google_ChildReference $postBody |
1556
|
|
|
* @param array $optParams Optional parameters. |
1557
|
|
|
* @return Google_Service_Drive_ChildReference |
1558
|
|
|
*/ |
1559
|
|
|
public function insert($folderId, Google_Service_Drive_ChildReference $postBody, $optParams = array()) |
1560
|
|
|
{ |
1561
|
|
|
$params = array('folderId' => $folderId, 'postBody' => $postBody); |
1562
|
|
|
$params = array_merge($params, $optParams); |
1563
|
|
|
return $this->call('insert', array($params), "Google_Service_Drive_ChildReference"); |
1564
|
|
|
} |
1565
|
|
|
|
1566
|
|
|
/** |
1567
|
|
|
* Lists a folder's children. (children.listChildren) |
1568
|
|
|
* |
1569
|
|
|
* @param string $folderId The ID of the folder. |
1570
|
|
|
* @param array $optParams Optional parameters. |
1571
|
|
|
* |
1572
|
|
|
* @opt_param string orderBy A comma-separated list of sort keys. Valid keys are |
1573
|
|
|
* 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', |
1574
|
|
|
* 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred', |
1575
|
|
|
* and 'title'. Each key sorts ascending by default, but may be reversed with |
1576
|
|
|
* the 'desc' modifier. Example usage: ?orderBy=folder,modifiedDate desc,title. |
1577
|
|
|
* Please note that there is a current limitation for users with approximately |
1578
|
|
|
* one million files in which the requested sort order is ignored. |
1579
|
|
|
* @opt_param string pageToken Page token for children. |
1580
|
|
|
* @opt_param string q Query string for searching children. |
1581
|
|
|
* @opt_param int maxResults Maximum number of children to return. |
1582
|
|
|
* @return Google_Service_Drive_ChildList |
1583
|
|
|
*/ |
1584
|
|
|
public function listChildren($folderId, $optParams = array()) |
1585
|
|
|
{ |
1586
|
|
|
$params = array('folderId' => $folderId); |
1587
|
|
|
$params = array_merge($params, $optParams); |
1588
|
|
|
return $this->call('list', array($params), "Google_Service_Drive_ChildList"); |
1589
|
|
|
} |
1590
|
|
|
} |
1591
|
|
|
|
1592
|
|
|
/** |
1593
|
|
|
* The "comments" collection of methods. |
1594
|
|
|
* Typical usage is: |
1595
|
|
|
* <code> |
1596
|
|
|
* $driveService = new Google_Service_Drive(...); |
1597
|
|
|
* $comments = $driveService->comments; |
1598
|
|
|
* </code> |
1599
|
|
|
*/ |
1600
|
|
|
class Google_Service_Drive_Comments_Resource extends Google_Service_Resource |
1601
|
|
|
{ |
1602
|
|
|
|
1603
|
|
|
/** |
1604
|
|
|
* Deletes a comment. (comments.delete) |
1605
|
|
|
* |
1606
|
|
|
* @param string $fileId The ID of the file. |
1607
|
|
|
* @param string $commentId The ID of the comment. |
1608
|
|
|
* @param array $optParams Optional parameters. |
1609
|
|
|
*/ |
1610
|
|
|
public function delete($fileId, $commentId, $optParams = array()) |
1611
|
|
|
{ |
1612
|
|
|
$params = array('fileId' => $fileId, 'commentId' => $commentId); |
1613
|
|
|
$params = array_merge($params, $optParams); |
1614
|
|
|
return $this->call('delete', array($params)); |
1615
|
|
|
} |
1616
|
|
|
|
1617
|
|
|
/** |
1618
|
|
|
* Gets a comment by ID. (comments.get) |
1619
|
|
|
* |
1620
|
|
|
* @param string $fileId The ID of the file. |
1621
|
|
|
* @param string $commentId The ID of the comment. |
1622
|
|
|
* @param array $optParams Optional parameters. |
1623
|
|
|
* |
1624
|
|
|
* @opt_param bool includeDeleted If set, this will succeed when retrieving a |
1625
|
|
|
* deleted comment, and will include any deleted replies. |
1626
|
|
|
* @return Google_Service_Drive_Comment |
1627
|
|
|
*/ |
1628
|
|
|
public function get($fileId, $commentId, $optParams = array()) |
1629
|
|
|
{ |
1630
|
|
|
$params = array('fileId' => $fileId, 'commentId' => $commentId); |
1631
|
|
|
$params = array_merge($params, $optParams); |
1632
|
|
|
return $this->call('get', array($params), "Google_Service_Drive_Comment"); |
1633
|
|
|
} |
1634
|
|
|
|
1635
|
|
|
/** |
1636
|
|
|
* Creates a new comment on the given file. (comments.insert) |
1637
|
|
|
* |
1638
|
|
|
* @param string $fileId The ID of the file. |
1639
|
|
|
* @param Google_Comment $postBody |
1640
|
|
|
* @param array $optParams Optional parameters. |
1641
|
|
|
* @return Google_Service_Drive_Comment |
1642
|
|
|
*/ |
1643
|
|
|
public function insert($fileId, Google_Service_Drive_Comment $postBody, $optParams = array()) |
1644
|
|
|
{ |
1645
|
|
|
$params = array('fileId' => $fileId, 'postBody' => $postBody); |
1646
|
|
|
$params = array_merge($params, $optParams); |
1647
|
|
|
return $this->call('insert', array($params), "Google_Service_Drive_Comment"); |
1648
|
|
|
} |
1649
|
|
|
|
1650
|
|
|
/** |
1651
|
|
|
* Lists a file's comments. (comments.listComments) |
1652
|
|
|
* |
1653
|
|
|
* @param string $fileId The ID of the file. |
1654
|
|
|
* @param array $optParams Optional parameters. |
1655
|
|
|
* |
1656
|
|
|
* @opt_param string pageToken The continuation token, used to page through |
1657
|
|
|
* large result sets. To get the next page of results, set this parameter to the |
1658
|
|
|
* value of "nextPageToken" from the previous response. |
1659
|
|
|
* @opt_param string updatedMin Only discussions that were updated after this |
1660
|
|
|
* timestamp will be returned. Formatted as an RFC 3339 timestamp. |
1661
|
|
|
* @opt_param bool includeDeleted If set, all comments and replies, including |
1662
|
|
|
* deleted comments and replies (with content stripped) will be returned. |
1663
|
|
|
* @opt_param int maxResults The maximum number of discussions to include in the |
1664
|
|
|
* response, used for paging. |
1665
|
|
|
* @return Google_Service_Drive_CommentList |
1666
|
|
|
*/ |
1667
|
|
|
public function listComments($fileId, $optParams = array()) |
1668
|
|
|
{ |
1669
|
|
|
$params = array('fileId' => $fileId); |
1670
|
|
|
$params = array_merge($params, $optParams); |
1671
|
|
|
return $this->call('list', array($params), "Google_Service_Drive_CommentList"); |
1672
|
|
|
} |
1673
|
|
|
|
1674
|
|
|
/** |
1675
|
|
|
* Updates an existing comment. This method supports patch semantics. |
1676
|
|
|
* (comments.patch) |
1677
|
|
|
* |
1678
|
|
|
* @param string $fileId The ID of the file. |
1679
|
|
|
* @param string $commentId The ID of the comment. |
1680
|
|
|
* @param Google_Comment $postBody |
1681
|
|
|
* @param array $optParams Optional parameters. |
1682
|
|
|
* @return Google_Service_Drive_Comment |
1683
|
|
|
*/ |
1684
|
|
|
public function patch($fileId, $commentId, Google_Service_Drive_Comment $postBody, $optParams = array()) |
1685
|
|
|
{ |
1686
|
|
|
$params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody); |
1687
|
|
|
$params = array_merge($params, $optParams); |
1688
|
|
|
return $this->call('patch', array($params), "Google_Service_Drive_Comment"); |
1689
|
|
|
} |
1690
|
|
|
|
1691
|
|
|
/** |
1692
|
|
|
* Updates an existing comment. (comments.update) |
1693
|
|
|
* |
1694
|
|
|
* @param string $fileId The ID of the file. |
1695
|
|
|
* @param string $commentId The ID of the comment. |
1696
|
|
|
* @param Google_Comment $postBody |
1697
|
|
|
* @param array $optParams Optional parameters. |
1698
|
|
|
* @return Google_Service_Drive_Comment |
1699
|
|
|
*/ |
1700
|
|
|
public function update($fileId, $commentId, Google_Service_Drive_Comment $postBody, $optParams = array()) |
1701
|
|
|
{ |
1702
|
|
|
$params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody); |
1703
|
|
|
$params = array_merge($params, $optParams); |
1704
|
|
|
return $this->call('update', array($params), "Google_Service_Drive_Comment"); |
1705
|
|
|
} |
1706
|
|
|
} |
1707
|
|
|
|
1708
|
|
|
/** |
1709
|
|
|
* The "files" collection of methods. |
1710
|
|
|
* Typical usage is: |
1711
|
|
|
* <code> |
1712
|
|
|
* $driveService = new Google_Service_Drive(...); |
1713
|
|
|
* $files = $driveService->files; |
1714
|
|
|
* </code> |
1715
|
|
|
*/ |
1716
|
|
|
class Google_Service_Drive_Files_Resource extends Google_Service_Resource |
1717
|
|
|
{ |
1718
|
|
|
|
1719
|
|
|
/** |
1720
|
|
|
* Creates a copy of the specified file. (files.copy) |
1721
|
|
|
* |
1722
|
|
|
* @param string $fileId The ID of the file to copy. |
1723
|
|
|
* @param Google_DriveFile $postBody |
1724
|
|
|
* @param array $optParams Optional parameters. |
1725
|
|
|
* |
1726
|
|
|
* @opt_param bool convert Whether to convert this file to the corresponding |
1727
|
|
|
* Google Docs format. |
1728
|
|
|
* @opt_param string ocrLanguage If ocr is true, hints at the language to use. |
1729
|
|
|
* Valid values are BCP 47 codes. |
1730
|
|
|
* @opt_param string visibility The visibility of the new file. This parameter |
1731
|
|
|
* is only relevant when the source is not a native Google Doc and |
1732
|
|
|
* convert=false. |
1733
|
|
|
* @opt_param bool pinned Whether to pin the head revision of the new copy. A |
1734
|
|
|
* file can have a maximum of 200 pinned revisions. |
1735
|
|
|
* @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf |
1736
|
|
|
* uploads. |
1737
|
|
|
* @opt_param string timedTextTrackName The timed text track name. |
1738
|
|
|
* @opt_param string timedTextLanguage The language of the timed text. |
1739
|
|
|
* @return Google_Service_Drive_DriveFile |
1740
|
|
|
*/ |
1741
|
|
|
public function copy($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array()) |
1742
|
|
|
{ |
1743
|
|
|
$params = array('fileId' => $fileId, 'postBody' => $postBody); |
1744
|
|
|
$params = array_merge($params, $optParams); |
1745
|
|
|
return $this->call('copy', array($params), "Google_Service_Drive_DriveFile"); |
1746
|
|
|
} |
1747
|
|
|
|
1748
|
|
|
/** |
1749
|
|
|
* Permanently deletes a file by ID. Skips the trash. The currently |
1750
|
|
|
* authenticated user must own the file. (files.delete) |
1751
|
|
|
* |
1752
|
|
|
* @param string $fileId The ID of the file to delete. |
1753
|
|
|
* @param array $optParams Optional parameters. |
1754
|
|
|
*/ |
1755
|
|
|
public function delete($fileId, $optParams = array()) |
1756
|
|
|
{ |
1757
|
|
|
$params = array('fileId' => $fileId); |
1758
|
|
|
$params = array_merge($params, $optParams); |
1759
|
|
|
return $this->call('delete', array($params)); |
1760
|
|
|
} |
1761
|
|
|
|
1762
|
|
|
/** |
1763
|
|
|
* Permanently deletes all of the user's trashed files. (files.emptyTrash) |
1764
|
|
|
* |
1765
|
|
|
* @param array $optParams Optional parameters. |
1766
|
|
|
*/ |
1767
|
|
|
public function emptyTrash($optParams = array()) |
1768
|
|
|
{ |
1769
|
|
|
$params = array(); |
1770
|
|
|
$params = array_merge($params, $optParams); |
1771
|
|
|
return $this->call('emptyTrash', array($params)); |
1772
|
|
|
} |
1773
|
|
|
|
1774
|
|
|
/** |
1775
|
|
|
* Generates a set of file IDs which can be provided in insert requests. |
1776
|
|
|
* (files.generateIds) |
1777
|
|
|
* |
1778
|
|
|
* @param array $optParams Optional parameters. |
1779
|
|
|
* |
1780
|
|
|
* @opt_param int maxResults Maximum number of IDs to return. |
1781
|
|
|
* @opt_param string space The space in which the IDs can be used to create new |
1782
|
|
|
* files. Supported values are 'drive' and 'appDataFolder'. |
1783
|
|
|
* @return Google_Service_Drive_GeneratedIds |
1784
|
|
|
*/ |
1785
|
|
|
public function generateIds($optParams = array()) |
1786
|
|
|
{ |
1787
|
|
|
$params = array(); |
1788
|
|
|
$params = array_merge($params, $optParams); |
1789
|
|
|
return $this->call('generateIds', array($params), "Google_Service_Drive_GeneratedIds"); |
1790
|
|
|
} |
1791
|
|
|
|
1792
|
|
|
/** |
1793
|
|
|
* Gets a file's metadata by ID. (files.get) |
1794
|
|
|
* |
1795
|
|
|
* @param string $fileId The ID for the file in question. |
1796
|
|
|
* @param array $optParams Optional parameters. |
1797
|
|
|
* |
1798
|
|
|
* @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk |
1799
|
|
|
* of downloading known malware or other abusive files. |
1800
|
|
|
* @opt_param bool updateViewedDate Whether to update the view date after |
1801
|
|
|
* successfully retrieving the file. |
1802
|
|
|
* @opt_param string revisionId Specifies the Revision ID that should be |
1803
|
|
|
* downloaded. Ignored unless alt=media is specified. |
1804
|
|
|
* @opt_param string projection This parameter is deprecated and has no |
1805
|
|
|
* function. |
1806
|
|
|
* @return Google_Service_Drive_DriveFile |
1807
|
|
|
*/ |
1808
|
|
|
public function get($fileId, $optParams = array()) |
1809
|
|
|
{ |
1810
|
|
|
$params = array('fileId' => $fileId); |
1811
|
|
|
$params = array_merge($params, $optParams); |
1812
|
|
|
return $this->call('get', array($params), "Google_Service_Drive_DriveFile"); |
1813
|
|
|
} |
1814
|
|
|
|
1815
|
|
|
/** |
1816
|
|
|
* Insert a new file. (files.insert) |
1817
|
|
|
* |
1818
|
|
|
* @param Google_DriveFile $postBody |
1819
|
|
|
* @param array $optParams Optional parameters. |
1820
|
|
|
* |
1821
|
|
|
* @opt_param bool convert Whether to convert this file to the corresponding |
1822
|
|
|
* Google Docs format. |
1823
|
|
|
* @opt_param bool useContentAsIndexableText Whether to use the content as |
1824
|
|
|
* indexable text. |
1825
|
|
|
* @opt_param string ocrLanguage If ocr is true, hints at the language to use. |
1826
|
|
|
* Valid values are BCP 47 codes. |
1827
|
|
|
* @opt_param string visibility The visibility of the new file. This parameter |
1828
|
|
|
* is only relevant when convert=false. |
1829
|
|
|
* @opt_param bool pinned Whether to pin the head revision of the uploaded file. |
1830
|
|
|
* A file can have a maximum of 200 pinned revisions. |
1831
|
|
|
* @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf |
1832
|
|
|
* uploads. |
1833
|
|
|
* @opt_param string timedTextTrackName The timed text track name. |
1834
|
|
|
* @opt_param string timedTextLanguage The language of the timed text. |
1835
|
|
|
* @return Google_Service_Drive_DriveFile |
1836
|
|
|
*/ |
1837
|
|
|
public function insert(Google_Service_Drive_DriveFile $postBody, $optParams = array()) |
1838
|
|
|
{ |
1839
|
|
|
$params = array('postBody' => $postBody); |
1840
|
|
|
$params = array_merge($params, $optParams); |
1841
|
|
|
return $this->call('insert', array($params), "Google_Service_Drive_DriveFile"); |
1842
|
|
|
} |
1843
|
|
|
|
1844
|
|
|
/** |
1845
|
|
|
* Lists the user's files. (files.listFiles) |
1846
|
|
|
* |
1847
|
|
|
* @param array $optParams Optional parameters. |
1848
|
|
|
* |
1849
|
|
|
* @opt_param string orderBy A comma-separated list of sort keys. Valid keys are |
1850
|
|
|
* 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', |
1851
|
|
|
* 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred', |
1852
|
|
|
* and 'title'. Each key sorts ascending by default, but may be reversed with |
1853
|
|
|
* the 'desc' modifier. Example usage: ?orderBy=folder,modifiedDate desc,title. |
1854
|
|
|
* Please note that there is a current limitation for users with approximately |
1855
|
|
|
* one million files in which the requested sort order is ignored. |
1856
|
|
|
* @opt_param string projection This parameter is deprecated and has no |
1857
|
|
|
* function. |
1858
|
|
|
* @opt_param int maxResults Maximum number of files to return. |
1859
|
|
|
* @opt_param string q Query string for searching files. |
1860
|
|
|
* @opt_param string pageToken Page token for files. |
1861
|
|
|
* @opt_param string spaces A comma-separated list of spaces to query. Supported |
1862
|
|
|
* values are 'drive', 'appDataFolder' and 'photos'. |
1863
|
|
|
* @opt_param string corpus The body of items (files/documents) to which the |
1864
|
|
|
* query applies. |
1865
|
|
|
* @return Google_Service_Drive_FileList |
1866
|
|
|
*/ |
1867
|
|
|
public function listFiles($optParams = array()) |
1868
|
|
|
{ |
1869
|
|
|
$params = array(); |
1870
|
|
|
$params = array_merge($params, $optParams); |
1871
|
|
|
return $this->call('list', array($params), "Google_Service_Drive_FileList"); |
1872
|
|
|
} |
1873
|
|
|
|
1874
|
|
|
/** |
1875
|
|
|
* Updates file metadata and/or content. This method supports patch semantics. |
1876
|
|
|
* (files.patch) |
1877
|
|
|
* |
1878
|
|
|
* @param string $fileId The ID of the file to update. |
1879
|
|
|
* @param Google_DriveFile $postBody |
1880
|
|
|
* @param array $optParams Optional parameters. |
1881
|
|
|
* |
1882
|
|
|
* @opt_param string addParents Comma-separated list of parent IDs to add. |
1883
|
|
|
* @opt_param string modifiedDateBehavior Determines the behavior in which |
1884
|
|
|
* modifiedDate is updated. This overrides setModifiedDate. |
1885
|
|
|
* @opt_param string removeParents Comma-separated list of parent IDs to remove. |
1886
|
|
|
* @opt_param bool updateViewedDate Whether to update the view date after |
1887
|
|
|
* successfully updating the file. |
1888
|
|
|
* @opt_param bool setModifiedDate Whether to set the modified date with the |
1889
|
|
|
* supplied modified date. |
1890
|
|
|
* @opt_param bool useContentAsIndexableText Whether to use the content as |
1891
|
|
|
* indexable text. |
1892
|
|
|
* @opt_param bool convert This parameter is deprecated and has no function. |
1893
|
|
|
* @opt_param string ocrLanguage If ocr is true, hints at the language to use. |
1894
|
|
|
* Valid values are BCP 47 codes. |
1895
|
|
|
* @opt_param bool pinned Whether to pin the new revision. A file can have a |
1896
|
|
|
* maximum of 200 pinned revisions. |
1897
|
|
|
* @opt_param bool newRevision Whether a blob upload should create a new |
1898
|
|
|
* revision. If false, the blob data in the current head revision is replaced. |
1899
|
|
|
* If true or not set, a new blob is created as head revision, and previous |
1900
|
|
|
* unpinned revisions are preserved for a short period of time. Pinned revisions |
1901
|
|
|
* are stored indefinitely, using additional storage quota, up to a maximum of |
1902
|
|
|
* 200 revisions. For details on how revisions are retained, see the Drive Help |
1903
|
|
|
* Center. |
1904
|
|
|
* @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf |
1905
|
|
|
* uploads. |
1906
|
|
|
* @opt_param string timedTextLanguage The language of the timed text. |
1907
|
|
|
* @opt_param string timedTextTrackName The timed text track name. |
1908
|
|
|
* @return Google_Service_Drive_DriveFile |
1909
|
|
|
*/ |
1910
|
|
|
public function patch($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array()) |
1911
|
|
|
{ |
1912
|
|
|
$params = array('fileId' => $fileId, 'postBody' => $postBody); |
1913
|
|
|
$params = array_merge($params, $optParams); |
1914
|
|
|
return $this->call('patch', array($params), "Google_Service_Drive_DriveFile"); |
1915
|
|
|
} |
1916
|
|
|
|
1917
|
|
|
/** |
1918
|
|
|
* Set the file's updated time to the current server time. (files.touch) |
1919
|
|
|
* |
1920
|
|
|
* @param string $fileId The ID of the file to update. |
1921
|
|
|
* @param array $optParams Optional parameters. |
1922
|
|
|
* @return Google_Service_Drive_DriveFile |
1923
|
|
|
*/ |
1924
|
|
|
public function touch($fileId, $optParams = array()) |
1925
|
|
|
{ |
1926
|
|
|
$params = array('fileId' => $fileId); |
1927
|
|
|
$params = array_merge($params, $optParams); |
1928
|
|
|
return $this->call('touch', array($params), "Google_Service_Drive_DriveFile"); |
1929
|
|
|
} |
1930
|
|
|
|
1931
|
|
|
/** |
1932
|
|
|
* Moves a file to the trash. The currently authenticated user must own the |
1933
|
|
|
* file. (files.trash) |
1934
|
|
|
* |
1935
|
|
|
* @param string $fileId The ID of the file to trash. |
1936
|
|
|
* @param array $optParams Optional parameters. |
1937
|
|
|
* @return Google_Service_Drive_DriveFile |
1938
|
|
|
*/ |
1939
|
|
|
public function trash($fileId, $optParams = array()) |
1940
|
|
|
{ |
1941
|
|
|
$params = array('fileId' => $fileId); |
1942
|
|
|
$params = array_merge($params, $optParams); |
1943
|
|
|
return $this->call('trash', array($params), "Google_Service_Drive_DriveFile"); |
1944
|
|
|
} |
1945
|
|
|
|
1946
|
|
|
/** |
1947
|
|
|
* Restores a file from the trash. (files.untrash) |
1948
|
|
|
* |
1949
|
|
|
* @param string $fileId The ID of the file to untrash. |
1950
|
|
|
* @param array $optParams Optional parameters. |
1951
|
|
|
* @return Google_Service_Drive_DriveFile |
1952
|
|
|
*/ |
1953
|
|
|
public function untrash($fileId, $optParams = array()) |
1954
|
|
|
{ |
1955
|
|
|
$params = array('fileId' => $fileId); |
1956
|
|
|
$params = array_merge($params, $optParams); |
1957
|
|
|
return $this->call('untrash', array($params), "Google_Service_Drive_DriveFile"); |
1958
|
|
|
} |
1959
|
|
|
|
1960
|
|
|
/** |
1961
|
|
|
* Updates file metadata and/or content. (files.update) |
1962
|
|
|
* |
1963
|
|
|
* @param string $fileId The ID of the file to update. |
1964
|
|
|
* @param Google_DriveFile $postBody |
1965
|
|
|
* @param array $optParams Optional parameters. |
1966
|
|
|
* |
1967
|
|
|
* @opt_param string addParents Comma-separated list of parent IDs to add. |
1968
|
|
|
* @opt_param string modifiedDateBehavior Determines the behavior in which |
1969
|
|
|
* modifiedDate is updated. This overrides setModifiedDate. |
1970
|
|
|
* @opt_param string removeParents Comma-separated list of parent IDs to remove. |
1971
|
|
|
* @opt_param bool updateViewedDate Whether to update the view date after |
1972
|
|
|
* successfully updating the file. |
1973
|
|
|
* @opt_param bool setModifiedDate Whether to set the modified date with the |
1974
|
|
|
* supplied modified date. |
1975
|
|
|
* @opt_param bool useContentAsIndexableText Whether to use the content as |
1976
|
|
|
* indexable text. |
1977
|
|
|
* @opt_param bool convert This parameter is deprecated and has no function. |
1978
|
|
|
* @opt_param string ocrLanguage If ocr is true, hints at the language to use. |
1979
|
|
|
* Valid values are BCP 47 codes. |
1980
|
|
|
* @opt_param bool pinned Whether to pin the new revision. A file can have a |
1981
|
|
|
* maximum of 200 pinned revisions. |
1982
|
|
|
* @opt_param bool newRevision Whether a blob upload should create a new |
1983
|
|
|
* revision. If false, the blob data in the current head revision is replaced. |
1984
|
|
|
* If true or not set, a new blob is created as head revision, and previous |
1985
|
|
|
* unpinned revisions are preserved for a short period of time. Pinned revisions |
1986
|
|
|
* are stored indefinitely, using additional storage quota, up to a maximum of |
1987
|
|
|
* 200 revisions. For details on how revisions are retained, see the Drive Help |
1988
|
|
|
* Center. |
1989
|
|
|
* @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf |
1990
|
|
|
* uploads. |
1991
|
|
|
* @opt_param string timedTextLanguage The language of the timed text. |
1992
|
|
|
* @opt_param string timedTextTrackName The timed text track name. |
1993
|
|
|
* @return Google_Service_Drive_DriveFile |
1994
|
|
|
*/ |
1995
|
|
|
public function update($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array()) |
1996
|
|
|
{ |
1997
|
|
|
$params = array('fileId' => $fileId, 'postBody' => $postBody); |
1998
|
|
|
$params = array_merge($params, $optParams); |
1999
|
|
|
return $this->call('update', array($params), "Google_Service_Drive_DriveFile"); |
2000
|
|
|
} |
2001
|
|
|
|
2002
|
|
|
/** |
2003
|
|
|
* Subscribe to changes on a file (files.watch) |
2004
|
|
|
* |
2005
|
|
|
* @param string $fileId The ID for the file in question. |
2006
|
|
|
* @param Google_Channel $postBody |
2007
|
|
|
* @param array $optParams Optional parameters. |
2008
|
|
|
* |
2009
|
|
|
* @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk |
2010
|
|
|
* of downloading known malware or other abusive files. |
2011
|
|
|
* @opt_param bool updateViewedDate Whether to update the view date after |
2012
|
|
|
* successfully retrieving the file. |
2013
|
|
|
* @opt_param string revisionId Specifies the Revision ID that should be |
2014
|
|
|
* downloaded. Ignored unless alt=media is specified. |
2015
|
|
|
* @opt_param string projection This parameter is deprecated and has no |
2016
|
|
|
* function. |
2017
|
|
|
* @return Google_Service_Drive_Channel |
2018
|
|
|
*/ |
2019
|
|
|
public function watch($fileId, Google_Service_Drive_Channel $postBody, $optParams = array()) |
2020
|
|
|
{ |
2021
|
|
|
$params = array('fileId' => $fileId, 'postBody' => $postBody); |
2022
|
|
|
$params = array_merge($params, $optParams); |
2023
|
|
|
return $this->call('watch', array($params), "Google_Service_Drive_Channel"); |
2024
|
|
|
} |
2025
|
|
|
} |
2026
|
|
|
|
2027
|
|
|
/** |
2028
|
|
|
* The "parents" collection of methods. |
2029
|
|
|
* Typical usage is: |
2030
|
|
|
* <code> |
2031
|
|
|
* $driveService = new Google_Service_Drive(...); |
2032
|
|
|
* $parents = $driveService->parents; |
2033
|
|
|
* </code> |
2034
|
|
|
*/ |
2035
|
|
|
class Google_Service_Drive_Parents_Resource extends Google_Service_Resource |
2036
|
|
|
{ |
2037
|
|
|
|
2038
|
|
|
/** |
2039
|
|
|
* Removes a parent from a file. (parents.delete) |
2040
|
|
|
* |
2041
|
|
|
* @param string $fileId The ID of the file. |
2042
|
|
|
* @param string $parentId The ID of the parent. |
2043
|
|
|
* @param array $optParams Optional parameters. |
2044
|
|
|
*/ |
2045
|
|
|
public function delete($fileId, $parentId, $optParams = array()) |
2046
|
|
|
{ |
2047
|
|
|
$params = array('fileId' => $fileId, 'parentId' => $parentId); |
2048
|
|
|
$params = array_merge($params, $optParams); |
2049
|
|
|
return $this->call('delete', array($params)); |
2050
|
|
|
} |
2051
|
|
|
|
2052
|
|
|
/** |
2053
|
|
|
* Gets a specific parent reference. (parents.get) |
2054
|
|
|
* |
2055
|
|
|
* @param string $fileId The ID of the file. |
2056
|
|
|
* @param string $parentId The ID of the parent. |
2057
|
|
|
* @param array $optParams Optional parameters. |
2058
|
|
|
* @return Google_Service_Drive_ParentReference |
2059
|
|
|
*/ |
2060
|
|
|
public function get($fileId, $parentId, $optParams = array()) |
2061
|
|
|
{ |
2062
|
|
|
$params = array('fileId' => $fileId, 'parentId' => $parentId); |
2063
|
|
|
$params = array_merge($params, $optParams); |
2064
|
|
|
return $this->call('get', array($params), "Google_Service_Drive_ParentReference"); |
2065
|
|
|
} |
2066
|
|
|
|
2067
|
|
|
/** |
2068
|
|
|
* Adds a parent folder for a file. (parents.insert) |
2069
|
|
|
* |
2070
|
|
|
* @param string $fileId The ID of the file. |
2071
|
|
|
* @param Google_ParentReference $postBody |
2072
|
|
|
* @param array $optParams Optional parameters. |
2073
|
|
|
* @return Google_Service_Drive_ParentReference |
2074
|
|
|
*/ |
2075
|
|
|
public function insert($fileId, Google_Service_Drive_ParentReference $postBody, $optParams = array()) |
2076
|
|
|
{ |
2077
|
|
|
$params = array('fileId' => $fileId, 'postBody' => $postBody); |
2078
|
|
|
$params = array_merge($params, $optParams); |
2079
|
|
|
return $this->call('insert', array($params), "Google_Service_Drive_ParentReference"); |
2080
|
|
|
} |
2081
|
|
|
|
2082
|
|
|
/** |
2083
|
|
|
* Lists a file's parents. (parents.listParents) |
2084
|
|
|
* |
2085
|
|
|
* @param string $fileId The ID of the file. |
2086
|
|
|
* @param array $optParams Optional parameters. |
2087
|
|
|
* @return Google_Service_Drive_ParentList |
2088
|
|
|
*/ |
2089
|
|
|
public function listParents($fileId, $optParams = array()) |
2090
|
|
|
{ |
2091
|
|
|
$params = array('fileId' => $fileId); |
2092
|
|
|
$params = array_merge($params, $optParams); |
2093
|
|
|
return $this->call('list', array($params), "Google_Service_Drive_ParentList"); |
2094
|
|
|
} |
2095
|
|
|
} |
2096
|
|
|
|
2097
|
|
|
/** |
2098
|
|
|
* The "permissions" collection of methods. |
2099
|
|
|
* Typical usage is: |
2100
|
|
|
* <code> |
2101
|
|
|
* $driveService = new Google_Service_Drive(...); |
2102
|
|
|
* $permissions = $driveService->permissions; |
2103
|
|
|
* </code> |
2104
|
|
|
*/ |
2105
|
|
|
class Google_Service_Drive_Permissions_Resource extends Google_Service_Resource |
2106
|
|
|
{ |
2107
|
|
|
|
2108
|
|
|
/** |
2109
|
|
|
* Deletes a permission from a file. (permissions.delete) |
2110
|
|
|
* |
2111
|
|
|
* @param string $fileId The ID for the file. |
2112
|
|
|
* @param string $permissionId The ID for the permission. |
2113
|
|
|
* @param array $optParams Optional parameters. |
2114
|
|
|
*/ |
2115
|
|
|
public function delete($fileId, $permissionId, $optParams = array()) |
2116
|
|
|
{ |
2117
|
|
|
$params = array('fileId' => $fileId, 'permissionId' => $permissionId); |
2118
|
|
|
$params = array_merge($params, $optParams); |
2119
|
|
|
return $this->call('delete', array($params)); |
2120
|
|
|
} |
2121
|
|
|
|
2122
|
|
|
/** |
2123
|
|
|
* Gets a permission by ID. (permissions.get) |
2124
|
|
|
* |
2125
|
|
|
* @param string $fileId The ID for the file. |
2126
|
|
|
* @param string $permissionId The ID for the permission. |
2127
|
|
|
* @param array $optParams Optional parameters. |
2128
|
|
|
* @return Google_Service_Drive_Permission |
2129
|
|
|
*/ |
2130
|
|
|
public function get($fileId, $permissionId, $optParams = array()) |
2131
|
|
|
{ |
2132
|
|
|
$params = array('fileId' => $fileId, 'permissionId' => $permissionId); |
2133
|
|
|
$params = array_merge($params, $optParams); |
2134
|
|
|
return $this->call('get', array($params), "Google_Service_Drive_Permission"); |
2135
|
|
|
} |
2136
|
|
|
|
2137
|
|
|
/** |
2138
|
|
|
* Returns the permission ID for an email address. (permissions.getIdForEmail) |
2139
|
|
|
* |
2140
|
|
|
* @param string $email The email address for which to return a permission ID |
2141
|
|
|
* @param array $optParams Optional parameters. |
2142
|
|
|
* @return Google_Service_Drive_PermissionId |
2143
|
|
|
*/ |
2144
|
|
|
public function getIdForEmail($email, $optParams = array()) |
2145
|
|
|
{ |
2146
|
|
|
$params = array('email' => $email); |
2147
|
|
|
$params = array_merge($params, $optParams); |
2148
|
|
|
return $this->call('getIdForEmail', array($params), "Google_Service_Drive_PermissionId"); |
2149
|
|
|
} |
2150
|
|
|
|
2151
|
|
|
/** |
2152
|
|
|
* Inserts a permission for a file. (permissions.insert) |
2153
|
|
|
* |
2154
|
|
|
* @param string $fileId The ID for the file. |
2155
|
|
|
* @param Google_Permission $postBody |
2156
|
|
|
* @param array $optParams Optional parameters. |
2157
|
|
|
* |
2158
|
|
|
* @opt_param string emailMessage A custom message to include in notification |
2159
|
|
|
* emails. |
2160
|
|
|
* @opt_param bool sendNotificationEmails Whether to send notification emails |
2161
|
|
|
* when sharing to users or groups. This parameter is ignored and an email is |
2162
|
|
|
* sent if the role is owner. |
2163
|
|
|
* @return Google_Service_Drive_Permission |
2164
|
|
|
*/ |
2165
|
|
|
public function insert($fileId, Google_Service_Drive_Permission $postBody, $optParams = array()) |
2166
|
|
|
{ |
2167
|
|
|
$params = array('fileId' => $fileId, 'postBody' => $postBody); |
2168
|
|
|
$params = array_merge($params, $optParams); |
2169
|
|
|
return $this->call('insert', array($params), "Google_Service_Drive_Permission"); |
2170
|
|
|
} |
2171
|
|
|
|
2172
|
|
|
/** |
2173
|
|
|
* Lists a file's permissions. (permissions.listPermissions) |
2174
|
|
|
* |
2175
|
|
|
* @param string $fileId The ID for the file. |
2176
|
|
|
* @param array $optParams Optional parameters. |
2177
|
|
|
* @return Google_Service_Drive_PermissionList |
2178
|
|
|
*/ |
2179
|
|
|
public function listPermissions($fileId, $optParams = array()) |
2180
|
|
|
{ |
2181
|
|
|
$params = array('fileId' => $fileId); |
2182
|
|
|
$params = array_merge($params, $optParams); |
2183
|
|
|
return $this->call('list', array($params), "Google_Service_Drive_PermissionList"); |
2184
|
|
|
} |
2185
|
|
|
|
2186
|
|
|
/** |
2187
|
|
|
* Updates a permission. This method supports patch semantics. |
2188
|
|
|
* (permissions.patch) |
2189
|
|
|
* |
2190
|
|
|
* @param string $fileId The ID for the file. |
2191
|
|
|
* @param string $permissionId The ID for the permission. |
2192
|
|
|
* @param Google_Permission $postBody |
2193
|
|
|
* @param array $optParams Optional parameters. |
2194
|
|
|
* |
2195
|
|
|
* @opt_param bool transferOwnership Whether changing a role to 'owner' |
2196
|
|
|
* downgrades the current owners to writers. Does nothing if the specified role |
2197
|
|
|
* is not 'owner'. |
2198
|
|
|
* @return Google_Service_Drive_Permission |
2199
|
|
|
*/ |
2200
|
|
|
public function patch($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array()) |
2201
|
|
|
{ |
2202
|
|
|
$params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody); |
2203
|
|
|
$params = array_merge($params, $optParams); |
2204
|
|
|
return $this->call('patch', array($params), "Google_Service_Drive_Permission"); |
2205
|
|
|
} |
2206
|
|
|
|
2207
|
|
|
/** |
2208
|
|
|
* Updates a permission. (permissions.update) |
2209
|
|
|
* |
2210
|
|
|
* @param string $fileId The ID for the file. |
2211
|
|
|
* @param string $permissionId The ID for the permission. |
2212
|
|
|
* @param Google_Permission $postBody |
2213
|
|
|
* @param array $optParams Optional parameters. |
2214
|
|
|
* |
2215
|
|
|
* @opt_param bool transferOwnership Whether changing a role to 'owner' |
2216
|
|
|
* downgrades the current owners to writers. Does nothing if the specified role |
2217
|
|
|
* is not 'owner'. |
2218
|
|
|
* @return Google_Service_Drive_Permission |
2219
|
|
|
*/ |
2220
|
|
|
public function update($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array()) |
2221
|
|
|
{ |
2222
|
|
|
$params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody); |
2223
|
|
|
$params = array_merge($params, $optParams); |
2224
|
|
|
return $this->call('update', array($params), "Google_Service_Drive_Permission"); |
2225
|
|
|
} |
2226
|
|
|
} |
2227
|
|
|
|
2228
|
|
|
/** |
2229
|
|
|
* The "properties" collection of methods. |
2230
|
|
|
* Typical usage is: |
2231
|
|
|
* <code> |
2232
|
|
|
* $driveService = new Google_Service_Drive(...); |
2233
|
|
|
* $properties = $driveService->properties; |
2234
|
|
|
* </code> |
2235
|
|
|
*/ |
2236
|
|
|
class Google_Service_Drive_Properties_Resource extends Google_Service_Resource |
2237
|
|
|
{ |
2238
|
|
|
|
2239
|
|
|
/** |
2240
|
|
|
* Deletes a property. (properties.delete) |
2241
|
|
|
* |
2242
|
|
|
* @param string $fileId The ID of the file. |
2243
|
|
|
* @param string $propertyKey The key of the property. |
2244
|
|
|
* @param array $optParams Optional parameters. |
2245
|
|
|
* |
2246
|
|
|
* @opt_param string visibility The visibility of the property. |
2247
|
|
|
*/ |
2248
|
|
|
public function delete($fileId, $propertyKey, $optParams = array()) |
2249
|
|
|
{ |
2250
|
|
|
$params = array('fileId' => $fileId, 'propertyKey' => $propertyKey); |
2251
|
|
|
$params = array_merge($params, $optParams); |
2252
|
|
|
return $this->call('delete', array($params)); |
2253
|
|
|
} |
2254
|
|
|
|
2255
|
|
|
/** |
2256
|
|
|
* Gets a property by its key. (properties.get) |
2257
|
|
|
* |
2258
|
|
|
* @param string $fileId The ID of the file. |
2259
|
|
|
* @param string $propertyKey The key of the property. |
2260
|
|
|
* @param array $optParams Optional parameters. |
2261
|
|
|
* |
2262
|
|
|
* @opt_param string visibility The visibility of the property. |
2263
|
|
|
* @return Google_Service_Drive_Property |
2264
|
|
|
*/ |
2265
|
|
|
public function get($fileId, $propertyKey, $optParams = array()) |
2266
|
|
|
{ |
2267
|
|
|
$params = array('fileId' => $fileId, 'propertyKey' => $propertyKey); |
2268
|
|
|
$params = array_merge($params, $optParams); |
2269
|
|
|
return $this->call('get', array($params), "Google_Service_Drive_Property"); |
2270
|
|
|
} |
2271
|
|
|
|
2272
|
|
|
/** |
2273
|
|
|
* Adds a property to a file. (properties.insert) |
2274
|
|
|
* |
2275
|
|
|
* @param string $fileId The ID of the file. |
2276
|
|
|
* @param Google_Property $postBody |
2277
|
|
|
* @param array $optParams Optional parameters. |
2278
|
|
|
* @return Google_Service_Drive_Property |
2279
|
|
|
*/ |
2280
|
|
|
public function insert($fileId, Google_Service_Drive_Property $postBody, $optParams = array()) |
2281
|
|
|
{ |
2282
|
|
|
$params = array('fileId' => $fileId, 'postBody' => $postBody); |
2283
|
|
|
$params = array_merge($params, $optParams); |
2284
|
|
|
return $this->call('insert', array($params), "Google_Service_Drive_Property"); |
2285
|
|
|
} |
2286
|
|
|
|
2287
|
|
|
/** |
2288
|
|
|
* Lists a file's properties. (properties.listProperties) |
2289
|
|
|
* |
2290
|
|
|
* @param string $fileId The ID of the file. |
2291
|
|
|
* @param array $optParams Optional parameters. |
2292
|
|
|
* @return Google_Service_Drive_PropertyList |
2293
|
|
|
*/ |
2294
|
|
|
public function listProperties($fileId, $optParams = array()) |
2295
|
|
|
{ |
2296
|
|
|
$params = array('fileId' => $fileId); |
2297
|
|
|
$params = array_merge($params, $optParams); |
2298
|
|
|
return $this->call('list', array($params), "Google_Service_Drive_PropertyList"); |
2299
|
|
|
} |
2300
|
|
|
|
2301
|
|
|
/** |
2302
|
|
|
* Updates a property. This method supports patch semantics. (properties.patch) |
2303
|
|
|
* |
2304
|
|
|
* @param string $fileId The ID of the file. |
2305
|
|
|
* @param string $propertyKey The key of the property. |
2306
|
|
|
* @param Google_Property $postBody |
2307
|
|
|
* @param array $optParams Optional parameters. |
2308
|
|
|
* |
2309
|
|
|
* @opt_param string visibility The visibility of the property. |
2310
|
|
|
* @return Google_Service_Drive_Property |
2311
|
|
|
*/ |
2312
|
|
|
public function patch($fileId, $propertyKey, Google_Service_Drive_Property $postBody, $optParams = array()) |
2313
|
|
|
{ |
2314
|
|
|
$params = array('fileId' => $fileId, 'propertyKey' => $propertyKey, 'postBody' => $postBody); |
2315
|
|
|
$params = array_merge($params, $optParams); |
2316
|
|
|
return $this->call('patch', array($params), "Google_Service_Drive_Property"); |
2317
|
|
|
} |
2318
|
|
|
|
2319
|
|
|
/** |
2320
|
|
|
* Updates a property. (properties.update) |
2321
|
|
|
* |
2322
|
|
|
* @param string $fileId The ID of the file. |
2323
|
|
|
* @param string $propertyKey The key of the property. |
2324
|
|
|
* @param Google_Property $postBody |
2325
|
|
|
* @param array $optParams Optional parameters. |
2326
|
|
|
* |
2327
|
|
|
* @opt_param string visibility The visibility of the property. |
2328
|
|
|
* @return Google_Service_Drive_Property |
2329
|
|
|
*/ |
2330
|
|
|
public function update($fileId, $propertyKey, Google_Service_Drive_Property $postBody, $optParams = array()) |
2331
|
|
|
{ |
2332
|
|
|
$params = array('fileId' => $fileId, 'propertyKey' => $propertyKey, 'postBody' => $postBody); |
2333
|
|
|
$params = array_merge($params, $optParams); |
2334
|
|
|
return $this->call('update', array($params), "Google_Service_Drive_Property"); |
2335
|
|
|
} |
2336
|
|
|
} |
2337
|
|
|
|
2338
|
|
|
/** |
2339
|
|
|
* The "realtime" collection of methods. |
2340
|
|
|
* Typical usage is: |
2341
|
|
|
* <code> |
2342
|
|
|
* $driveService = new Google_Service_Drive(...); |
2343
|
|
|
* $realtime = $driveService->realtime; |
2344
|
|
|
* </code> |
2345
|
|
|
*/ |
2346
|
|
|
class Google_Service_Drive_Realtime_Resource extends Google_Service_Resource |
2347
|
|
|
{ |
2348
|
|
|
|
2349
|
|
|
/** |
2350
|
|
|
* Exports the contents of the Realtime API data model associated with this file |
2351
|
|
|
* as JSON. (realtime.get) |
2352
|
|
|
* |
2353
|
|
|
* @param string $fileId The ID of the file that the Realtime API data model is |
2354
|
|
|
* associated with. |
2355
|
|
|
* @param array $optParams Optional parameters. |
2356
|
|
|
* |
2357
|
|
|
* @opt_param int revision The revision of the Realtime API data model to |
2358
|
|
|
* export. Revisions start at 1 (the initial empty data model) and are |
2359
|
|
|
* incremented with each change. If this parameter is excluded, the most recent |
2360
|
|
|
* data model will be returned. |
2361
|
|
|
*/ |
2362
|
|
|
public function get($fileId, $optParams = array()) |
2363
|
|
|
{ |
2364
|
|
|
$params = array('fileId' => $fileId); |
2365
|
|
|
$params = array_merge($params, $optParams); |
2366
|
|
|
return $this->call('get', array($params)); |
2367
|
|
|
} |
2368
|
|
|
|
2369
|
|
|
/** |
2370
|
|
|
* Overwrites the Realtime API data model associated with this file with the |
2371
|
|
|
* provided JSON data model. (realtime.update) |
2372
|
|
|
* |
2373
|
|
|
* @param string $fileId The ID of the file that the Realtime API data model is |
2374
|
|
|
* associated with. |
2375
|
|
|
* @param array $optParams Optional parameters. |
2376
|
|
|
* |
2377
|
|
|
* @opt_param string baseRevision The revision of the model to diff the uploaded |
2378
|
|
|
* model against. If set, the uploaded model is diffed against the provided |
2379
|
|
|
* revision and those differences are merged with any changes made to the model |
2380
|
|
|
* after the provided revision. If not set, the uploaded model replaces the |
2381
|
|
|
* current model on the server. |
2382
|
|
|
*/ |
2383
|
|
|
public function update($fileId, $optParams = array()) |
2384
|
|
|
{ |
2385
|
|
|
$params = array('fileId' => $fileId); |
2386
|
|
|
$params = array_merge($params, $optParams); |
2387
|
|
|
return $this->call('update', array($params)); |
2388
|
|
|
} |
2389
|
|
|
} |
2390
|
|
|
|
2391
|
|
|
/** |
2392
|
|
|
* The "replies" collection of methods. |
2393
|
|
|
* Typical usage is: |
2394
|
|
|
* <code> |
2395
|
|
|
* $driveService = new Google_Service_Drive(...); |
2396
|
|
|
* $replies = $driveService->replies; |
2397
|
|
|
* </code> |
2398
|
|
|
*/ |
2399
|
|
|
class Google_Service_Drive_Replies_Resource extends Google_Service_Resource |
2400
|
|
|
{ |
2401
|
|
|
|
2402
|
|
|
/** |
2403
|
|
|
* Deletes a reply. (replies.delete) |
2404
|
|
|
* |
2405
|
|
|
* @param string $fileId The ID of the file. |
2406
|
|
|
* @param string $commentId The ID of the comment. |
2407
|
|
|
* @param string $replyId The ID of the reply. |
2408
|
|
|
* @param array $optParams Optional parameters. |
2409
|
|
|
*/ |
2410
|
|
|
public function delete($fileId, $commentId, $replyId, $optParams = array()) |
2411
|
|
|
{ |
2412
|
|
|
$params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId); |
2413
|
|
|
$params = array_merge($params, $optParams); |
2414
|
|
|
return $this->call('delete', array($params)); |
2415
|
|
|
} |
2416
|
|
|
|
2417
|
|
|
/** |
2418
|
|
|
* Gets a reply. (replies.get) |
2419
|
|
|
* |
2420
|
|
|
* @param string $fileId The ID of the file. |
2421
|
|
|
* @param string $commentId The ID of the comment. |
2422
|
|
|
* @param string $replyId The ID of the reply. |
2423
|
|
|
* @param array $optParams Optional parameters. |
2424
|
|
|
* |
2425
|
|
|
* @opt_param bool includeDeleted If set, this will succeed when retrieving a |
2426
|
|
|
* deleted reply. |
2427
|
|
|
* @return Google_Service_Drive_CommentReply |
2428
|
|
|
*/ |
2429
|
|
|
public function get($fileId, $commentId, $replyId, $optParams = array()) |
2430
|
|
|
{ |
2431
|
|
|
$params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId); |
2432
|
|
|
$params = array_merge($params, $optParams); |
2433
|
|
|
return $this->call('get', array($params), "Google_Service_Drive_CommentReply"); |
2434
|
|
|
} |
2435
|
|
|
|
2436
|
|
|
/** |
2437
|
|
|
* Creates a new reply to the given comment. (replies.insert) |
2438
|
|
|
* |
2439
|
|
|
* @param string $fileId The ID of the file. |
2440
|
|
|
* @param string $commentId The ID of the comment. |
2441
|
|
|
* @param Google_CommentReply $postBody |
2442
|
|
|
* @param array $optParams Optional parameters. |
2443
|
|
|
* @return Google_Service_Drive_CommentReply |
2444
|
|
|
*/ |
2445
|
|
|
public function insert($fileId, $commentId, Google_Service_Drive_CommentReply $postBody, $optParams = array()) |
2446
|
|
|
{ |
2447
|
|
|
$params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody); |
2448
|
|
|
$params = array_merge($params, $optParams); |
2449
|
|
|
return $this->call('insert', array($params), "Google_Service_Drive_CommentReply"); |
2450
|
|
|
} |
2451
|
|
|
|
2452
|
|
|
/** |
2453
|
|
|
* Lists all of the replies to a comment. (replies.listReplies) |
2454
|
|
|
* |
2455
|
|
|
* @param string $fileId The ID of the file. |
2456
|
|
|
* @param string $commentId The ID of the comment. |
2457
|
|
|
* @param array $optParams Optional parameters. |
2458
|
|
|
* |
2459
|
|
|
* @opt_param string pageToken The continuation token, used to page through |
2460
|
|
|
* large result sets. To get the next page of results, set this parameter to the |
2461
|
|
|
* value of "nextPageToken" from the previous response. |
2462
|
|
|
* @opt_param bool includeDeleted If set, all replies, including deleted replies |
2463
|
|
|
* (with content stripped) will be returned. |
2464
|
|
|
* @opt_param int maxResults The maximum number of replies to include in the |
2465
|
|
|
* response, used for paging. |
2466
|
|
|
* @return Google_Service_Drive_CommentReplyList |
2467
|
|
|
*/ |
2468
|
|
|
public function listReplies($fileId, $commentId, $optParams = array()) |
2469
|
|
|
{ |
2470
|
|
|
$params = array('fileId' => $fileId, 'commentId' => $commentId); |
2471
|
|
|
$params = array_merge($params, $optParams); |
2472
|
|
|
return $this->call('list', array($params), "Google_Service_Drive_CommentReplyList"); |
2473
|
|
|
} |
2474
|
|
|
|
2475
|
|
|
/** |
2476
|
|
|
* Updates an existing reply. This method supports patch semantics. |
2477
|
|
|
* (replies.patch) |
2478
|
|
|
* |
2479
|
|
|
* @param string $fileId The ID of the file. |
2480
|
|
|
* @param string $commentId The ID of the comment. |
2481
|
|
|
* @param string $replyId The ID of the reply. |
2482
|
|
|
* @param Google_CommentReply $postBody |
2483
|
|
|
* @param array $optParams Optional parameters. |
2484
|
|
|
* @return Google_Service_Drive_CommentReply |
2485
|
|
|
*/ |
2486
|
|
|
public function patch($fileId, $commentId, $replyId, Google_Service_Drive_CommentReply $postBody, $optParams = array()) |
2487
|
|
|
{ |
2488
|
|
|
$params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody); |
2489
|
|
|
$params = array_merge($params, $optParams); |
2490
|
|
|
return $this->call('patch', array($params), "Google_Service_Drive_CommentReply"); |
2491
|
|
|
} |
2492
|
|
|
|
2493
|
|
|
/** |
2494
|
|
|
* Updates an existing reply. (replies.update) |
2495
|
|
|
* |
2496
|
|
|
* @param string $fileId The ID of the file. |
2497
|
|
|
* @param string $commentId The ID of the comment. |
2498
|
|
|
* @param string $replyId The ID of the reply. |
2499
|
|
|
* @param Google_CommentReply $postBody |
2500
|
|
|
* @param array $optParams Optional parameters. |
2501
|
|
|
* @return Google_Service_Drive_CommentReply |
2502
|
|
|
*/ |
2503
|
|
|
public function update($fileId, $commentId, $replyId, Google_Service_Drive_CommentReply $postBody, $optParams = array()) |
2504
|
|
|
{ |
2505
|
|
|
$params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody); |
2506
|
|
|
$params = array_merge($params, $optParams); |
2507
|
|
|
return $this->call('update', array($params), "Google_Service_Drive_CommentReply"); |
2508
|
|
|
} |
2509
|
|
|
} |
2510
|
|
|
|
2511
|
|
|
/** |
2512
|
|
|
* The "revisions" collection of methods. |
2513
|
|
|
* Typical usage is: |
2514
|
|
|
* <code> |
2515
|
|
|
* $driveService = new Google_Service_Drive(...); |
2516
|
|
|
* $revisions = $driveService->revisions; |
2517
|
|
|
* </code> |
2518
|
|
|
*/ |
2519
|
|
|
class Google_Service_Drive_Revisions_Resource extends Google_Service_Resource |
2520
|
|
|
{ |
2521
|
|
|
|
2522
|
|
|
/** |
2523
|
|
|
* Removes a revision. (revisions.delete) |
2524
|
|
|
* |
2525
|
|
|
* @param string $fileId The ID of the file. |
2526
|
|
|
* @param string $revisionId The ID of the revision. |
2527
|
|
|
* @param array $optParams Optional parameters. |
2528
|
|
|
*/ |
2529
|
|
|
public function delete($fileId, $revisionId, $optParams = array()) |
2530
|
|
|
{ |
2531
|
|
|
$params = array('fileId' => $fileId, 'revisionId' => $revisionId); |
2532
|
|
|
$params = array_merge($params, $optParams); |
2533
|
|
|
return $this->call('delete', array($params)); |
2534
|
|
|
} |
2535
|
|
|
|
2536
|
|
|
/** |
2537
|
|
|
* Gets a specific revision. (revisions.get) |
2538
|
|
|
* |
2539
|
|
|
* @param string $fileId The ID of the file. |
2540
|
|
|
* @param string $revisionId The ID of the revision. |
2541
|
|
|
* @param array $optParams Optional parameters. |
2542
|
|
|
* @return Google_Service_Drive_Revision |
2543
|
|
|
*/ |
2544
|
|
|
public function get($fileId, $revisionId, $optParams = array()) |
2545
|
|
|
{ |
2546
|
|
|
$params = array('fileId' => $fileId, 'revisionId' => $revisionId); |
2547
|
|
|
$params = array_merge($params, $optParams); |
2548
|
|
|
return $this->call('get', array($params), "Google_Service_Drive_Revision"); |
2549
|
|
|
} |
2550
|
|
|
|
2551
|
|
|
/** |
2552
|
|
|
* Lists a file's revisions. (revisions.listRevisions) |
2553
|
|
|
* |
2554
|
|
|
* @param string $fileId The ID of the file. |
2555
|
|
|
* @param array $optParams Optional parameters. |
2556
|
|
|
* @return Google_Service_Drive_RevisionList |
2557
|
|
|
*/ |
2558
|
|
|
public function listRevisions($fileId, $optParams = array()) |
2559
|
|
|
{ |
2560
|
|
|
$params = array('fileId' => $fileId); |
2561
|
|
|
$params = array_merge($params, $optParams); |
2562
|
|
|
return $this->call('list', array($params), "Google_Service_Drive_RevisionList"); |
2563
|
|
|
} |
2564
|
|
|
|
2565
|
|
|
/** |
2566
|
|
|
* Updates a revision. This method supports patch semantics. (revisions.patch) |
2567
|
|
|
* |
2568
|
|
|
* @param string $fileId The ID for the file. |
2569
|
|
|
* @param string $revisionId The ID for the revision. |
2570
|
|
|
* @param Google_Revision $postBody |
2571
|
|
|
* @param array $optParams Optional parameters. |
2572
|
|
|
* @return Google_Service_Drive_Revision |
2573
|
|
|
*/ |
2574
|
|
|
public function patch($fileId, $revisionId, Google_Service_Drive_Revision $postBody, $optParams = array()) |
2575
|
|
|
{ |
2576
|
|
|
$params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody); |
2577
|
|
|
$params = array_merge($params, $optParams); |
2578
|
|
|
return $this->call('patch', array($params), "Google_Service_Drive_Revision"); |
2579
|
|
|
} |
2580
|
|
|
|
2581
|
|
|
/** |
2582
|
|
|
* Updates a revision. (revisions.update) |
2583
|
|
|
* |
2584
|
|
|
* @param string $fileId The ID for the file. |
2585
|
|
|
* @param string $revisionId The ID for the revision. |
2586
|
|
|
* @param Google_Revision $postBody |
2587
|
|
|
* @param array $optParams Optional parameters. |
2588
|
|
|
* @return Google_Service_Drive_Revision |
2589
|
|
|
*/ |
2590
|
|
|
public function update($fileId, $revisionId, Google_Service_Drive_Revision $postBody, $optParams = array()) |
2591
|
|
|
{ |
2592
|
|
|
$params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody); |
2593
|
|
|
$params = array_merge($params, $optParams); |
2594
|
|
|
return $this->call('update', array($params), "Google_Service_Drive_Revision"); |
2595
|
|
|
} |
2596
|
|
|
} |
2597
|
|
|
|
2598
|
|
|
|
2599
|
|
|
|
2600
|
|
|
|
2601
|
|
|
class Google_Service_Drive_About extends Google_Collection |
2602
|
|
|
{ |
2603
|
|
|
protected $collection_key = 'quotaBytesByService'; |
2604
|
|
|
protected $internal_gapi_mappings = array( |
2605
|
|
|
); |
2606
|
|
|
protected $additionalRoleInfoType = 'Google_Service_Drive_AboutAdditionalRoleInfo'; |
2607
|
|
|
protected $additionalRoleInfoDataType = 'array'; |
2608
|
|
|
public $domainSharingPolicy; |
2609
|
|
|
public $etag; |
2610
|
|
|
protected $exportFormatsType = 'Google_Service_Drive_AboutExportFormats'; |
2611
|
|
|
protected $exportFormatsDataType = 'array'; |
2612
|
|
|
protected $featuresType = 'Google_Service_Drive_AboutFeatures'; |
2613
|
|
|
protected $featuresDataType = 'array'; |
2614
|
|
|
public $folderColorPalette; |
2615
|
|
|
protected $importFormatsType = 'Google_Service_Drive_AboutImportFormats'; |
2616
|
|
|
protected $importFormatsDataType = 'array'; |
2617
|
|
|
public $isCurrentAppInstalled; |
2618
|
|
|
public $kind; |
2619
|
|
|
public $languageCode; |
2620
|
|
|
public $largestChangeId; |
2621
|
|
|
protected $maxUploadSizesType = 'Google_Service_Drive_AboutMaxUploadSizes'; |
2622
|
|
|
protected $maxUploadSizesDataType = 'array'; |
2623
|
|
|
public $name; |
2624
|
|
|
public $permissionId; |
2625
|
|
|
protected $quotaBytesByServiceType = 'Google_Service_Drive_AboutQuotaBytesByService'; |
2626
|
|
|
protected $quotaBytesByServiceDataType = 'array'; |
2627
|
|
|
public $quotaBytesTotal; |
2628
|
|
|
public $quotaBytesUsed; |
2629
|
|
|
public $quotaBytesUsedAggregate; |
2630
|
|
|
public $quotaBytesUsedInTrash; |
2631
|
|
|
public $quotaType; |
2632
|
|
|
public $remainingChangeIds; |
2633
|
|
|
public $rootFolderId; |
2634
|
|
|
public $selfLink; |
2635
|
|
|
protected $userType = 'Google_Service_Drive_User'; |
2636
|
|
|
protected $userDataType = ''; |
2637
|
|
|
|
2638
|
|
|
|
2639
|
|
|
public function setAdditionalRoleInfo($additionalRoleInfo) |
2640
|
|
|
{ |
2641
|
|
|
$this->additionalRoleInfo = $additionalRoleInfo; |
2642
|
|
|
} |
2643
|
|
|
public function getAdditionalRoleInfo() |
2644
|
|
|
{ |
2645
|
|
|
return $this->additionalRoleInfo; |
2646
|
|
|
} |
2647
|
|
|
public function setDomainSharingPolicy($domainSharingPolicy) |
2648
|
|
|
{ |
2649
|
|
|
$this->domainSharingPolicy = $domainSharingPolicy; |
2650
|
|
|
} |
2651
|
|
|
public function getDomainSharingPolicy() |
2652
|
|
|
{ |
2653
|
|
|
return $this->domainSharingPolicy; |
2654
|
|
|
} |
2655
|
|
|
public function setEtag($etag) |
2656
|
|
|
{ |
2657
|
|
|
$this->etag = $etag; |
2658
|
|
|
} |
2659
|
|
|
public function getEtag() |
2660
|
|
|
{ |
2661
|
|
|
return $this->etag; |
2662
|
|
|
} |
2663
|
|
|
public function setExportFormats($exportFormats) |
2664
|
|
|
{ |
2665
|
|
|
$this->exportFormats = $exportFormats; |
2666
|
|
|
} |
2667
|
|
|
public function getExportFormats() |
2668
|
|
|
{ |
2669
|
|
|
return $this->exportFormats; |
2670
|
|
|
} |
2671
|
|
|
public function setFeatures($features) |
2672
|
|
|
{ |
2673
|
|
|
$this->features = $features; |
2674
|
|
|
} |
2675
|
|
|
public function getFeatures() |
2676
|
|
|
{ |
2677
|
|
|
return $this->features; |
2678
|
|
|
} |
2679
|
|
|
public function setFolderColorPalette($folderColorPalette) |
2680
|
|
|
{ |
2681
|
|
|
$this->folderColorPalette = $folderColorPalette; |
2682
|
|
|
} |
2683
|
|
|
public function getFolderColorPalette() |
2684
|
|
|
{ |
2685
|
|
|
return $this->folderColorPalette; |
2686
|
|
|
} |
2687
|
|
|
public function setImportFormats($importFormats) |
2688
|
|
|
{ |
2689
|
|
|
$this->importFormats = $importFormats; |
2690
|
|
|
} |
2691
|
|
|
public function getImportFormats() |
2692
|
|
|
{ |
2693
|
|
|
return $this->importFormats; |
2694
|
|
|
} |
2695
|
|
|
public function setIsCurrentAppInstalled($isCurrentAppInstalled) |
2696
|
|
|
{ |
2697
|
|
|
$this->isCurrentAppInstalled = $isCurrentAppInstalled; |
2698
|
|
|
} |
2699
|
|
|
public function getIsCurrentAppInstalled() |
2700
|
|
|
{ |
2701
|
|
|
return $this->isCurrentAppInstalled; |
2702
|
|
|
} |
2703
|
|
|
public function setKind($kind) |
2704
|
|
|
{ |
2705
|
|
|
$this->kind = $kind; |
2706
|
|
|
} |
2707
|
|
|
public function getKind() |
2708
|
|
|
{ |
2709
|
|
|
return $this->kind; |
2710
|
|
|
} |
2711
|
|
|
public function setLanguageCode($languageCode) |
2712
|
|
|
{ |
2713
|
|
|
$this->languageCode = $languageCode; |
2714
|
|
|
} |
2715
|
|
|
public function getLanguageCode() |
2716
|
|
|
{ |
2717
|
|
|
return $this->languageCode; |
2718
|
|
|
} |
2719
|
|
|
public function setLargestChangeId($largestChangeId) |
2720
|
|
|
{ |
2721
|
|
|
$this->largestChangeId = $largestChangeId; |
2722
|
|
|
} |
2723
|
|
|
public function getLargestChangeId() |
2724
|
|
|
{ |
2725
|
|
|
return $this->largestChangeId; |
2726
|
|
|
} |
2727
|
|
|
public function setMaxUploadSizes($maxUploadSizes) |
2728
|
|
|
{ |
2729
|
|
|
$this->maxUploadSizes = $maxUploadSizes; |
2730
|
|
|
} |
2731
|
|
|
public function getMaxUploadSizes() |
2732
|
|
|
{ |
2733
|
|
|
return $this->maxUploadSizes; |
2734
|
|
|
} |
2735
|
|
|
public function setName($name) |
2736
|
|
|
{ |
2737
|
|
|
$this->name = $name; |
2738
|
|
|
} |
2739
|
|
|
public function getName() |
2740
|
|
|
{ |
2741
|
|
|
return $this->name; |
2742
|
|
|
} |
2743
|
|
|
public function setPermissionId($permissionId) |
2744
|
|
|
{ |
2745
|
|
|
$this->permissionId = $permissionId; |
2746
|
|
|
} |
2747
|
|
|
public function getPermissionId() |
2748
|
|
|
{ |
2749
|
|
|
return $this->permissionId; |
2750
|
|
|
} |
2751
|
|
|
public function setQuotaBytesByService($quotaBytesByService) |
2752
|
|
|
{ |
2753
|
|
|
$this->quotaBytesByService = $quotaBytesByService; |
2754
|
|
|
} |
2755
|
|
|
public function getQuotaBytesByService() |
2756
|
|
|
{ |
2757
|
|
|
return $this->quotaBytesByService; |
2758
|
|
|
} |
2759
|
|
|
public function setQuotaBytesTotal($quotaBytesTotal) |
2760
|
|
|
{ |
2761
|
|
|
$this->quotaBytesTotal = $quotaBytesTotal; |
2762
|
|
|
} |
2763
|
|
|
public function getQuotaBytesTotal() |
2764
|
|
|
{ |
2765
|
|
|
return $this->quotaBytesTotal; |
2766
|
|
|
} |
2767
|
|
|
public function setQuotaBytesUsed($quotaBytesUsed) |
2768
|
|
|
{ |
2769
|
|
|
$this->quotaBytesUsed = $quotaBytesUsed; |
2770
|
|
|
} |
2771
|
|
|
public function getQuotaBytesUsed() |
2772
|
|
|
{ |
2773
|
|
|
return $this->quotaBytesUsed; |
2774
|
|
|
} |
2775
|
|
|
public function setQuotaBytesUsedAggregate($quotaBytesUsedAggregate) |
2776
|
|
|
{ |
2777
|
|
|
$this->quotaBytesUsedAggregate = $quotaBytesUsedAggregate; |
2778
|
|
|
} |
2779
|
|
|
public function getQuotaBytesUsedAggregate() |
2780
|
|
|
{ |
2781
|
|
|
return $this->quotaBytesUsedAggregate; |
2782
|
|
|
} |
2783
|
|
|
public function setQuotaBytesUsedInTrash($quotaBytesUsedInTrash) |
2784
|
|
|
{ |
2785
|
|
|
$this->quotaBytesUsedInTrash = $quotaBytesUsedInTrash; |
2786
|
|
|
} |
2787
|
|
|
public function getQuotaBytesUsedInTrash() |
2788
|
|
|
{ |
2789
|
|
|
return $this->quotaBytesUsedInTrash; |
2790
|
|
|
} |
2791
|
|
|
public function setQuotaType($quotaType) |
2792
|
|
|
{ |
2793
|
|
|
$this->quotaType = $quotaType; |
2794
|
|
|
} |
2795
|
|
|
public function getQuotaType() |
2796
|
|
|
{ |
2797
|
|
|
return $this->quotaType; |
2798
|
|
|
} |
2799
|
|
|
public function setRemainingChangeIds($remainingChangeIds) |
2800
|
|
|
{ |
2801
|
|
|
$this->remainingChangeIds = $remainingChangeIds; |
2802
|
|
|
} |
2803
|
|
|
public function getRemainingChangeIds() |
2804
|
|
|
{ |
2805
|
|
|
return $this->remainingChangeIds; |
2806
|
|
|
} |
2807
|
|
|
public function setRootFolderId($rootFolderId) |
2808
|
|
|
{ |
2809
|
|
|
$this->rootFolderId = $rootFolderId; |
2810
|
|
|
} |
2811
|
|
|
public function getRootFolderId() |
2812
|
|
|
{ |
2813
|
|
|
return $this->rootFolderId; |
2814
|
|
|
} |
2815
|
|
|
public function setSelfLink($selfLink) |
2816
|
|
|
{ |
2817
|
|
|
$this->selfLink = $selfLink; |
2818
|
|
|
} |
2819
|
|
|
public function getSelfLink() |
2820
|
|
|
{ |
2821
|
|
|
return $this->selfLink; |
2822
|
|
|
} |
2823
|
|
|
public function setUser(Google_Service_Drive_User $user) |
2824
|
|
|
{ |
2825
|
|
|
$this->user = $user; |
|
|
|
|
2826
|
|
|
} |
2827
|
|
|
public function getUser() |
2828
|
|
|
{ |
2829
|
|
|
return $this->user; |
2830
|
|
|
} |
2831
|
|
|
} |
2832
|
|
|
|
2833
|
|
|
class Google_Service_Drive_AboutAdditionalRoleInfo extends Google_Collection |
2834
|
|
|
{ |
2835
|
|
|
protected $collection_key = 'roleSets'; |
2836
|
|
|
protected $internal_gapi_mappings = array( |
2837
|
|
|
); |
2838
|
|
|
protected $roleSetsType = 'Google_Service_Drive_AboutAdditionalRoleInfoRoleSets'; |
2839
|
|
|
protected $roleSetsDataType = 'array'; |
2840
|
|
|
public $type; |
2841
|
|
|
|
2842
|
|
|
|
2843
|
|
|
public function setRoleSets($roleSets) |
2844
|
|
|
{ |
2845
|
|
|
$this->roleSets = $roleSets; |
2846
|
|
|
} |
2847
|
|
|
public function getRoleSets() |
2848
|
|
|
{ |
2849
|
|
|
return $this->roleSets; |
2850
|
|
|
} |
2851
|
|
|
public function setType($type) |
2852
|
|
|
{ |
2853
|
|
|
$this->type = $type; |
2854
|
|
|
} |
2855
|
|
|
public function getType() |
2856
|
|
|
{ |
2857
|
|
|
return $this->type; |
2858
|
|
|
} |
2859
|
|
|
} |
2860
|
|
|
|
2861
|
|
|
class Google_Service_Drive_AboutAdditionalRoleInfoRoleSets extends Google_Collection |
2862
|
|
|
{ |
2863
|
|
|
protected $collection_key = 'additionalRoles'; |
2864
|
|
|
protected $internal_gapi_mappings = array( |
2865
|
|
|
); |
2866
|
|
|
public $additionalRoles; |
2867
|
|
|
public $primaryRole; |
2868
|
|
|
|
2869
|
|
|
|
2870
|
|
|
public function setAdditionalRoles($additionalRoles) |
2871
|
|
|
{ |
2872
|
|
|
$this->additionalRoles = $additionalRoles; |
2873
|
|
|
} |
2874
|
|
|
public function getAdditionalRoles() |
2875
|
|
|
{ |
2876
|
|
|
return $this->additionalRoles; |
2877
|
|
|
} |
2878
|
|
|
public function setPrimaryRole($primaryRole) |
2879
|
|
|
{ |
2880
|
|
|
$this->primaryRole = $primaryRole; |
2881
|
|
|
} |
2882
|
|
|
public function getPrimaryRole() |
2883
|
|
|
{ |
2884
|
|
|
return $this->primaryRole; |
2885
|
|
|
} |
2886
|
|
|
} |
2887
|
|
|
|
2888
|
|
View Code Duplication |
class Google_Service_Drive_AboutExportFormats extends Google_Collection |
|
|
|
|
2889
|
|
|
{ |
2890
|
|
|
protected $collection_key = 'targets'; |
2891
|
|
|
protected $internal_gapi_mappings = array( |
2892
|
|
|
); |
2893
|
|
|
public $source; |
2894
|
|
|
public $targets; |
2895
|
|
|
|
2896
|
|
|
|
2897
|
|
|
public function setSource($source) |
2898
|
|
|
{ |
2899
|
|
|
$this->source = $source; |
2900
|
|
|
} |
2901
|
|
|
public function getSource() |
2902
|
|
|
{ |
2903
|
|
|
return $this->source; |
2904
|
|
|
} |
2905
|
|
|
public function setTargets($targets) |
2906
|
|
|
{ |
2907
|
|
|
$this->targets = $targets; |
2908
|
|
|
} |
2909
|
|
|
public function getTargets() |
2910
|
|
|
{ |
2911
|
|
|
return $this->targets; |
2912
|
|
|
} |
2913
|
|
|
} |
2914
|
|
|
|
2915
|
|
|
class Google_Service_Drive_AboutFeatures extends Google_Model |
2916
|
|
|
{ |
2917
|
|
|
protected $internal_gapi_mappings = array( |
2918
|
|
|
); |
2919
|
|
|
public $featureName; |
2920
|
|
|
public $featureRate; |
2921
|
|
|
|
2922
|
|
|
|
2923
|
|
|
public function setFeatureName($featureName) |
2924
|
|
|
{ |
2925
|
|
|
$this->featureName = $featureName; |
2926
|
|
|
} |
2927
|
|
|
public function getFeatureName() |
2928
|
|
|
{ |
2929
|
|
|
return $this->featureName; |
2930
|
|
|
} |
2931
|
|
|
public function setFeatureRate($featureRate) |
2932
|
|
|
{ |
2933
|
|
|
$this->featureRate = $featureRate; |
2934
|
|
|
} |
2935
|
|
|
public function getFeatureRate() |
2936
|
|
|
{ |
2937
|
|
|
return $this->featureRate; |
2938
|
|
|
} |
2939
|
|
|
} |
2940
|
|
|
|
2941
|
|
View Code Duplication |
class Google_Service_Drive_AboutImportFormats extends Google_Collection |
|
|
|
|
2942
|
|
|
{ |
2943
|
|
|
protected $collection_key = 'targets'; |
2944
|
|
|
protected $internal_gapi_mappings = array( |
2945
|
|
|
); |
2946
|
|
|
public $source; |
2947
|
|
|
public $targets; |
2948
|
|
|
|
2949
|
|
|
|
2950
|
|
|
public function setSource($source) |
2951
|
|
|
{ |
2952
|
|
|
$this->source = $source; |
2953
|
|
|
} |
2954
|
|
|
public function getSource() |
2955
|
|
|
{ |
2956
|
|
|
return $this->source; |
2957
|
|
|
} |
2958
|
|
|
public function setTargets($targets) |
2959
|
|
|
{ |
2960
|
|
|
$this->targets = $targets; |
2961
|
|
|
} |
2962
|
|
|
public function getTargets() |
2963
|
|
|
{ |
2964
|
|
|
return $this->targets; |
2965
|
|
|
} |
2966
|
|
|
} |
2967
|
|
|
|
2968
|
|
|
class Google_Service_Drive_AboutMaxUploadSizes extends Google_Model |
2969
|
|
|
{ |
2970
|
|
|
protected $internal_gapi_mappings = array( |
2971
|
|
|
); |
2972
|
|
|
public $size; |
2973
|
|
|
public $type; |
2974
|
|
|
|
2975
|
|
|
|
2976
|
|
|
public function setSize($size) |
2977
|
|
|
{ |
2978
|
|
|
$this->size = $size; |
2979
|
|
|
} |
2980
|
|
|
public function getSize() |
2981
|
|
|
{ |
2982
|
|
|
return $this->size; |
2983
|
|
|
} |
2984
|
|
|
public function setType($type) |
2985
|
|
|
{ |
2986
|
|
|
$this->type = $type; |
2987
|
|
|
} |
2988
|
|
|
public function getType() |
2989
|
|
|
{ |
2990
|
|
|
return $this->type; |
2991
|
|
|
} |
2992
|
|
|
} |
2993
|
|
|
|
2994
|
|
|
class Google_Service_Drive_AboutQuotaBytesByService extends Google_Model |
2995
|
|
|
{ |
2996
|
|
|
protected $internal_gapi_mappings = array( |
2997
|
|
|
); |
2998
|
|
|
public $bytesUsed; |
2999
|
|
|
public $serviceName; |
3000
|
|
|
|
3001
|
|
|
|
3002
|
|
|
public function setBytesUsed($bytesUsed) |
3003
|
|
|
{ |
3004
|
|
|
$this->bytesUsed = $bytesUsed; |
3005
|
|
|
} |
3006
|
|
|
public function getBytesUsed() |
3007
|
|
|
{ |
3008
|
|
|
return $this->bytesUsed; |
3009
|
|
|
} |
3010
|
|
|
public function setServiceName($serviceName) |
3011
|
|
|
{ |
3012
|
|
|
$this->serviceName = $serviceName; |
3013
|
|
|
} |
3014
|
|
|
public function getServiceName() |
3015
|
|
|
{ |
3016
|
|
|
return $this->serviceName; |
3017
|
|
|
} |
3018
|
|
|
} |
3019
|
|
|
|
3020
|
|
|
class Google_Service_Drive_App extends Google_Collection |
3021
|
|
|
{ |
3022
|
|
|
protected $collection_key = 'secondaryMimeTypes'; |
3023
|
|
|
protected $internal_gapi_mappings = array( |
3024
|
|
|
); |
3025
|
|
|
public $authorized; |
3026
|
|
|
public $createInFolderTemplate; |
3027
|
|
|
public $createUrl; |
3028
|
|
|
public $hasDriveWideScope; |
3029
|
|
|
protected $iconsType = 'Google_Service_Drive_AppIcons'; |
3030
|
|
|
protected $iconsDataType = 'array'; |
3031
|
|
|
public $id; |
3032
|
|
|
public $installed; |
3033
|
|
|
public $kind; |
3034
|
|
|
public $longDescription; |
3035
|
|
|
public $name; |
3036
|
|
|
public $objectType; |
3037
|
|
|
public $openUrlTemplate; |
3038
|
|
|
public $primaryFileExtensions; |
3039
|
|
|
public $primaryMimeTypes; |
3040
|
|
|
public $productId; |
3041
|
|
|
public $productUrl; |
3042
|
|
|
public $secondaryFileExtensions; |
3043
|
|
|
public $secondaryMimeTypes; |
3044
|
|
|
public $shortDescription; |
3045
|
|
|
public $supportsCreate; |
3046
|
|
|
public $supportsImport; |
3047
|
|
|
public $supportsMultiOpen; |
3048
|
|
|
public $supportsOfflineCreate; |
3049
|
|
|
public $useByDefault; |
3050
|
|
|
|
3051
|
|
|
|
3052
|
|
|
public function setAuthorized($authorized) |
3053
|
|
|
{ |
3054
|
|
|
$this->authorized = $authorized; |
3055
|
|
|
} |
3056
|
|
|
public function getAuthorized() |
3057
|
|
|
{ |
3058
|
|
|
return $this->authorized; |
3059
|
|
|
} |
3060
|
|
|
public function setCreateInFolderTemplate($createInFolderTemplate) |
3061
|
|
|
{ |
3062
|
|
|
$this->createInFolderTemplate = $createInFolderTemplate; |
3063
|
|
|
} |
3064
|
|
|
public function getCreateInFolderTemplate() |
3065
|
|
|
{ |
3066
|
|
|
return $this->createInFolderTemplate; |
3067
|
|
|
} |
3068
|
|
|
public function setCreateUrl($createUrl) |
3069
|
|
|
{ |
3070
|
|
|
$this->createUrl = $createUrl; |
3071
|
|
|
} |
3072
|
|
|
public function getCreateUrl() |
3073
|
|
|
{ |
3074
|
|
|
return $this->createUrl; |
3075
|
|
|
} |
3076
|
|
|
public function setHasDriveWideScope($hasDriveWideScope) |
3077
|
|
|
{ |
3078
|
|
|
$this->hasDriveWideScope = $hasDriveWideScope; |
3079
|
|
|
} |
3080
|
|
|
public function getHasDriveWideScope() |
3081
|
|
|
{ |
3082
|
|
|
return $this->hasDriveWideScope; |
3083
|
|
|
} |
3084
|
|
|
public function setIcons($icons) |
3085
|
|
|
{ |
3086
|
|
|
$this->icons = $icons; |
|
|
|
|
3087
|
|
|
} |
3088
|
|
|
public function getIcons() |
3089
|
|
|
{ |
3090
|
|
|
return $this->icons; |
3091
|
|
|
} |
3092
|
|
|
public function setId($id) |
3093
|
|
|
{ |
3094
|
|
|
$this->id = $id; |
3095
|
|
|
} |
3096
|
|
|
public function getId() |
3097
|
|
|
{ |
3098
|
|
|
return $this->id; |
3099
|
|
|
} |
3100
|
|
|
public function setInstalled($installed) |
3101
|
|
|
{ |
3102
|
|
|
$this->installed = $installed; |
3103
|
|
|
} |
3104
|
|
|
public function getInstalled() |
3105
|
|
|
{ |
3106
|
|
|
return $this->installed; |
3107
|
|
|
} |
3108
|
|
|
public function setKind($kind) |
3109
|
|
|
{ |
3110
|
|
|
$this->kind = $kind; |
3111
|
|
|
} |
3112
|
|
|
public function getKind() |
3113
|
|
|
{ |
3114
|
|
|
return $this->kind; |
3115
|
|
|
} |
3116
|
|
|
public function setLongDescription($longDescription) |
3117
|
|
|
{ |
3118
|
|
|
$this->longDescription = $longDescription; |
3119
|
|
|
} |
3120
|
|
|
public function getLongDescription() |
3121
|
|
|
{ |
3122
|
|
|
return $this->longDescription; |
3123
|
|
|
} |
3124
|
|
|
public function setName($name) |
3125
|
|
|
{ |
3126
|
|
|
$this->name = $name; |
3127
|
|
|
} |
3128
|
|
|
public function getName() |
3129
|
|
|
{ |
3130
|
|
|
return $this->name; |
3131
|
|
|
} |
3132
|
|
|
public function setObjectType($objectType) |
3133
|
|
|
{ |
3134
|
|
|
$this->objectType = $objectType; |
3135
|
|
|
} |
3136
|
|
|
public function getObjectType() |
3137
|
|
|
{ |
3138
|
|
|
return $this->objectType; |
3139
|
|
|
} |
3140
|
|
|
public function setOpenUrlTemplate($openUrlTemplate) |
3141
|
|
|
{ |
3142
|
|
|
$this->openUrlTemplate = $openUrlTemplate; |
3143
|
|
|
} |
3144
|
|
|
public function getOpenUrlTemplate() |
3145
|
|
|
{ |
3146
|
|
|
return $this->openUrlTemplate; |
3147
|
|
|
} |
3148
|
|
|
public function setPrimaryFileExtensions($primaryFileExtensions) |
3149
|
|
|
{ |
3150
|
|
|
$this->primaryFileExtensions = $primaryFileExtensions; |
3151
|
|
|
} |
3152
|
|
|
public function getPrimaryFileExtensions() |
3153
|
|
|
{ |
3154
|
|
|
return $this->primaryFileExtensions; |
3155
|
|
|
} |
3156
|
|
|
public function setPrimaryMimeTypes($primaryMimeTypes) |
3157
|
|
|
{ |
3158
|
|
|
$this->primaryMimeTypes = $primaryMimeTypes; |
3159
|
|
|
} |
3160
|
|
|
public function getPrimaryMimeTypes() |
3161
|
|
|
{ |
3162
|
|
|
return $this->primaryMimeTypes; |
3163
|
|
|
} |
3164
|
|
|
public function setProductId($productId) |
3165
|
|
|
{ |
3166
|
|
|
$this->productId = $productId; |
3167
|
|
|
} |
3168
|
|
|
public function getProductId() |
3169
|
|
|
{ |
3170
|
|
|
return $this->productId; |
3171
|
|
|
} |
3172
|
|
|
public function setProductUrl($productUrl) |
3173
|
|
|
{ |
3174
|
|
|
$this->productUrl = $productUrl; |
3175
|
|
|
} |
3176
|
|
|
public function getProductUrl() |
3177
|
|
|
{ |
3178
|
|
|
return $this->productUrl; |
3179
|
|
|
} |
3180
|
|
|
public function setSecondaryFileExtensions($secondaryFileExtensions) |
3181
|
|
|
{ |
3182
|
|
|
$this->secondaryFileExtensions = $secondaryFileExtensions; |
3183
|
|
|
} |
3184
|
|
|
public function getSecondaryFileExtensions() |
3185
|
|
|
{ |
3186
|
|
|
return $this->secondaryFileExtensions; |
3187
|
|
|
} |
3188
|
|
|
public function setSecondaryMimeTypes($secondaryMimeTypes) |
3189
|
|
|
{ |
3190
|
|
|
$this->secondaryMimeTypes = $secondaryMimeTypes; |
3191
|
|
|
} |
3192
|
|
|
public function getSecondaryMimeTypes() |
3193
|
|
|
{ |
3194
|
|
|
return $this->secondaryMimeTypes; |
3195
|
|
|
} |
3196
|
|
|
public function setShortDescription($shortDescription) |
3197
|
|
|
{ |
3198
|
|
|
$this->shortDescription = $shortDescription; |
3199
|
|
|
} |
3200
|
|
|
public function getShortDescription() |
3201
|
|
|
{ |
3202
|
|
|
return $this->shortDescription; |
3203
|
|
|
} |
3204
|
|
|
public function setSupportsCreate($supportsCreate) |
3205
|
|
|
{ |
3206
|
|
|
$this->supportsCreate = $supportsCreate; |
3207
|
|
|
} |
3208
|
|
|
public function getSupportsCreate() |
3209
|
|
|
{ |
3210
|
|
|
return $this->supportsCreate; |
3211
|
|
|
} |
3212
|
|
|
public function setSupportsImport($supportsImport) |
3213
|
|
|
{ |
3214
|
|
|
$this->supportsImport = $supportsImport; |
3215
|
|
|
} |
3216
|
|
|
public function getSupportsImport() |
3217
|
|
|
{ |
3218
|
|
|
return $this->supportsImport; |
3219
|
|
|
} |
3220
|
|
|
public function setSupportsMultiOpen($supportsMultiOpen) |
3221
|
|
|
{ |
3222
|
|
|
$this->supportsMultiOpen = $supportsMultiOpen; |
3223
|
|
|
} |
3224
|
|
|
public function getSupportsMultiOpen() |
3225
|
|
|
{ |
3226
|
|
|
return $this->supportsMultiOpen; |
3227
|
|
|
} |
3228
|
|
|
public function setSupportsOfflineCreate($supportsOfflineCreate) |
3229
|
|
|
{ |
3230
|
|
|
$this->supportsOfflineCreate = $supportsOfflineCreate; |
3231
|
|
|
} |
3232
|
|
|
public function getSupportsOfflineCreate() |
3233
|
|
|
{ |
3234
|
|
|
return $this->supportsOfflineCreate; |
3235
|
|
|
} |
3236
|
|
|
public function setUseByDefault($useByDefault) |
3237
|
|
|
{ |
3238
|
|
|
$this->useByDefault = $useByDefault; |
3239
|
|
|
} |
3240
|
|
|
public function getUseByDefault() |
3241
|
|
|
{ |
3242
|
|
|
return $this->useByDefault; |
3243
|
|
|
} |
3244
|
|
|
} |
3245
|
|
|
|
3246
|
|
|
class Google_Service_Drive_AppIcons extends Google_Model |
3247
|
|
|
{ |
3248
|
|
|
protected $internal_gapi_mappings = array( |
3249
|
|
|
); |
3250
|
|
|
public $category; |
3251
|
|
|
public $iconUrl; |
3252
|
|
|
public $size; |
3253
|
|
|
|
3254
|
|
|
|
3255
|
|
|
public function setCategory($category) |
3256
|
|
|
{ |
3257
|
|
|
$this->category = $category; |
3258
|
|
|
} |
3259
|
|
|
public function getCategory() |
3260
|
|
|
{ |
3261
|
|
|
return $this->category; |
3262
|
|
|
} |
3263
|
|
|
public function setIconUrl($iconUrl) |
3264
|
|
|
{ |
3265
|
|
|
$this->iconUrl = $iconUrl; |
3266
|
|
|
} |
3267
|
|
|
public function getIconUrl() |
3268
|
|
|
{ |
3269
|
|
|
return $this->iconUrl; |
3270
|
|
|
} |
3271
|
|
|
public function setSize($size) |
3272
|
|
|
{ |
3273
|
|
|
$this->size = $size; |
3274
|
|
|
} |
3275
|
|
|
public function getSize() |
3276
|
|
|
{ |
3277
|
|
|
return $this->size; |
3278
|
|
|
} |
3279
|
|
|
} |
3280
|
|
|
|
3281
|
|
View Code Duplication |
class Google_Service_Drive_AppList extends Google_Collection |
|
|
|
|
3282
|
|
|
{ |
3283
|
|
|
protected $collection_key = 'items'; |
3284
|
|
|
protected $internal_gapi_mappings = array( |
3285
|
|
|
); |
3286
|
|
|
public $defaultAppIds; |
3287
|
|
|
public $etag; |
3288
|
|
|
protected $itemsType = 'Google_Service_Drive_App'; |
3289
|
|
|
protected $itemsDataType = 'array'; |
3290
|
|
|
public $kind; |
3291
|
|
|
public $selfLink; |
3292
|
|
|
|
3293
|
|
|
|
3294
|
|
|
public function setDefaultAppIds($defaultAppIds) |
3295
|
|
|
{ |
3296
|
|
|
$this->defaultAppIds = $defaultAppIds; |
3297
|
|
|
} |
3298
|
|
|
public function getDefaultAppIds() |
3299
|
|
|
{ |
3300
|
|
|
return $this->defaultAppIds; |
3301
|
|
|
} |
3302
|
|
|
public function setEtag($etag) |
3303
|
|
|
{ |
3304
|
|
|
$this->etag = $etag; |
3305
|
|
|
} |
3306
|
|
|
public function getEtag() |
3307
|
|
|
{ |
3308
|
|
|
return $this->etag; |
3309
|
|
|
} |
3310
|
|
|
public function setItems($items) |
3311
|
|
|
{ |
3312
|
|
|
$this->items = $items; |
|
|
|
|
3313
|
|
|
} |
3314
|
|
|
public function getItems() |
3315
|
|
|
{ |
3316
|
|
|
return $this->items; |
3317
|
|
|
} |
3318
|
|
|
public function setKind($kind) |
3319
|
|
|
{ |
3320
|
|
|
$this->kind = $kind; |
3321
|
|
|
} |
3322
|
|
|
public function getKind() |
3323
|
|
|
{ |
3324
|
|
|
return $this->kind; |
3325
|
|
|
} |
3326
|
|
|
public function setSelfLink($selfLink) |
3327
|
|
|
{ |
3328
|
|
|
$this->selfLink = $selfLink; |
3329
|
|
|
} |
3330
|
|
|
public function getSelfLink() |
3331
|
|
|
{ |
3332
|
|
|
return $this->selfLink; |
3333
|
|
|
} |
3334
|
|
|
} |
3335
|
|
|
|
3336
|
|
|
class Google_Service_Drive_Change extends Google_Model |
3337
|
|
|
{ |
3338
|
|
|
protected $internal_gapi_mappings = array( |
3339
|
|
|
); |
3340
|
|
|
public $deleted; |
3341
|
|
|
protected $fileType = 'Google_Service_Drive_DriveFile'; |
3342
|
|
|
protected $fileDataType = ''; |
3343
|
|
|
public $fileId; |
3344
|
|
|
public $id; |
3345
|
|
|
public $kind; |
3346
|
|
|
public $modificationDate; |
3347
|
|
|
public $selfLink; |
3348
|
|
|
|
3349
|
|
|
|
3350
|
|
|
public function setDeleted($deleted) |
3351
|
|
|
{ |
3352
|
|
|
$this->deleted = $deleted; |
3353
|
|
|
} |
3354
|
|
|
public function getDeleted() |
3355
|
|
|
{ |
3356
|
|
|
return $this->deleted; |
3357
|
|
|
} |
3358
|
|
|
public function setFile(Google_Service_Drive_DriveFile $file) |
3359
|
|
|
{ |
3360
|
|
|
$this->file = $file; |
|
|
|
|
3361
|
|
|
} |
3362
|
|
|
public function getFile() |
3363
|
|
|
{ |
3364
|
|
|
return $this->file; |
3365
|
|
|
} |
3366
|
|
|
public function setFileId($fileId) |
3367
|
|
|
{ |
3368
|
|
|
$this->fileId = $fileId; |
3369
|
|
|
} |
3370
|
|
|
public function getFileId() |
3371
|
|
|
{ |
3372
|
|
|
return $this->fileId; |
3373
|
|
|
} |
3374
|
|
|
public function setId($id) |
3375
|
|
|
{ |
3376
|
|
|
$this->id = $id; |
3377
|
|
|
} |
3378
|
|
|
public function getId() |
3379
|
|
|
{ |
3380
|
|
|
return $this->id; |
3381
|
|
|
} |
3382
|
|
|
public function setKind($kind) |
3383
|
|
|
{ |
3384
|
|
|
$this->kind = $kind; |
3385
|
|
|
} |
3386
|
|
|
public function getKind() |
3387
|
|
|
{ |
3388
|
|
|
return $this->kind; |
3389
|
|
|
} |
3390
|
|
|
public function setModificationDate($modificationDate) |
3391
|
|
|
{ |
3392
|
|
|
$this->modificationDate = $modificationDate; |
3393
|
|
|
} |
3394
|
|
|
public function getModificationDate() |
3395
|
|
|
{ |
3396
|
|
|
return $this->modificationDate; |
3397
|
|
|
} |
3398
|
|
|
public function setSelfLink($selfLink) |
3399
|
|
|
{ |
3400
|
|
|
$this->selfLink = $selfLink; |
3401
|
|
|
} |
3402
|
|
|
public function getSelfLink() |
3403
|
|
|
{ |
3404
|
|
|
return $this->selfLink; |
3405
|
|
|
} |
3406
|
|
|
} |
3407
|
|
|
|
3408
|
|
View Code Duplication |
class Google_Service_Drive_ChangeList extends Google_Collection |
|
|
|
|
3409
|
|
|
{ |
3410
|
|
|
protected $collection_key = 'items'; |
3411
|
|
|
protected $internal_gapi_mappings = array( |
3412
|
|
|
); |
3413
|
|
|
public $etag; |
3414
|
|
|
protected $itemsType = 'Google_Service_Drive_Change'; |
3415
|
|
|
protected $itemsDataType = 'array'; |
3416
|
|
|
public $kind; |
3417
|
|
|
public $largestChangeId; |
3418
|
|
|
public $nextLink; |
3419
|
|
|
public $nextPageToken; |
3420
|
|
|
public $selfLink; |
3421
|
|
|
|
3422
|
|
|
|
3423
|
|
|
public function setEtag($etag) |
3424
|
|
|
{ |
3425
|
|
|
$this->etag = $etag; |
3426
|
|
|
} |
3427
|
|
|
public function getEtag() |
3428
|
|
|
{ |
3429
|
|
|
return $this->etag; |
3430
|
|
|
} |
3431
|
|
|
public function setItems($items) |
3432
|
|
|
{ |
3433
|
|
|
$this->items = $items; |
|
|
|
|
3434
|
|
|
} |
3435
|
|
|
public function getItems() |
3436
|
|
|
{ |
3437
|
|
|
return $this->items; |
3438
|
|
|
} |
3439
|
|
|
public function setKind($kind) |
3440
|
|
|
{ |
3441
|
|
|
$this->kind = $kind; |
3442
|
|
|
} |
3443
|
|
|
public function getKind() |
3444
|
|
|
{ |
3445
|
|
|
return $this->kind; |
3446
|
|
|
} |
3447
|
|
|
public function setLargestChangeId($largestChangeId) |
3448
|
|
|
{ |
3449
|
|
|
$this->largestChangeId = $largestChangeId; |
3450
|
|
|
} |
3451
|
|
|
public function getLargestChangeId() |
3452
|
|
|
{ |
3453
|
|
|
return $this->largestChangeId; |
3454
|
|
|
} |
3455
|
|
|
public function setNextLink($nextLink) |
3456
|
|
|
{ |
3457
|
|
|
$this->nextLink = $nextLink; |
3458
|
|
|
} |
3459
|
|
|
public function getNextLink() |
3460
|
|
|
{ |
3461
|
|
|
return $this->nextLink; |
3462
|
|
|
} |
3463
|
|
|
public function setNextPageToken($nextPageToken) |
3464
|
|
|
{ |
3465
|
|
|
$this->nextPageToken = $nextPageToken; |
3466
|
|
|
} |
3467
|
|
|
public function getNextPageToken() |
3468
|
|
|
{ |
3469
|
|
|
return $this->nextPageToken; |
3470
|
|
|
} |
3471
|
|
|
public function setSelfLink($selfLink) |
3472
|
|
|
{ |
3473
|
|
|
$this->selfLink = $selfLink; |
3474
|
|
|
} |
3475
|
|
|
public function getSelfLink() |
3476
|
|
|
{ |
3477
|
|
|
return $this->selfLink; |
3478
|
|
|
} |
3479
|
|
|
} |
3480
|
|
|
|
3481
|
|
View Code Duplication |
class Google_Service_Drive_Channel extends Google_Model |
|
|
|
|
3482
|
|
|
{ |
3483
|
|
|
protected $internal_gapi_mappings = array( |
3484
|
|
|
); |
3485
|
|
|
public $address; |
3486
|
|
|
public $expiration; |
3487
|
|
|
public $id; |
3488
|
|
|
public $kind; |
3489
|
|
|
public $params; |
3490
|
|
|
public $payload; |
3491
|
|
|
public $resourceId; |
3492
|
|
|
public $resourceUri; |
3493
|
|
|
public $token; |
3494
|
|
|
public $type; |
3495
|
|
|
|
3496
|
|
|
|
3497
|
|
|
public function setAddress($address) |
3498
|
|
|
{ |
3499
|
|
|
$this->address = $address; |
3500
|
|
|
} |
3501
|
|
|
public function getAddress() |
3502
|
|
|
{ |
3503
|
|
|
return $this->address; |
3504
|
|
|
} |
3505
|
|
|
public function setExpiration($expiration) |
3506
|
|
|
{ |
3507
|
|
|
$this->expiration = $expiration; |
3508
|
|
|
} |
3509
|
|
|
public function getExpiration() |
3510
|
|
|
{ |
3511
|
|
|
return $this->expiration; |
3512
|
|
|
} |
3513
|
|
|
public function setId($id) |
3514
|
|
|
{ |
3515
|
|
|
$this->id = $id; |
3516
|
|
|
} |
3517
|
|
|
public function getId() |
3518
|
|
|
{ |
3519
|
|
|
return $this->id; |
3520
|
|
|
} |
3521
|
|
|
public function setKind($kind) |
3522
|
|
|
{ |
3523
|
|
|
$this->kind = $kind; |
3524
|
|
|
} |
3525
|
|
|
public function getKind() |
3526
|
|
|
{ |
3527
|
|
|
return $this->kind; |
3528
|
|
|
} |
3529
|
|
|
public function setParams($params) |
3530
|
|
|
{ |
3531
|
|
|
$this->params = $params; |
3532
|
|
|
} |
3533
|
|
|
public function getParams() |
3534
|
|
|
{ |
3535
|
|
|
return $this->params; |
3536
|
|
|
} |
3537
|
|
|
public function setPayload($payload) |
3538
|
|
|
{ |
3539
|
|
|
$this->payload = $payload; |
3540
|
|
|
} |
3541
|
|
|
public function getPayload() |
3542
|
|
|
{ |
3543
|
|
|
return $this->payload; |
3544
|
|
|
} |
3545
|
|
|
public function setResourceId($resourceId) |
3546
|
|
|
{ |
3547
|
|
|
$this->resourceId = $resourceId; |
3548
|
|
|
} |
3549
|
|
|
public function getResourceId() |
3550
|
|
|
{ |
3551
|
|
|
return $this->resourceId; |
3552
|
|
|
} |
3553
|
|
|
public function setResourceUri($resourceUri) |
3554
|
|
|
{ |
3555
|
|
|
$this->resourceUri = $resourceUri; |
3556
|
|
|
} |
3557
|
|
|
public function getResourceUri() |
3558
|
|
|
{ |
3559
|
|
|
return $this->resourceUri; |
3560
|
|
|
} |
3561
|
|
|
public function setToken($token) |
3562
|
|
|
{ |
3563
|
|
|
$this->token = $token; |
3564
|
|
|
} |
3565
|
|
|
public function getToken() |
3566
|
|
|
{ |
3567
|
|
|
return $this->token; |
3568
|
|
|
} |
3569
|
|
|
public function setType($type) |
3570
|
|
|
{ |
3571
|
|
|
$this->type = $type; |
3572
|
|
|
} |
3573
|
|
|
public function getType() |
3574
|
|
|
{ |
3575
|
|
|
return $this->type; |
3576
|
|
|
} |
3577
|
|
|
} |
3578
|
|
|
|
3579
|
|
|
class Google_Service_Drive_ChannelParams extends Google_Model |
3580
|
|
|
{ |
3581
|
|
|
} |
3582
|
|
|
|
3583
|
|
View Code Duplication |
class Google_Service_Drive_ChildList extends Google_Collection |
|
|
|
|
3584
|
|
|
{ |
3585
|
|
|
protected $collection_key = 'items'; |
3586
|
|
|
protected $internal_gapi_mappings = array( |
3587
|
|
|
); |
3588
|
|
|
public $etag; |
3589
|
|
|
protected $itemsType = 'Google_Service_Drive_ChildReference'; |
3590
|
|
|
protected $itemsDataType = 'array'; |
3591
|
|
|
public $kind; |
3592
|
|
|
public $nextLink; |
3593
|
|
|
public $nextPageToken; |
3594
|
|
|
public $selfLink; |
3595
|
|
|
|
3596
|
|
|
|
3597
|
|
|
public function setEtag($etag) |
3598
|
|
|
{ |
3599
|
|
|
$this->etag = $etag; |
3600
|
|
|
} |
3601
|
|
|
public function getEtag() |
3602
|
|
|
{ |
3603
|
|
|
return $this->etag; |
3604
|
|
|
} |
3605
|
|
|
public function setItems($items) |
3606
|
|
|
{ |
3607
|
|
|
$this->items = $items; |
|
|
|
|
3608
|
|
|
} |
3609
|
|
|
public function getItems() |
3610
|
|
|
{ |
3611
|
|
|
return $this->items; |
3612
|
|
|
} |
3613
|
|
|
public function setKind($kind) |
3614
|
|
|
{ |
3615
|
|
|
$this->kind = $kind; |
3616
|
|
|
} |
3617
|
|
|
public function getKind() |
3618
|
|
|
{ |
3619
|
|
|
return $this->kind; |
3620
|
|
|
} |
3621
|
|
|
public function setNextLink($nextLink) |
3622
|
|
|
{ |
3623
|
|
|
$this->nextLink = $nextLink; |
3624
|
|
|
} |
3625
|
|
|
public function getNextLink() |
3626
|
|
|
{ |
3627
|
|
|
return $this->nextLink; |
3628
|
|
|
} |
3629
|
|
|
public function setNextPageToken($nextPageToken) |
3630
|
|
|
{ |
3631
|
|
|
$this->nextPageToken = $nextPageToken; |
3632
|
|
|
} |
3633
|
|
|
public function getNextPageToken() |
3634
|
|
|
{ |
3635
|
|
|
return $this->nextPageToken; |
3636
|
|
|
} |
3637
|
|
|
public function setSelfLink($selfLink) |
3638
|
|
|
{ |
3639
|
|
|
$this->selfLink = $selfLink; |
3640
|
|
|
} |
3641
|
|
|
public function getSelfLink() |
3642
|
|
|
{ |
3643
|
|
|
return $this->selfLink; |
3644
|
|
|
} |
3645
|
|
|
} |
3646
|
|
|
|
3647
|
|
View Code Duplication |
class Google_Service_Drive_ChildReference extends Google_Model |
|
|
|
|
3648
|
|
|
{ |
3649
|
|
|
protected $internal_gapi_mappings = array( |
3650
|
|
|
); |
3651
|
|
|
public $childLink; |
3652
|
|
|
public $id; |
3653
|
|
|
public $kind; |
3654
|
|
|
public $selfLink; |
3655
|
|
|
|
3656
|
|
|
|
3657
|
|
|
public function setChildLink($childLink) |
3658
|
|
|
{ |
3659
|
|
|
$this->childLink = $childLink; |
3660
|
|
|
} |
3661
|
|
|
public function getChildLink() |
3662
|
|
|
{ |
3663
|
|
|
return $this->childLink; |
3664
|
|
|
} |
3665
|
|
|
public function setId($id) |
3666
|
|
|
{ |
3667
|
|
|
$this->id = $id; |
3668
|
|
|
} |
3669
|
|
|
public function getId() |
3670
|
|
|
{ |
3671
|
|
|
return $this->id; |
3672
|
|
|
} |
3673
|
|
|
public function setKind($kind) |
3674
|
|
|
{ |
3675
|
|
|
$this->kind = $kind; |
3676
|
|
|
} |
3677
|
|
|
public function getKind() |
3678
|
|
|
{ |
3679
|
|
|
return $this->kind; |
3680
|
|
|
} |
3681
|
|
|
public function setSelfLink($selfLink) |
3682
|
|
|
{ |
3683
|
|
|
$this->selfLink = $selfLink; |
3684
|
|
|
} |
3685
|
|
|
public function getSelfLink() |
3686
|
|
|
{ |
3687
|
|
|
return $this->selfLink; |
3688
|
|
|
} |
3689
|
|
|
} |
3690
|
|
|
|
3691
|
|
|
class Google_Service_Drive_Comment extends Google_Collection |
3692
|
|
|
{ |
3693
|
|
|
protected $collection_key = 'replies'; |
3694
|
|
|
protected $internal_gapi_mappings = array( |
3695
|
|
|
); |
3696
|
|
|
public $anchor; |
3697
|
|
|
protected $authorType = 'Google_Service_Drive_User'; |
3698
|
|
|
protected $authorDataType = ''; |
3699
|
|
|
public $commentId; |
3700
|
|
|
public $content; |
3701
|
|
|
protected $contextType = 'Google_Service_Drive_CommentContext'; |
3702
|
|
|
protected $contextDataType = ''; |
3703
|
|
|
public $createdDate; |
3704
|
|
|
public $deleted; |
3705
|
|
|
public $fileId; |
3706
|
|
|
public $fileTitle; |
3707
|
|
|
public $htmlContent; |
3708
|
|
|
public $kind; |
3709
|
|
|
public $modifiedDate; |
3710
|
|
|
protected $repliesType = 'Google_Service_Drive_CommentReply'; |
3711
|
|
|
protected $repliesDataType = 'array'; |
3712
|
|
|
public $selfLink; |
3713
|
|
|
public $status; |
3714
|
|
|
|
3715
|
|
|
|
3716
|
|
|
public function setAnchor($anchor) |
3717
|
|
|
{ |
3718
|
|
|
$this->anchor = $anchor; |
3719
|
|
|
} |
3720
|
|
|
public function getAnchor() |
3721
|
|
|
{ |
3722
|
|
|
return $this->anchor; |
3723
|
|
|
} |
3724
|
|
|
public function setAuthor(Google_Service_Drive_User $author) |
3725
|
|
|
{ |
3726
|
|
|
$this->author = $author; |
3727
|
|
|
} |
3728
|
|
|
public function getAuthor() |
3729
|
|
|
{ |
3730
|
|
|
return $this->author; |
3731
|
|
|
} |
3732
|
|
|
public function setCommentId($commentId) |
3733
|
|
|
{ |
3734
|
|
|
$this->commentId = $commentId; |
3735
|
|
|
} |
3736
|
|
|
public function getCommentId() |
3737
|
|
|
{ |
3738
|
|
|
return $this->commentId; |
3739
|
|
|
} |
3740
|
|
|
public function setContent($content) |
3741
|
|
|
{ |
3742
|
|
|
$this->content = $content; |
3743
|
|
|
} |
3744
|
|
|
public function getContent() |
3745
|
|
|
{ |
3746
|
|
|
return $this->content; |
3747
|
|
|
} |
3748
|
|
|
public function setContext(Google_Service_Drive_CommentContext $context) |
3749
|
|
|
{ |
3750
|
|
|
$this->context = $context; |
3751
|
|
|
} |
3752
|
|
|
public function getContext() |
3753
|
|
|
{ |
3754
|
|
|
return $this->context; |
3755
|
|
|
} |
3756
|
|
|
public function setCreatedDate($createdDate) |
3757
|
|
|
{ |
3758
|
|
|
$this->createdDate = $createdDate; |
3759
|
|
|
} |
3760
|
|
|
public function getCreatedDate() |
3761
|
|
|
{ |
3762
|
|
|
return $this->createdDate; |
3763
|
|
|
} |
3764
|
|
|
public function setDeleted($deleted) |
3765
|
|
|
{ |
3766
|
|
|
$this->deleted = $deleted; |
3767
|
|
|
} |
3768
|
|
|
public function getDeleted() |
3769
|
|
|
{ |
3770
|
|
|
return $this->deleted; |
3771
|
|
|
} |
3772
|
|
|
public function setFileId($fileId) |
3773
|
|
|
{ |
3774
|
|
|
$this->fileId = $fileId; |
3775
|
|
|
} |
3776
|
|
|
public function getFileId() |
3777
|
|
|
{ |
3778
|
|
|
return $this->fileId; |
3779
|
|
|
} |
3780
|
|
|
public function setFileTitle($fileTitle) |
3781
|
|
|
{ |
3782
|
|
|
$this->fileTitle = $fileTitle; |
3783
|
|
|
} |
3784
|
|
|
public function getFileTitle() |
3785
|
|
|
{ |
3786
|
|
|
return $this->fileTitle; |
3787
|
|
|
} |
3788
|
|
|
public function setHtmlContent($htmlContent) |
3789
|
|
|
{ |
3790
|
|
|
$this->htmlContent = $htmlContent; |
3791
|
|
|
} |
3792
|
|
|
public function getHtmlContent() |
3793
|
|
|
{ |
3794
|
|
|
return $this->htmlContent; |
3795
|
|
|
} |
3796
|
|
|
public function setKind($kind) |
3797
|
|
|
{ |
3798
|
|
|
$this->kind = $kind; |
3799
|
|
|
} |
3800
|
|
|
public function getKind() |
3801
|
|
|
{ |
3802
|
|
|
return $this->kind; |
3803
|
|
|
} |
3804
|
|
|
public function setModifiedDate($modifiedDate) |
3805
|
|
|
{ |
3806
|
|
|
$this->modifiedDate = $modifiedDate; |
3807
|
|
|
} |
3808
|
|
|
public function getModifiedDate() |
3809
|
|
|
{ |
3810
|
|
|
return $this->modifiedDate; |
3811
|
|
|
} |
3812
|
|
|
public function setReplies($replies) |
3813
|
|
|
{ |
3814
|
|
|
$this->replies = $replies; |
3815
|
|
|
} |
3816
|
|
|
public function getReplies() |
3817
|
|
|
{ |
3818
|
|
|
return $this->replies; |
3819
|
|
|
} |
3820
|
|
|
public function setSelfLink($selfLink) |
3821
|
|
|
{ |
3822
|
|
|
$this->selfLink = $selfLink; |
3823
|
|
|
} |
3824
|
|
|
public function getSelfLink() |
3825
|
|
|
{ |
3826
|
|
|
return $this->selfLink; |
3827
|
|
|
} |
3828
|
|
|
public function setStatus($status) |
3829
|
|
|
{ |
3830
|
|
|
$this->status = $status; |
3831
|
|
|
} |
3832
|
|
|
public function getStatus() |
3833
|
|
|
{ |
3834
|
|
|
return $this->status; |
3835
|
|
|
} |
3836
|
|
|
} |
3837
|
|
|
|
3838
|
|
View Code Duplication |
class Google_Service_Drive_CommentContext extends Google_Model |
|
|
|
|
3839
|
|
|
{ |
3840
|
|
|
protected $internal_gapi_mappings = array( |
3841
|
|
|
); |
3842
|
|
|
public $type; |
3843
|
|
|
public $value; |
3844
|
|
|
|
3845
|
|
|
|
3846
|
|
|
public function setType($type) |
3847
|
|
|
{ |
3848
|
|
|
$this->type = $type; |
3849
|
|
|
} |
3850
|
|
|
public function getType() |
3851
|
|
|
{ |
3852
|
|
|
return $this->type; |
3853
|
|
|
} |
3854
|
|
|
public function setValue($value) |
3855
|
|
|
{ |
3856
|
|
|
$this->value = $value; |
3857
|
|
|
} |
3858
|
|
|
public function getValue() |
3859
|
|
|
{ |
3860
|
|
|
return $this->value; |
3861
|
|
|
} |
3862
|
|
|
} |
3863
|
|
|
|
3864
|
|
View Code Duplication |
class Google_Service_Drive_CommentList extends Google_Collection |
|
|
|
|
3865
|
|
|
{ |
3866
|
|
|
protected $collection_key = 'items'; |
3867
|
|
|
protected $internal_gapi_mappings = array( |
3868
|
|
|
); |
3869
|
|
|
protected $itemsType = 'Google_Service_Drive_Comment'; |
3870
|
|
|
protected $itemsDataType = 'array'; |
3871
|
|
|
public $kind; |
3872
|
|
|
public $nextLink; |
3873
|
|
|
public $nextPageToken; |
3874
|
|
|
public $selfLink; |
3875
|
|
|
|
3876
|
|
|
|
3877
|
|
|
public function setItems($items) |
3878
|
|
|
{ |
3879
|
|
|
$this->items = $items; |
|
|
|
|
3880
|
|
|
} |
3881
|
|
|
public function getItems() |
3882
|
|
|
{ |
3883
|
|
|
return $this->items; |
3884
|
|
|
} |
3885
|
|
|
public function setKind($kind) |
3886
|
|
|
{ |
3887
|
|
|
$this->kind = $kind; |
3888
|
|
|
} |
3889
|
|
|
public function getKind() |
3890
|
|
|
{ |
3891
|
|
|
return $this->kind; |
3892
|
|
|
} |
3893
|
|
|
public function setNextLink($nextLink) |
3894
|
|
|
{ |
3895
|
|
|
$this->nextLink = $nextLink; |
3896
|
|
|
} |
3897
|
|
|
public function getNextLink() |
3898
|
|
|
{ |
3899
|
|
|
return $this->nextLink; |
3900
|
|
|
} |
3901
|
|
|
public function setNextPageToken($nextPageToken) |
3902
|
|
|
{ |
3903
|
|
|
$this->nextPageToken = $nextPageToken; |
3904
|
|
|
} |
3905
|
|
|
public function getNextPageToken() |
3906
|
|
|
{ |
3907
|
|
|
return $this->nextPageToken; |
3908
|
|
|
} |
3909
|
|
|
public function setSelfLink($selfLink) |
3910
|
|
|
{ |
3911
|
|
|
$this->selfLink = $selfLink; |
3912
|
|
|
} |
3913
|
|
|
public function getSelfLink() |
3914
|
|
|
{ |
3915
|
|
|
return $this->selfLink; |
3916
|
|
|
} |
3917
|
|
|
} |
3918
|
|
|
|
3919
|
|
|
class Google_Service_Drive_CommentReply extends Google_Model |
3920
|
|
|
{ |
3921
|
|
|
protected $internal_gapi_mappings = array( |
3922
|
|
|
); |
3923
|
|
|
protected $authorType = 'Google_Service_Drive_User'; |
3924
|
|
|
protected $authorDataType = ''; |
3925
|
|
|
public $content; |
3926
|
|
|
public $createdDate; |
3927
|
|
|
public $deleted; |
3928
|
|
|
public $htmlContent; |
3929
|
|
|
public $kind; |
3930
|
|
|
public $modifiedDate; |
3931
|
|
|
public $replyId; |
3932
|
|
|
public $verb; |
3933
|
|
|
|
3934
|
|
|
|
3935
|
|
|
public function setAuthor(Google_Service_Drive_User $author) |
3936
|
|
|
{ |
3937
|
|
|
$this->author = $author; |
3938
|
|
|
} |
3939
|
|
|
public function getAuthor() |
3940
|
|
|
{ |
3941
|
|
|
return $this->author; |
3942
|
|
|
} |
3943
|
|
|
public function setContent($content) |
3944
|
|
|
{ |
3945
|
|
|
$this->content = $content; |
3946
|
|
|
} |
3947
|
|
|
public function getContent() |
3948
|
|
|
{ |
3949
|
|
|
return $this->content; |
3950
|
|
|
} |
3951
|
|
|
public function setCreatedDate($createdDate) |
3952
|
|
|
{ |
3953
|
|
|
$this->createdDate = $createdDate; |
3954
|
|
|
} |
3955
|
|
|
public function getCreatedDate() |
3956
|
|
|
{ |
3957
|
|
|
return $this->createdDate; |
3958
|
|
|
} |
3959
|
|
|
public function setDeleted($deleted) |
3960
|
|
|
{ |
3961
|
|
|
$this->deleted = $deleted; |
3962
|
|
|
} |
3963
|
|
|
public function getDeleted() |
3964
|
|
|
{ |
3965
|
|
|
return $this->deleted; |
3966
|
|
|
} |
3967
|
|
|
public function setHtmlContent($htmlContent) |
3968
|
|
|
{ |
3969
|
|
|
$this->htmlContent = $htmlContent; |
3970
|
|
|
} |
3971
|
|
|
public function getHtmlContent() |
3972
|
|
|
{ |
3973
|
|
|
return $this->htmlContent; |
3974
|
|
|
} |
3975
|
|
|
public function setKind($kind) |
3976
|
|
|
{ |
3977
|
|
|
$this->kind = $kind; |
3978
|
|
|
} |
3979
|
|
|
public function getKind() |
3980
|
|
|
{ |
3981
|
|
|
return $this->kind; |
3982
|
|
|
} |
3983
|
|
|
public function setModifiedDate($modifiedDate) |
3984
|
|
|
{ |
3985
|
|
|
$this->modifiedDate = $modifiedDate; |
3986
|
|
|
} |
3987
|
|
|
public function getModifiedDate() |
3988
|
|
|
{ |
3989
|
|
|
return $this->modifiedDate; |
3990
|
|
|
} |
3991
|
|
|
public function setReplyId($replyId) |
3992
|
|
|
{ |
3993
|
|
|
$this->replyId = $replyId; |
3994
|
|
|
} |
3995
|
|
|
public function getReplyId() |
3996
|
|
|
{ |
3997
|
|
|
return $this->replyId; |
3998
|
|
|
} |
3999
|
|
|
public function setVerb($verb) |
4000
|
|
|
{ |
4001
|
|
|
$this->verb = $verb; |
4002
|
|
|
} |
4003
|
|
|
public function getVerb() |
4004
|
|
|
{ |
4005
|
|
|
return $this->verb; |
4006
|
|
|
} |
4007
|
|
|
} |
4008
|
|
|
|
4009
|
|
View Code Duplication |
class Google_Service_Drive_CommentReplyList extends Google_Collection |
|
|
|
|
4010
|
|
|
{ |
4011
|
|
|
protected $collection_key = 'items'; |
4012
|
|
|
protected $internal_gapi_mappings = array( |
4013
|
|
|
); |
4014
|
|
|
protected $itemsType = 'Google_Service_Drive_CommentReply'; |
4015
|
|
|
protected $itemsDataType = 'array'; |
4016
|
|
|
public $kind; |
4017
|
|
|
public $nextLink; |
4018
|
|
|
public $nextPageToken; |
4019
|
|
|
public $selfLink; |
4020
|
|
|
|
4021
|
|
|
|
4022
|
|
|
public function setItems($items) |
4023
|
|
|
{ |
4024
|
|
|
$this->items = $items; |
|
|
|
|
4025
|
|
|
} |
4026
|
|
|
public function getItems() |
4027
|
|
|
{ |
4028
|
|
|
return $this->items; |
4029
|
|
|
} |
4030
|
|
|
public function setKind($kind) |
4031
|
|
|
{ |
4032
|
|
|
$this->kind = $kind; |
4033
|
|
|
} |
4034
|
|
|
public function getKind() |
4035
|
|
|
{ |
4036
|
|
|
return $this->kind; |
4037
|
|
|
} |
4038
|
|
|
public function setNextLink($nextLink) |
4039
|
|
|
{ |
4040
|
|
|
$this->nextLink = $nextLink; |
4041
|
|
|
} |
4042
|
|
|
public function getNextLink() |
4043
|
|
|
{ |
4044
|
|
|
return $this->nextLink; |
4045
|
|
|
} |
4046
|
|
|
public function setNextPageToken($nextPageToken) |
4047
|
|
|
{ |
4048
|
|
|
$this->nextPageToken = $nextPageToken; |
4049
|
|
|
} |
4050
|
|
|
public function getNextPageToken() |
4051
|
|
|
{ |
4052
|
|
|
return $this->nextPageToken; |
4053
|
|
|
} |
4054
|
|
|
public function setSelfLink($selfLink) |
4055
|
|
|
{ |
4056
|
|
|
$this->selfLink = $selfLink; |
4057
|
|
|
} |
4058
|
|
|
public function getSelfLink() |
4059
|
|
|
{ |
4060
|
|
|
return $this->selfLink; |
4061
|
|
|
} |
4062
|
|
|
} |
4063
|
|
|
|
4064
|
|
|
class Google_Service_Drive_DriveFile extends Google_Collection |
4065
|
|
|
{ |
4066
|
|
|
protected $collection_key = 'spaces'; |
4067
|
|
|
protected $internal_gapi_mappings = array( |
4068
|
|
|
); |
4069
|
|
|
public $alternateLink; |
4070
|
|
|
public $appDataContents; |
4071
|
|
|
public $canComment; |
4072
|
|
|
public $copyable; |
4073
|
|
|
public $createdDate; |
4074
|
|
|
public $defaultOpenWithLink; |
4075
|
|
|
public $description; |
4076
|
|
|
public $downloadUrl; |
4077
|
|
|
public $editable; |
4078
|
|
|
public $embedLink; |
4079
|
|
|
public $etag; |
4080
|
|
|
public $explicitlyTrashed; |
4081
|
|
|
public $exportLinks; |
4082
|
|
|
public $fileExtension; |
4083
|
|
|
public $fileSize; |
4084
|
|
|
public $folderColorRgb; |
4085
|
|
|
public $fullFileExtension; |
4086
|
|
|
public $headRevisionId; |
4087
|
|
|
public $iconLink; |
4088
|
|
|
public $id; |
4089
|
|
|
protected $imageMediaMetadataType = 'Google_Service_Drive_DriveFileImageMediaMetadata'; |
4090
|
|
|
protected $imageMediaMetadataDataType = ''; |
4091
|
|
|
protected $indexableTextType = 'Google_Service_Drive_DriveFileIndexableText'; |
4092
|
|
|
protected $indexableTextDataType = ''; |
4093
|
|
|
public $kind; |
4094
|
|
|
protected $labelsType = 'Google_Service_Drive_DriveFileLabels'; |
4095
|
|
|
protected $labelsDataType = ''; |
4096
|
|
|
protected $lastModifyingUserType = 'Google_Service_Drive_User'; |
4097
|
|
|
protected $lastModifyingUserDataType = ''; |
4098
|
|
|
public $lastModifyingUserName; |
4099
|
|
|
public $lastViewedByMeDate; |
4100
|
|
|
public $markedViewedByMeDate; |
4101
|
|
|
public $md5Checksum; |
4102
|
|
|
public $mimeType; |
4103
|
|
|
public $modifiedByMeDate; |
4104
|
|
|
public $modifiedDate; |
4105
|
|
|
public $openWithLinks; |
4106
|
|
|
public $originalFilename; |
4107
|
|
|
public $ownedByMe; |
4108
|
|
|
public $ownerNames; |
4109
|
|
|
protected $ownersType = 'Google_Service_Drive_User'; |
4110
|
|
|
protected $ownersDataType = 'array'; |
4111
|
|
|
protected $parentsType = 'Google_Service_Drive_ParentReference'; |
4112
|
|
|
protected $parentsDataType = 'array'; |
4113
|
|
|
protected $permissionsType = 'Google_Service_Drive_Permission'; |
4114
|
|
|
protected $permissionsDataType = 'array'; |
4115
|
|
|
protected $propertiesType = 'Google_Service_Drive_Property'; |
4116
|
|
|
protected $propertiesDataType = 'array'; |
4117
|
|
|
public $quotaBytesUsed; |
4118
|
|
|
public $selfLink; |
4119
|
|
|
public $shareable; |
4120
|
|
|
public $shared; |
4121
|
|
|
public $sharedWithMeDate; |
4122
|
|
|
protected $sharingUserType = 'Google_Service_Drive_User'; |
4123
|
|
|
protected $sharingUserDataType = ''; |
4124
|
|
|
public $spaces; |
4125
|
|
|
protected $thumbnailType = 'Google_Service_Drive_DriveFileThumbnail'; |
4126
|
|
|
protected $thumbnailDataType = ''; |
4127
|
|
|
public $thumbnailLink; |
4128
|
|
|
public $title; |
4129
|
|
|
protected $userPermissionType = 'Google_Service_Drive_Permission'; |
4130
|
|
|
protected $userPermissionDataType = ''; |
4131
|
|
|
public $version; |
4132
|
|
|
protected $videoMediaMetadataType = 'Google_Service_Drive_DriveFileVideoMediaMetadata'; |
4133
|
|
|
protected $videoMediaMetadataDataType = ''; |
4134
|
|
|
public $webContentLink; |
4135
|
|
|
public $webViewLink; |
4136
|
|
|
public $writersCanShare; |
4137
|
|
|
|
4138
|
|
|
|
4139
|
|
|
public function setAlternateLink($alternateLink) |
4140
|
|
|
{ |
4141
|
|
|
$this->alternateLink = $alternateLink; |
4142
|
|
|
} |
4143
|
|
|
public function getAlternateLink() |
4144
|
|
|
{ |
4145
|
|
|
return $this->alternateLink; |
4146
|
|
|
} |
4147
|
|
|
public function setAppDataContents($appDataContents) |
4148
|
|
|
{ |
4149
|
|
|
$this->appDataContents = $appDataContents; |
4150
|
|
|
} |
4151
|
|
|
public function getAppDataContents() |
4152
|
|
|
{ |
4153
|
|
|
return $this->appDataContents; |
4154
|
|
|
} |
4155
|
|
|
public function setCanComment($canComment) |
4156
|
|
|
{ |
4157
|
|
|
$this->canComment = $canComment; |
4158
|
|
|
} |
4159
|
|
|
public function getCanComment() |
4160
|
|
|
{ |
4161
|
|
|
return $this->canComment; |
4162
|
|
|
} |
4163
|
|
|
public function setCopyable($copyable) |
4164
|
|
|
{ |
4165
|
|
|
$this->copyable = $copyable; |
4166
|
|
|
} |
4167
|
|
|
public function getCopyable() |
4168
|
|
|
{ |
4169
|
|
|
return $this->copyable; |
4170
|
|
|
} |
4171
|
|
|
public function setCreatedDate($createdDate) |
4172
|
|
|
{ |
4173
|
|
|
$this->createdDate = $createdDate; |
4174
|
|
|
} |
4175
|
|
|
public function getCreatedDate() |
4176
|
|
|
{ |
4177
|
|
|
return $this->createdDate; |
4178
|
|
|
} |
4179
|
|
|
public function setDefaultOpenWithLink($defaultOpenWithLink) |
4180
|
|
|
{ |
4181
|
|
|
$this->defaultOpenWithLink = $defaultOpenWithLink; |
4182
|
|
|
} |
4183
|
|
|
public function getDefaultOpenWithLink() |
4184
|
|
|
{ |
4185
|
|
|
return $this->defaultOpenWithLink; |
4186
|
|
|
} |
4187
|
|
|
public function setDescription($description) |
4188
|
|
|
{ |
4189
|
|
|
$this->description = $description; |
4190
|
|
|
} |
4191
|
|
|
public function getDescription() |
4192
|
|
|
{ |
4193
|
|
|
return $this->description; |
4194
|
|
|
} |
4195
|
|
|
public function setDownloadUrl($downloadUrl) |
4196
|
|
|
{ |
4197
|
|
|
$this->downloadUrl = $downloadUrl; |
4198
|
|
|
} |
4199
|
|
|
public function getDownloadUrl() |
4200
|
|
|
{ |
4201
|
|
|
return $this->downloadUrl; |
4202
|
|
|
} |
4203
|
|
|
public function setEditable($editable) |
4204
|
|
|
{ |
4205
|
|
|
$this->editable = $editable; |
4206
|
|
|
} |
4207
|
|
|
public function getEditable() |
4208
|
|
|
{ |
4209
|
|
|
return $this->editable; |
4210
|
|
|
} |
4211
|
|
|
public function setEmbedLink($embedLink) |
4212
|
|
|
{ |
4213
|
|
|
$this->embedLink = $embedLink; |
4214
|
|
|
} |
4215
|
|
|
public function getEmbedLink() |
4216
|
|
|
{ |
4217
|
|
|
return $this->embedLink; |
4218
|
|
|
} |
4219
|
|
|
public function setEtag($etag) |
4220
|
|
|
{ |
4221
|
|
|
$this->etag = $etag; |
4222
|
|
|
} |
4223
|
|
|
public function getEtag() |
4224
|
|
|
{ |
4225
|
|
|
return $this->etag; |
4226
|
|
|
} |
4227
|
|
|
public function setExplicitlyTrashed($explicitlyTrashed) |
4228
|
|
|
{ |
4229
|
|
|
$this->explicitlyTrashed = $explicitlyTrashed; |
4230
|
|
|
} |
4231
|
|
|
public function getExplicitlyTrashed() |
4232
|
|
|
{ |
4233
|
|
|
return $this->explicitlyTrashed; |
4234
|
|
|
} |
4235
|
|
|
public function setExportLinks($exportLinks) |
4236
|
|
|
{ |
4237
|
|
|
$this->exportLinks = $exportLinks; |
4238
|
|
|
} |
4239
|
|
|
public function getExportLinks() |
4240
|
|
|
{ |
4241
|
|
|
return $this->exportLinks; |
4242
|
|
|
} |
4243
|
|
|
public function setFileExtension($fileExtension) |
4244
|
|
|
{ |
4245
|
|
|
$this->fileExtension = $fileExtension; |
4246
|
|
|
} |
4247
|
|
|
public function getFileExtension() |
4248
|
|
|
{ |
4249
|
|
|
return $this->fileExtension; |
4250
|
|
|
} |
4251
|
|
|
public function setFileSize($fileSize) |
4252
|
|
|
{ |
4253
|
|
|
$this->fileSize = $fileSize; |
4254
|
|
|
} |
4255
|
|
|
public function getFileSize() |
4256
|
|
|
{ |
4257
|
|
|
return $this->fileSize; |
4258
|
|
|
} |
4259
|
|
|
public function setFolderColorRgb($folderColorRgb) |
4260
|
|
|
{ |
4261
|
|
|
$this->folderColorRgb = $folderColorRgb; |
4262
|
|
|
} |
4263
|
|
|
public function getFolderColorRgb() |
4264
|
|
|
{ |
4265
|
|
|
return $this->folderColorRgb; |
4266
|
|
|
} |
4267
|
|
|
public function setFullFileExtension($fullFileExtension) |
4268
|
|
|
{ |
4269
|
|
|
$this->fullFileExtension = $fullFileExtension; |
4270
|
|
|
} |
4271
|
|
|
public function getFullFileExtension() |
4272
|
|
|
{ |
4273
|
|
|
return $this->fullFileExtension; |
4274
|
|
|
} |
4275
|
|
|
public function setHeadRevisionId($headRevisionId) |
4276
|
|
|
{ |
4277
|
|
|
$this->headRevisionId = $headRevisionId; |
4278
|
|
|
} |
4279
|
|
|
public function getHeadRevisionId() |
4280
|
|
|
{ |
4281
|
|
|
return $this->headRevisionId; |
4282
|
|
|
} |
4283
|
|
|
public function setIconLink($iconLink) |
4284
|
|
|
{ |
4285
|
|
|
$this->iconLink = $iconLink; |
4286
|
|
|
} |
4287
|
|
|
public function getIconLink() |
4288
|
|
|
{ |
4289
|
|
|
return $this->iconLink; |
4290
|
|
|
} |
4291
|
|
|
public function setId($id) |
4292
|
|
|
{ |
4293
|
|
|
$this->id = $id; |
4294
|
|
|
} |
4295
|
|
|
public function getId() |
4296
|
|
|
{ |
4297
|
|
|
return $this->id; |
4298
|
|
|
} |
4299
|
|
|
public function setImageMediaMetadata(Google_Service_Drive_DriveFileImageMediaMetadata $imageMediaMetadata) |
4300
|
|
|
{ |
4301
|
|
|
$this->imageMediaMetadata = $imageMediaMetadata; |
4302
|
|
|
} |
4303
|
|
|
public function getImageMediaMetadata() |
4304
|
|
|
{ |
4305
|
|
|
return $this->imageMediaMetadata; |
4306
|
|
|
} |
4307
|
|
|
public function setIndexableText(Google_Service_Drive_DriveFileIndexableText $indexableText) |
4308
|
|
|
{ |
4309
|
|
|
$this->indexableText = $indexableText; |
4310
|
|
|
} |
4311
|
|
|
public function getIndexableText() |
4312
|
|
|
{ |
4313
|
|
|
return $this->indexableText; |
4314
|
|
|
} |
4315
|
|
|
public function setKind($kind) |
4316
|
|
|
{ |
4317
|
|
|
$this->kind = $kind; |
4318
|
|
|
} |
4319
|
|
|
public function getKind() |
4320
|
|
|
{ |
4321
|
|
|
return $this->kind; |
4322
|
|
|
} |
4323
|
|
|
public function setLabels(Google_Service_Drive_DriveFileLabels $labels) |
4324
|
|
|
{ |
4325
|
|
|
$this->labels = $labels; |
4326
|
|
|
} |
4327
|
|
|
public function getLabels() |
4328
|
|
|
{ |
4329
|
|
|
return $this->labels; |
4330
|
|
|
} |
4331
|
|
|
public function setLastModifyingUser(Google_Service_Drive_User $lastModifyingUser) |
4332
|
|
|
{ |
4333
|
|
|
$this->lastModifyingUser = $lastModifyingUser; |
4334
|
|
|
} |
4335
|
|
|
public function getLastModifyingUser() |
4336
|
|
|
{ |
4337
|
|
|
return $this->lastModifyingUser; |
4338
|
|
|
} |
4339
|
|
|
public function setLastModifyingUserName($lastModifyingUserName) |
4340
|
|
|
{ |
4341
|
|
|
$this->lastModifyingUserName = $lastModifyingUserName; |
4342
|
|
|
} |
4343
|
|
|
public function getLastModifyingUserName() |
4344
|
|
|
{ |
4345
|
|
|
return $this->lastModifyingUserName; |
4346
|
|
|
} |
4347
|
|
|
public function setLastViewedByMeDate($lastViewedByMeDate) |
4348
|
|
|
{ |
4349
|
|
|
$this->lastViewedByMeDate = $lastViewedByMeDate; |
4350
|
|
|
} |
4351
|
|
|
public function getLastViewedByMeDate() |
4352
|
|
|
{ |
4353
|
|
|
return $this->lastViewedByMeDate; |
4354
|
|
|
} |
4355
|
|
|
public function setMarkedViewedByMeDate($markedViewedByMeDate) |
4356
|
|
|
{ |
4357
|
|
|
$this->markedViewedByMeDate = $markedViewedByMeDate; |
4358
|
|
|
} |
4359
|
|
|
public function getMarkedViewedByMeDate() |
4360
|
|
|
{ |
4361
|
|
|
return $this->markedViewedByMeDate; |
4362
|
|
|
} |
4363
|
|
|
public function setMd5Checksum($md5Checksum) |
4364
|
|
|
{ |
4365
|
|
|
$this->md5Checksum = $md5Checksum; |
4366
|
|
|
} |
4367
|
|
|
public function getMd5Checksum() |
4368
|
|
|
{ |
4369
|
|
|
return $this->md5Checksum; |
4370
|
|
|
} |
4371
|
|
|
public function setMimeType($mimeType) |
4372
|
|
|
{ |
4373
|
|
|
$this->mimeType = $mimeType; |
4374
|
|
|
} |
4375
|
|
|
public function getMimeType() |
4376
|
|
|
{ |
4377
|
|
|
return $this->mimeType; |
4378
|
|
|
} |
4379
|
|
|
public function setModifiedByMeDate($modifiedByMeDate) |
4380
|
|
|
{ |
4381
|
|
|
$this->modifiedByMeDate = $modifiedByMeDate; |
4382
|
|
|
} |
4383
|
|
|
public function getModifiedByMeDate() |
4384
|
|
|
{ |
4385
|
|
|
return $this->modifiedByMeDate; |
4386
|
|
|
} |
4387
|
|
|
public function setModifiedDate($modifiedDate) |
4388
|
|
|
{ |
4389
|
|
|
$this->modifiedDate = $modifiedDate; |
4390
|
|
|
} |
4391
|
|
|
public function getModifiedDate() |
4392
|
|
|
{ |
4393
|
|
|
return $this->modifiedDate; |
4394
|
|
|
} |
4395
|
|
|
public function setOpenWithLinks($openWithLinks) |
4396
|
|
|
{ |
4397
|
|
|
$this->openWithLinks = $openWithLinks; |
4398
|
|
|
} |
4399
|
|
|
public function getOpenWithLinks() |
4400
|
|
|
{ |
4401
|
|
|
return $this->openWithLinks; |
4402
|
|
|
} |
4403
|
|
|
public function setOriginalFilename($originalFilename) |
4404
|
|
|
{ |
4405
|
|
|
$this->originalFilename = $originalFilename; |
4406
|
|
|
} |
4407
|
|
|
public function getOriginalFilename() |
4408
|
|
|
{ |
4409
|
|
|
return $this->originalFilename; |
4410
|
|
|
} |
4411
|
|
|
public function setOwnedByMe($ownedByMe) |
4412
|
|
|
{ |
4413
|
|
|
$this->ownedByMe = $ownedByMe; |
4414
|
|
|
} |
4415
|
|
|
public function getOwnedByMe() |
4416
|
|
|
{ |
4417
|
|
|
return $this->ownedByMe; |
4418
|
|
|
} |
4419
|
|
|
public function setOwnerNames($ownerNames) |
4420
|
|
|
{ |
4421
|
|
|
$this->ownerNames = $ownerNames; |
4422
|
|
|
} |
4423
|
|
|
public function getOwnerNames() |
4424
|
|
|
{ |
4425
|
|
|
return $this->ownerNames; |
4426
|
|
|
} |
4427
|
|
|
public function setOwners($owners) |
4428
|
|
|
{ |
4429
|
|
|
$this->owners = $owners; |
4430
|
|
|
} |
4431
|
|
|
public function getOwners() |
4432
|
|
|
{ |
4433
|
|
|
return $this->owners; |
4434
|
|
|
} |
4435
|
|
|
public function setParents($parents) |
4436
|
|
|
{ |
4437
|
|
|
$this->parents = $parents; |
4438
|
|
|
} |
4439
|
|
|
public function getParents() |
4440
|
|
|
{ |
4441
|
|
|
return $this->parents; |
4442
|
|
|
} |
4443
|
|
|
public function setPermissions($permissions) |
4444
|
|
|
{ |
4445
|
|
|
$this->permissions = $permissions; |
4446
|
|
|
} |
4447
|
|
|
public function getPermissions() |
4448
|
|
|
{ |
4449
|
|
|
return $this->permissions; |
4450
|
|
|
} |
4451
|
|
|
public function setProperties($properties) |
4452
|
|
|
{ |
4453
|
|
|
$this->properties = $properties; |
4454
|
|
|
} |
4455
|
|
|
public function getProperties() |
4456
|
|
|
{ |
4457
|
|
|
return $this->properties; |
4458
|
|
|
} |
4459
|
|
|
public function setQuotaBytesUsed($quotaBytesUsed) |
4460
|
|
|
{ |
4461
|
|
|
$this->quotaBytesUsed = $quotaBytesUsed; |
4462
|
|
|
} |
4463
|
|
|
public function getQuotaBytesUsed() |
4464
|
|
|
{ |
4465
|
|
|
return $this->quotaBytesUsed; |
4466
|
|
|
} |
4467
|
|
|
public function setSelfLink($selfLink) |
4468
|
|
|
{ |
4469
|
|
|
$this->selfLink = $selfLink; |
4470
|
|
|
} |
4471
|
|
|
public function getSelfLink() |
4472
|
|
|
{ |
4473
|
|
|
return $this->selfLink; |
4474
|
|
|
} |
4475
|
|
|
public function setShareable($shareable) |
4476
|
|
|
{ |
4477
|
|
|
$this->shareable = $shareable; |
4478
|
|
|
} |
4479
|
|
|
public function getShareable() |
4480
|
|
|
{ |
4481
|
|
|
return $this->shareable; |
4482
|
|
|
} |
4483
|
|
|
public function setShared($shared) |
4484
|
|
|
{ |
4485
|
|
|
$this->shared = $shared; |
4486
|
|
|
} |
4487
|
|
|
public function getShared() |
4488
|
|
|
{ |
4489
|
|
|
return $this->shared; |
4490
|
|
|
} |
4491
|
|
|
public function setSharedWithMeDate($sharedWithMeDate) |
4492
|
|
|
{ |
4493
|
|
|
$this->sharedWithMeDate = $sharedWithMeDate; |
4494
|
|
|
} |
4495
|
|
|
public function getSharedWithMeDate() |
4496
|
|
|
{ |
4497
|
|
|
return $this->sharedWithMeDate; |
4498
|
|
|
} |
4499
|
|
|
public function setSharingUser(Google_Service_Drive_User $sharingUser) |
4500
|
|
|
{ |
4501
|
|
|
$this->sharingUser = $sharingUser; |
4502
|
|
|
} |
4503
|
|
|
public function getSharingUser() |
4504
|
|
|
{ |
4505
|
|
|
return $this->sharingUser; |
4506
|
|
|
} |
4507
|
|
|
public function setSpaces($spaces) |
4508
|
|
|
{ |
4509
|
|
|
$this->spaces = $spaces; |
4510
|
|
|
} |
4511
|
|
|
public function getSpaces() |
4512
|
|
|
{ |
4513
|
|
|
return $this->spaces; |
4514
|
|
|
} |
4515
|
|
|
public function setThumbnail(Google_Service_Drive_DriveFileThumbnail $thumbnail) |
4516
|
|
|
{ |
4517
|
|
|
$this->thumbnail = $thumbnail; |
4518
|
|
|
} |
4519
|
|
|
public function getThumbnail() |
4520
|
|
|
{ |
4521
|
|
|
return $this->thumbnail; |
4522
|
|
|
} |
4523
|
|
|
public function setThumbnailLink($thumbnailLink) |
4524
|
|
|
{ |
4525
|
|
|
$this->thumbnailLink = $thumbnailLink; |
4526
|
|
|
} |
4527
|
|
|
public function getThumbnailLink() |
4528
|
|
|
{ |
4529
|
|
|
return $this->thumbnailLink; |
4530
|
|
|
} |
4531
|
|
|
public function setTitle($title) |
4532
|
|
|
{ |
4533
|
|
|
$this->title = $title; |
4534
|
|
|
} |
4535
|
|
|
public function getTitle() |
4536
|
|
|
{ |
4537
|
|
|
return $this->title; |
4538
|
|
|
} |
4539
|
|
|
public function setUserPermission(Google_Service_Drive_Permission $userPermission) |
4540
|
|
|
{ |
4541
|
|
|
$this->userPermission = $userPermission; |
4542
|
|
|
} |
4543
|
|
|
public function getUserPermission() |
4544
|
|
|
{ |
4545
|
|
|
return $this->userPermission; |
4546
|
|
|
} |
4547
|
|
|
public function setVersion($version) |
4548
|
|
|
{ |
4549
|
|
|
$this->version = $version; |
4550
|
|
|
} |
4551
|
|
|
public function getVersion() |
4552
|
|
|
{ |
4553
|
|
|
return $this->version; |
4554
|
|
|
} |
4555
|
|
|
public function setVideoMediaMetadata(Google_Service_Drive_DriveFileVideoMediaMetadata $videoMediaMetadata) |
4556
|
|
|
{ |
4557
|
|
|
$this->videoMediaMetadata = $videoMediaMetadata; |
4558
|
|
|
} |
4559
|
|
|
public function getVideoMediaMetadata() |
4560
|
|
|
{ |
4561
|
|
|
return $this->videoMediaMetadata; |
4562
|
|
|
} |
4563
|
|
|
public function setWebContentLink($webContentLink) |
4564
|
|
|
{ |
4565
|
|
|
$this->webContentLink = $webContentLink; |
4566
|
|
|
} |
4567
|
|
|
public function getWebContentLink() |
4568
|
|
|
{ |
4569
|
|
|
return $this->webContentLink; |
4570
|
|
|
} |
4571
|
|
|
public function setWebViewLink($webViewLink) |
4572
|
|
|
{ |
4573
|
|
|
$this->webViewLink = $webViewLink; |
4574
|
|
|
} |
4575
|
|
|
public function getWebViewLink() |
4576
|
|
|
{ |
4577
|
|
|
return $this->webViewLink; |
4578
|
|
|
} |
4579
|
|
|
public function setWritersCanShare($writersCanShare) |
4580
|
|
|
{ |
4581
|
|
|
$this->writersCanShare = $writersCanShare; |
4582
|
|
|
} |
4583
|
|
|
public function getWritersCanShare() |
4584
|
|
|
{ |
4585
|
|
|
return $this->writersCanShare; |
4586
|
|
|
} |
4587
|
|
|
} |
4588
|
|
|
|
4589
|
|
|
class Google_Service_Drive_DriveFileExportLinks extends Google_Model |
4590
|
|
|
{ |
4591
|
|
|
} |
4592
|
|
|
|
4593
|
|
|
class Google_Service_Drive_DriveFileImageMediaMetadata extends Google_Model |
4594
|
|
|
{ |
4595
|
|
|
protected $internal_gapi_mappings = array( |
4596
|
|
|
); |
4597
|
|
|
public $aperture; |
4598
|
|
|
public $cameraMake; |
4599
|
|
|
public $cameraModel; |
4600
|
|
|
public $colorSpace; |
4601
|
|
|
public $date; |
4602
|
|
|
public $exposureBias; |
4603
|
|
|
public $exposureMode; |
4604
|
|
|
public $exposureTime; |
4605
|
|
|
public $flashUsed; |
4606
|
|
|
public $focalLength; |
4607
|
|
|
public $height; |
4608
|
|
|
public $isoSpeed; |
4609
|
|
|
public $lens; |
4610
|
|
|
protected $locationType = 'Google_Service_Drive_DriveFileImageMediaMetadataLocation'; |
4611
|
|
|
protected $locationDataType = ''; |
4612
|
|
|
public $maxApertureValue; |
4613
|
|
|
public $meteringMode; |
4614
|
|
|
public $rotation; |
4615
|
|
|
public $sensor; |
4616
|
|
|
public $subjectDistance; |
4617
|
|
|
public $whiteBalance; |
4618
|
|
|
public $width; |
4619
|
|
|
|
4620
|
|
|
|
4621
|
|
|
public function setAperture($aperture) |
4622
|
|
|
{ |
4623
|
|
|
$this->aperture = $aperture; |
4624
|
|
|
} |
4625
|
|
|
public function getAperture() |
4626
|
|
|
{ |
4627
|
|
|
return $this->aperture; |
4628
|
|
|
} |
4629
|
|
|
public function setCameraMake($cameraMake) |
4630
|
|
|
{ |
4631
|
|
|
$this->cameraMake = $cameraMake; |
4632
|
|
|
} |
4633
|
|
|
public function getCameraMake() |
4634
|
|
|
{ |
4635
|
|
|
return $this->cameraMake; |
4636
|
|
|
} |
4637
|
|
|
public function setCameraModel($cameraModel) |
4638
|
|
|
{ |
4639
|
|
|
$this->cameraModel = $cameraModel; |
4640
|
|
|
} |
4641
|
|
|
public function getCameraModel() |
4642
|
|
|
{ |
4643
|
|
|
return $this->cameraModel; |
4644
|
|
|
} |
4645
|
|
|
public function setColorSpace($colorSpace) |
4646
|
|
|
{ |
4647
|
|
|
$this->colorSpace = $colorSpace; |
4648
|
|
|
} |
4649
|
|
|
public function getColorSpace() |
4650
|
|
|
{ |
4651
|
|
|
return $this->colorSpace; |
4652
|
|
|
} |
4653
|
|
|
public function setDate($date) |
4654
|
|
|
{ |
4655
|
|
|
$this->date = $date; |
4656
|
|
|
} |
4657
|
|
|
public function getDate() |
4658
|
|
|
{ |
4659
|
|
|
return $this->date; |
4660
|
|
|
} |
4661
|
|
|
public function setExposureBias($exposureBias) |
4662
|
|
|
{ |
4663
|
|
|
$this->exposureBias = $exposureBias; |
4664
|
|
|
} |
4665
|
|
|
public function getExposureBias() |
4666
|
|
|
{ |
4667
|
|
|
return $this->exposureBias; |
4668
|
|
|
} |
4669
|
|
|
public function setExposureMode($exposureMode) |
4670
|
|
|
{ |
4671
|
|
|
$this->exposureMode = $exposureMode; |
4672
|
|
|
} |
4673
|
|
|
public function getExposureMode() |
4674
|
|
|
{ |
4675
|
|
|
return $this->exposureMode; |
4676
|
|
|
} |
4677
|
|
|
public function setExposureTime($exposureTime) |
4678
|
|
|
{ |
4679
|
|
|
$this->exposureTime = $exposureTime; |
4680
|
|
|
} |
4681
|
|
|
public function getExposureTime() |
4682
|
|
|
{ |
4683
|
|
|
return $this->exposureTime; |
4684
|
|
|
} |
4685
|
|
|
public function setFlashUsed($flashUsed) |
4686
|
|
|
{ |
4687
|
|
|
$this->flashUsed = $flashUsed; |
4688
|
|
|
} |
4689
|
|
|
public function getFlashUsed() |
4690
|
|
|
{ |
4691
|
|
|
return $this->flashUsed; |
4692
|
|
|
} |
4693
|
|
|
public function setFocalLength($focalLength) |
4694
|
|
|
{ |
4695
|
|
|
$this->focalLength = $focalLength; |
4696
|
|
|
} |
4697
|
|
|
public function getFocalLength() |
4698
|
|
|
{ |
4699
|
|
|
return $this->focalLength; |
4700
|
|
|
} |
4701
|
|
|
public function setHeight($height) |
4702
|
|
|
{ |
4703
|
|
|
$this->height = $height; |
4704
|
|
|
} |
4705
|
|
|
public function getHeight() |
4706
|
|
|
{ |
4707
|
|
|
return $this->height; |
4708
|
|
|
} |
4709
|
|
|
public function setIsoSpeed($isoSpeed) |
4710
|
|
|
{ |
4711
|
|
|
$this->isoSpeed = $isoSpeed; |
4712
|
|
|
} |
4713
|
|
|
public function getIsoSpeed() |
4714
|
|
|
{ |
4715
|
|
|
return $this->isoSpeed; |
4716
|
|
|
} |
4717
|
|
|
public function setLens($lens) |
4718
|
|
|
{ |
4719
|
|
|
$this->lens = $lens; |
4720
|
|
|
} |
4721
|
|
|
public function getLens() |
4722
|
|
|
{ |
4723
|
|
|
return $this->lens; |
4724
|
|
|
} |
4725
|
|
|
public function setLocation(Google_Service_Drive_DriveFileImageMediaMetadataLocation $location) |
4726
|
|
|
{ |
4727
|
|
|
$this->location = $location; |
4728
|
|
|
} |
4729
|
|
|
public function getLocation() |
4730
|
|
|
{ |
4731
|
|
|
return $this->location; |
4732
|
|
|
} |
4733
|
|
|
public function setMaxApertureValue($maxApertureValue) |
4734
|
|
|
{ |
4735
|
|
|
$this->maxApertureValue = $maxApertureValue; |
4736
|
|
|
} |
4737
|
|
|
public function getMaxApertureValue() |
4738
|
|
|
{ |
4739
|
|
|
return $this->maxApertureValue; |
4740
|
|
|
} |
4741
|
|
|
public function setMeteringMode($meteringMode) |
4742
|
|
|
{ |
4743
|
|
|
$this->meteringMode = $meteringMode; |
4744
|
|
|
} |
4745
|
|
|
public function getMeteringMode() |
4746
|
|
|
{ |
4747
|
|
|
return $this->meteringMode; |
4748
|
|
|
} |
4749
|
|
|
public function setRotation($rotation) |
4750
|
|
|
{ |
4751
|
|
|
$this->rotation = $rotation; |
4752
|
|
|
} |
4753
|
|
|
public function getRotation() |
4754
|
|
|
{ |
4755
|
|
|
return $this->rotation; |
4756
|
|
|
} |
4757
|
|
|
public function setSensor($sensor) |
4758
|
|
|
{ |
4759
|
|
|
$this->sensor = $sensor; |
4760
|
|
|
} |
4761
|
|
|
public function getSensor() |
4762
|
|
|
{ |
4763
|
|
|
return $this->sensor; |
4764
|
|
|
} |
4765
|
|
|
public function setSubjectDistance($subjectDistance) |
4766
|
|
|
{ |
4767
|
|
|
$this->subjectDistance = $subjectDistance; |
4768
|
|
|
} |
4769
|
|
|
public function getSubjectDistance() |
4770
|
|
|
{ |
4771
|
|
|
return $this->subjectDistance; |
4772
|
|
|
} |
4773
|
|
|
public function setWhiteBalance($whiteBalance) |
4774
|
|
|
{ |
4775
|
|
|
$this->whiteBalance = $whiteBalance; |
4776
|
|
|
} |
4777
|
|
|
public function getWhiteBalance() |
4778
|
|
|
{ |
4779
|
|
|
return $this->whiteBalance; |
4780
|
|
|
} |
4781
|
|
|
public function setWidth($width) |
4782
|
|
|
{ |
4783
|
|
|
$this->width = $width; |
4784
|
|
|
} |
4785
|
|
|
public function getWidth() |
4786
|
|
|
{ |
4787
|
|
|
return $this->width; |
4788
|
|
|
} |
4789
|
|
|
} |
4790
|
|
|
|
4791
|
|
View Code Duplication |
class Google_Service_Drive_DriveFileImageMediaMetadataLocation extends Google_Model |
|
|
|
|
4792
|
|
|
{ |
4793
|
|
|
protected $internal_gapi_mappings = array( |
4794
|
|
|
); |
4795
|
|
|
public $altitude; |
4796
|
|
|
public $latitude; |
4797
|
|
|
public $longitude; |
4798
|
|
|
|
4799
|
|
|
|
4800
|
|
|
public function setAltitude($altitude) |
4801
|
|
|
{ |
4802
|
|
|
$this->altitude = $altitude; |
4803
|
|
|
} |
4804
|
|
|
public function getAltitude() |
4805
|
|
|
{ |
4806
|
|
|
return $this->altitude; |
4807
|
|
|
} |
4808
|
|
|
public function setLatitude($latitude) |
4809
|
|
|
{ |
4810
|
|
|
$this->latitude = $latitude; |
4811
|
|
|
} |
4812
|
|
|
public function getLatitude() |
4813
|
|
|
{ |
4814
|
|
|
return $this->latitude; |
4815
|
|
|
} |
4816
|
|
|
public function setLongitude($longitude) |
4817
|
|
|
{ |
4818
|
|
|
$this->longitude = $longitude; |
4819
|
|
|
} |
4820
|
|
|
public function getLongitude() |
4821
|
|
|
{ |
4822
|
|
|
return $this->longitude; |
4823
|
|
|
} |
4824
|
|
|
} |
4825
|
|
|
|
4826
|
|
|
class Google_Service_Drive_DriveFileIndexableText extends Google_Model |
4827
|
|
|
{ |
4828
|
|
|
protected $internal_gapi_mappings = array( |
4829
|
|
|
); |
4830
|
|
|
public $text; |
4831
|
|
|
|
4832
|
|
|
|
4833
|
|
|
public function setText($text) |
4834
|
|
|
{ |
4835
|
|
|
$this->text = $text; |
4836
|
|
|
} |
4837
|
|
|
public function getText() |
4838
|
|
|
{ |
4839
|
|
|
return $this->text; |
4840
|
|
|
} |
4841
|
|
|
} |
4842
|
|
|
|
4843
|
|
|
class Google_Service_Drive_DriveFileLabels extends Google_Model |
4844
|
|
|
{ |
4845
|
|
|
protected $internal_gapi_mappings = array( |
4846
|
|
|
); |
4847
|
|
|
public $hidden; |
4848
|
|
|
public $restricted; |
4849
|
|
|
public $starred; |
4850
|
|
|
public $trashed; |
4851
|
|
|
public $viewed; |
4852
|
|
|
|
4853
|
|
|
|
4854
|
|
|
public function setHidden($hidden) |
4855
|
|
|
{ |
4856
|
|
|
$this->hidden = $hidden; |
4857
|
|
|
} |
4858
|
|
|
public function getHidden() |
4859
|
|
|
{ |
4860
|
|
|
return $this->hidden; |
4861
|
|
|
} |
4862
|
|
|
public function setRestricted($restricted) |
4863
|
|
|
{ |
4864
|
|
|
$this->restricted = $restricted; |
4865
|
|
|
} |
4866
|
|
|
public function getRestricted() |
4867
|
|
|
{ |
4868
|
|
|
return $this->restricted; |
4869
|
|
|
} |
4870
|
|
|
public function setStarred($starred) |
4871
|
|
|
{ |
4872
|
|
|
$this->starred = $starred; |
4873
|
|
|
} |
4874
|
|
|
public function getStarred() |
4875
|
|
|
{ |
4876
|
|
|
return $this->starred; |
4877
|
|
|
} |
4878
|
|
|
public function setTrashed($trashed) |
4879
|
|
|
{ |
4880
|
|
|
$this->trashed = $trashed; |
4881
|
|
|
} |
4882
|
|
|
public function getTrashed() |
4883
|
|
|
{ |
4884
|
|
|
return $this->trashed; |
4885
|
|
|
} |
4886
|
|
|
public function setViewed($viewed) |
4887
|
|
|
{ |
4888
|
|
|
$this->viewed = $viewed; |
4889
|
|
|
} |
4890
|
|
|
public function getViewed() |
4891
|
|
|
{ |
4892
|
|
|
return $this->viewed; |
4893
|
|
|
} |
4894
|
|
|
} |
4895
|
|
|
|
4896
|
|
|
class Google_Service_Drive_DriveFileOpenWithLinks extends Google_Model |
4897
|
|
|
{ |
4898
|
|
|
} |
4899
|
|
|
|
4900
|
|
|
class Google_Service_Drive_DriveFileThumbnail extends Google_Model |
4901
|
|
|
{ |
4902
|
|
|
protected $internal_gapi_mappings = array( |
4903
|
|
|
); |
4904
|
|
|
public $image; |
4905
|
|
|
public $mimeType; |
4906
|
|
|
|
4907
|
|
|
|
4908
|
|
|
public function setImage($image) |
4909
|
|
|
{ |
4910
|
|
|
$this->image = $image; |
4911
|
|
|
} |
4912
|
|
|
public function getImage() |
4913
|
|
|
{ |
4914
|
|
|
return $this->image; |
4915
|
|
|
} |
4916
|
|
|
public function setMimeType($mimeType) |
4917
|
|
|
{ |
4918
|
|
|
$this->mimeType = $mimeType; |
4919
|
|
|
} |
4920
|
|
|
public function getMimeType() |
4921
|
|
|
{ |
4922
|
|
|
return $this->mimeType; |
4923
|
|
|
} |
4924
|
|
|
} |
4925
|
|
|
|
4926
|
|
View Code Duplication |
class Google_Service_Drive_DriveFileVideoMediaMetadata extends Google_Model |
|
|
|
|
4927
|
|
|
{ |
4928
|
|
|
protected $internal_gapi_mappings = array( |
4929
|
|
|
); |
4930
|
|
|
public $durationMillis; |
4931
|
|
|
public $height; |
4932
|
|
|
public $width; |
4933
|
|
|
|
4934
|
|
|
|
4935
|
|
|
public function setDurationMillis($durationMillis) |
4936
|
|
|
{ |
4937
|
|
|
$this->durationMillis = $durationMillis; |
4938
|
|
|
} |
4939
|
|
|
public function getDurationMillis() |
4940
|
|
|
{ |
4941
|
|
|
return $this->durationMillis; |
4942
|
|
|
} |
4943
|
|
|
public function setHeight($height) |
4944
|
|
|
{ |
4945
|
|
|
$this->height = $height; |
4946
|
|
|
} |
4947
|
|
|
public function getHeight() |
4948
|
|
|
{ |
4949
|
|
|
return $this->height; |
4950
|
|
|
} |
4951
|
|
|
public function setWidth($width) |
4952
|
|
|
{ |
4953
|
|
|
$this->width = $width; |
4954
|
|
|
} |
4955
|
|
|
public function getWidth() |
4956
|
|
|
{ |
4957
|
|
|
return $this->width; |
4958
|
|
|
} |
4959
|
|
|
} |
4960
|
|
|
|
4961
|
|
View Code Duplication |
class Google_Service_Drive_FileList extends Google_Collection |
|
|
|
|
4962
|
|
|
{ |
4963
|
|
|
protected $collection_key = 'items'; |
4964
|
|
|
protected $internal_gapi_mappings = array( |
4965
|
|
|
); |
4966
|
|
|
public $etag; |
4967
|
|
|
protected $itemsType = 'Google_Service_Drive_DriveFile'; |
4968
|
|
|
protected $itemsDataType = 'array'; |
4969
|
|
|
public $kind; |
4970
|
|
|
public $nextLink; |
4971
|
|
|
public $nextPageToken; |
4972
|
|
|
public $selfLink; |
4973
|
|
|
|
4974
|
|
|
|
4975
|
|
|
public function setEtag($etag) |
4976
|
|
|
{ |
4977
|
|
|
$this->etag = $etag; |
4978
|
|
|
} |
4979
|
|
|
public function getEtag() |
4980
|
|
|
{ |
4981
|
|
|
return $this->etag; |
4982
|
|
|
} |
4983
|
|
|
public function setItems($items) |
4984
|
|
|
{ |
4985
|
|
|
$this->items = $items; |
|
|
|
|
4986
|
|
|
} |
4987
|
|
|
public function getItems() |
4988
|
|
|
{ |
4989
|
|
|
return $this->items; |
4990
|
|
|
} |
4991
|
|
|
public function setKind($kind) |
4992
|
|
|
{ |
4993
|
|
|
$this->kind = $kind; |
4994
|
|
|
} |
4995
|
|
|
public function getKind() |
4996
|
|
|
{ |
4997
|
|
|
return $this->kind; |
4998
|
|
|
} |
4999
|
|
|
public function setNextLink($nextLink) |
5000
|
|
|
{ |
5001
|
|
|
$this->nextLink = $nextLink; |
5002
|
|
|
} |
5003
|
|
|
public function getNextLink() |
5004
|
|
|
{ |
5005
|
|
|
return $this->nextLink; |
5006
|
|
|
} |
5007
|
|
|
public function setNextPageToken($nextPageToken) |
5008
|
|
|
{ |
5009
|
|
|
$this->nextPageToken = $nextPageToken; |
5010
|
|
|
} |
5011
|
|
|
public function getNextPageToken() |
5012
|
|
|
{ |
5013
|
|
|
return $this->nextPageToken; |
5014
|
|
|
} |
5015
|
|
|
public function setSelfLink($selfLink) |
5016
|
|
|
{ |
5017
|
|
|
$this->selfLink = $selfLink; |
5018
|
|
|
} |
5019
|
|
|
public function getSelfLink() |
5020
|
|
|
{ |
5021
|
|
|
return $this->selfLink; |
5022
|
|
|
} |
5023
|
|
|
} |
5024
|
|
|
|
5025
|
|
|
class Google_Service_Drive_GeneratedIds extends Google_Collection |
5026
|
|
|
{ |
5027
|
|
|
protected $collection_key = 'ids'; |
5028
|
|
|
protected $internal_gapi_mappings = array( |
5029
|
|
|
); |
5030
|
|
|
public $ids; |
5031
|
|
|
public $kind; |
5032
|
|
|
public $space; |
5033
|
|
|
|
5034
|
|
|
|
5035
|
|
|
public function setIds($ids) |
5036
|
|
|
{ |
5037
|
|
|
$this->ids = $ids; |
5038
|
|
|
} |
5039
|
|
|
public function getIds() |
5040
|
|
|
{ |
5041
|
|
|
return $this->ids; |
5042
|
|
|
} |
5043
|
|
|
public function setKind($kind) |
5044
|
|
|
{ |
5045
|
|
|
$this->kind = $kind; |
5046
|
|
|
} |
5047
|
|
|
public function getKind() |
5048
|
|
|
{ |
5049
|
|
|
return $this->kind; |
5050
|
|
|
} |
5051
|
|
|
public function setSpace($space) |
5052
|
|
|
{ |
5053
|
|
|
$this->space = $space; |
5054
|
|
|
} |
5055
|
|
|
public function getSpace() |
5056
|
|
|
{ |
5057
|
|
|
return $this->space; |
5058
|
|
|
} |
5059
|
|
|
} |
5060
|
|
|
|
5061
|
|
|
class Google_Service_Drive_ParentList extends Google_Collection |
5062
|
|
|
{ |
5063
|
|
|
protected $collection_key = 'items'; |
5064
|
|
|
protected $internal_gapi_mappings = array( |
5065
|
|
|
); |
5066
|
|
|
public $etag; |
5067
|
|
|
protected $itemsType = 'Google_Service_Drive_ParentReference'; |
5068
|
|
|
protected $itemsDataType = 'array'; |
5069
|
|
|
public $kind; |
5070
|
|
|
public $selfLink; |
5071
|
|
|
|
5072
|
|
|
|
5073
|
|
|
public function setEtag($etag) |
5074
|
|
|
{ |
5075
|
|
|
$this->etag = $etag; |
5076
|
|
|
} |
5077
|
|
|
public function getEtag() |
5078
|
|
|
{ |
5079
|
|
|
return $this->etag; |
5080
|
|
|
} |
5081
|
|
|
public function setItems($items) |
5082
|
|
|
{ |
5083
|
|
|
$this->items = $items; |
|
|
|
|
5084
|
|
|
} |
5085
|
|
|
public function getItems() |
5086
|
|
|
{ |
5087
|
|
|
return $this->items; |
5088
|
|
|
} |
5089
|
|
|
public function setKind($kind) |
5090
|
|
|
{ |
5091
|
|
|
$this->kind = $kind; |
5092
|
|
|
} |
5093
|
|
|
public function getKind() |
5094
|
|
|
{ |
5095
|
|
|
return $this->kind; |
5096
|
|
|
} |
5097
|
|
|
public function setSelfLink($selfLink) |
5098
|
|
|
{ |
5099
|
|
|
$this->selfLink = $selfLink; |
5100
|
|
|
} |
5101
|
|
|
public function getSelfLink() |
5102
|
|
|
{ |
5103
|
|
|
return $this->selfLink; |
5104
|
|
|
} |
5105
|
|
|
} |
5106
|
|
|
|
5107
|
|
View Code Duplication |
class Google_Service_Drive_ParentReference extends Google_Model |
|
|
|
|
5108
|
|
|
{ |
5109
|
|
|
protected $internal_gapi_mappings = array( |
5110
|
|
|
); |
5111
|
|
|
public $id; |
5112
|
|
|
public $isRoot; |
5113
|
|
|
public $kind; |
5114
|
|
|
public $parentLink; |
5115
|
|
|
public $selfLink; |
5116
|
|
|
|
5117
|
|
|
|
5118
|
|
|
public function setId($id) |
5119
|
|
|
{ |
5120
|
|
|
$this->id = $id; |
5121
|
|
|
} |
5122
|
|
|
public function getId() |
5123
|
|
|
{ |
5124
|
|
|
return $this->id; |
5125
|
|
|
} |
5126
|
|
|
public function setIsRoot($isRoot) |
5127
|
|
|
{ |
5128
|
|
|
$this->isRoot = $isRoot; |
5129
|
|
|
} |
5130
|
|
|
public function getIsRoot() |
5131
|
|
|
{ |
5132
|
|
|
return $this->isRoot; |
5133
|
|
|
} |
5134
|
|
|
public function setKind($kind) |
5135
|
|
|
{ |
5136
|
|
|
$this->kind = $kind; |
5137
|
|
|
} |
5138
|
|
|
public function getKind() |
5139
|
|
|
{ |
5140
|
|
|
return $this->kind; |
5141
|
|
|
} |
5142
|
|
|
public function setParentLink($parentLink) |
5143
|
|
|
{ |
5144
|
|
|
$this->parentLink = $parentLink; |
5145
|
|
|
} |
5146
|
|
|
public function getParentLink() |
5147
|
|
|
{ |
5148
|
|
|
return $this->parentLink; |
5149
|
|
|
} |
5150
|
|
|
public function setSelfLink($selfLink) |
5151
|
|
|
{ |
5152
|
|
|
$this->selfLink = $selfLink; |
5153
|
|
|
} |
5154
|
|
|
public function getSelfLink() |
5155
|
|
|
{ |
5156
|
|
|
return $this->selfLink; |
5157
|
|
|
} |
5158
|
|
|
} |
5159
|
|
|
|
5160
|
|
|
class Google_Service_Drive_Permission extends Google_Collection |
5161
|
|
|
{ |
5162
|
|
|
protected $collection_key = 'additionalRoles'; |
5163
|
|
|
protected $internal_gapi_mappings = array( |
5164
|
|
|
); |
5165
|
|
|
public $additionalRoles; |
5166
|
|
|
public $authKey; |
5167
|
|
|
public $domain; |
5168
|
|
|
public $emailAddress; |
5169
|
|
|
public $etag; |
5170
|
|
|
public $id; |
5171
|
|
|
public $kind; |
5172
|
|
|
public $name; |
5173
|
|
|
public $photoLink; |
5174
|
|
|
public $role; |
5175
|
|
|
public $selfLink; |
5176
|
|
|
public $type; |
5177
|
|
|
public $value; |
5178
|
|
|
public $withLink; |
5179
|
|
|
|
5180
|
|
|
|
5181
|
|
|
public function setAdditionalRoles($additionalRoles) |
5182
|
|
|
{ |
5183
|
|
|
$this->additionalRoles = $additionalRoles; |
5184
|
|
|
} |
5185
|
|
|
public function getAdditionalRoles() |
5186
|
|
|
{ |
5187
|
|
|
return $this->additionalRoles; |
5188
|
|
|
} |
5189
|
|
|
public function setAuthKey($authKey) |
5190
|
|
|
{ |
5191
|
|
|
$this->authKey = $authKey; |
5192
|
|
|
} |
5193
|
|
|
public function getAuthKey() |
5194
|
|
|
{ |
5195
|
|
|
return $this->authKey; |
5196
|
|
|
} |
5197
|
|
|
public function setDomain($domain) |
5198
|
|
|
{ |
5199
|
|
|
$this->domain = $domain; |
5200
|
|
|
} |
5201
|
|
|
public function getDomain() |
5202
|
|
|
{ |
5203
|
|
|
return $this->domain; |
5204
|
|
|
} |
5205
|
|
|
public function setEmailAddress($emailAddress) |
5206
|
|
|
{ |
5207
|
|
|
$this->emailAddress = $emailAddress; |
5208
|
|
|
} |
5209
|
|
|
public function getEmailAddress() |
5210
|
|
|
{ |
5211
|
|
|
return $this->emailAddress; |
5212
|
|
|
} |
5213
|
|
|
public function setEtag($etag) |
5214
|
|
|
{ |
5215
|
|
|
$this->etag = $etag; |
5216
|
|
|
} |
5217
|
|
|
public function getEtag() |
5218
|
|
|
{ |
5219
|
|
|
return $this->etag; |
5220
|
|
|
} |
5221
|
|
|
public function setId($id) |
5222
|
|
|
{ |
5223
|
|
|
$this->id = $id; |
5224
|
|
|
} |
5225
|
|
|
public function getId() |
5226
|
|
|
{ |
5227
|
|
|
return $this->id; |
5228
|
|
|
} |
5229
|
|
|
public function setKind($kind) |
5230
|
|
|
{ |
5231
|
|
|
$this->kind = $kind; |
5232
|
|
|
} |
5233
|
|
|
public function getKind() |
5234
|
|
|
{ |
5235
|
|
|
return $this->kind; |
5236
|
|
|
} |
5237
|
|
|
public function setName($name) |
5238
|
|
|
{ |
5239
|
|
|
$this->name = $name; |
5240
|
|
|
} |
5241
|
|
|
public function getName() |
5242
|
|
|
{ |
5243
|
|
|
return $this->name; |
5244
|
|
|
} |
5245
|
|
|
public function setPhotoLink($photoLink) |
5246
|
|
|
{ |
5247
|
|
|
$this->photoLink = $photoLink; |
5248
|
|
|
} |
5249
|
|
|
public function getPhotoLink() |
5250
|
|
|
{ |
5251
|
|
|
return $this->photoLink; |
5252
|
|
|
} |
5253
|
|
|
public function setRole($role) |
5254
|
|
|
{ |
5255
|
|
|
$this->role = $role; |
5256
|
|
|
} |
5257
|
|
|
public function getRole() |
5258
|
|
|
{ |
5259
|
|
|
return $this->role; |
5260
|
|
|
} |
5261
|
|
|
public function setSelfLink($selfLink) |
5262
|
|
|
{ |
5263
|
|
|
$this->selfLink = $selfLink; |
5264
|
|
|
} |
5265
|
|
|
public function getSelfLink() |
5266
|
|
|
{ |
5267
|
|
|
return $this->selfLink; |
5268
|
|
|
} |
5269
|
|
|
public function setType($type) |
5270
|
|
|
{ |
5271
|
|
|
$this->type = $type; |
5272
|
|
|
} |
5273
|
|
|
public function getType() |
5274
|
|
|
{ |
5275
|
|
|
return $this->type; |
5276
|
|
|
} |
5277
|
|
|
public function setValue($value) |
5278
|
|
|
{ |
5279
|
|
|
$this->value = $value; |
5280
|
|
|
} |
5281
|
|
|
public function getValue() |
5282
|
|
|
{ |
5283
|
|
|
return $this->value; |
5284
|
|
|
} |
5285
|
|
|
public function setWithLink($withLink) |
5286
|
|
|
{ |
5287
|
|
|
$this->withLink = $withLink; |
5288
|
|
|
} |
5289
|
|
|
public function getWithLink() |
5290
|
|
|
{ |
5291
|
|
|
return $this->withLink; |
5292
|
|
|
} |
5293
|
|
|
} |
5294
|
|
|
|
5295
|
|
|
class Google_Service_Drive_PermissionId extends Google_Model |
5296
|
|
|
{ |
5297
|
|
|
protected $internal_gapi_mappings = array( |
5298
|
|
|
); |
5299
|
|
|
public $id; |
5300
|
|
|
public $kind; |
5301
|
|
|
|
5302
|
|
|
|
5303
|
|
|
public function setId($id) |
5304
|
|
|
{ |
5305
|
|
|
$this->id = $id; |
5306
|
|
|
} |
5307
|
|
|
public function getId() |
5308
|
|
|
{ |
5309
|
|
|
return $this->id; |
5310
|
|
|
} |
5311
|
|
|
public function setKind($kind) |
5312
|
|
|
{ |
5313
|
|
|
$this->kind = $kind; |
5314
|
|
|
} |
5315
|
|
|
public function getKind() |
5316
|
|
|
{ |
5317
|
|
|
return $this->kind; |
5318
|
|
|
} |
5319
|
|
|
} |
5320
|
|
|
|
5321
|
|
|
class Google_Service_Drive_PermissionList extends Google_Collection |
5322
|
|
|
{ |
5323
|
|
|
protected $collection_key = 'items'; |
5324
|
|
|
protected $internal_gapi_mappings = array( |
5325
|
|
|
); |
5326
|
|
|
public $etag; |
5327
|
|
|
protected $itemsType = 'Google_Service_Drive_Permission'; |
5328
|
|
|
protected $itemsDataType = 'array'; |
5329
|
|
|
public $kind; |
5330
|
|
|
public $selfLink; |
5331
|
|
|
|
5332
|
|
|
|
5333
|
|
|
public function setEtag($etag) |
5334
|
|
|
{ |
5335
|
|
|
$this->etag = $etag; |
5336
|
|
|
} |
5337
|
|
|
public function getEtag() |
5338
|
|
|
{ |
5339
|
|
|
return $this->etag; |
5340
|
|
|
} |
5341
|
|
|
public function setItems($items) |
5342
|
|
|
{ |
5343
|
|
|
$this->items = $items; |
|
|
|
|
5344
|
|
|
} |
5345
|
|
|
public function getItems() |
5346
|
|
|
{ |
5347
|
|
|
return $this->items; |
5348
|
|
|
} |
5349
|
|
|
public function setKind($kind) |
5350
|
|
|
{ |
5351
|
|
|
$this->kind = $kind; |
5352
|
|
|
} |
5353
|
|
|
public function getKind() |
5354
|
|
|
{ |
5355
|
|
|
return $this->kind; |
5356
|
|
|
} |
5357
|
|
|
public function setSelfLink($selfLink) |
5358
|
|
|
{ |
5359
|
|
|
$this->selfLink = $selfLink; |
5360
|
|
|
} |
5361
|
|
|
public function getSelfLink() |
5362
|
|
|
{ |
5363
|
|
|
return $this->selfLink; |
5364
|
|
|
} |
5365
|
|
|
} |
5366
|
|
|
|
5367
|
|
View Code Duplication |
class Google_Service_Drive_Property extends Google_Model |
|
|
|
|
5368
|
|
|
{ |
5369
|
|
|
protected $internal_gapi_mappings = array( |
5370
|
|
|
); |
5371
|
|
|
public $etag; |
5372
|
|
|
public $key; |
5373
|
|
|
public $kind; |
5374
|
|
|
public $selfLink; |
5375
|
|
|
public $value; |
5376
|
|
|
public $visibility; |
5377
|
|
|
|
5378
|
|
|
|
5379
|
|
|
public function setEtag($etag) |
5380
|
|
|
{ |
5381
|
|
|
$this->etag = $etag; |
5382
|
|
|
} |
5383
|
|
|
public function getEtag() |
5384
|
|
|
{ |
5385
|
|
|
return $this->etag; |
5386
|
|
|
} |
5387
|
|
|
public function setKey($key) |
5388
|
|
|
{ |
5389
|
|
|
$this->key = $key; |
5390
|
|
|
} |
5391
|
|
|
public function getKey() |
5392
|
|
|
{ |
5393
|
|
|
return $this->key; |
5394
|
|
|
} |
5395
|
|
|
public function setKind($kind) |
5396
|
|
|
{ |
5397
|
|
|
$this->kind = $kind; |
5398
|
|
|
} |
5399
|
|
|
public function getKind() |
5400
|
|
|
{ |
5401
|
|
|
return $this->kind; |
5402
|
|
|
} |
5403
|
|
|
public function setSelfLink($selfLink) |
5404
|
|
|
{ |
5405
|
|
|
$this->selfLink = $selfLink; |
5406
|
|
|
} |
5407
|
|
|
public function getSelfLink() |
5408
|
|
|
{ |
5409
|
|
|
return $this->selfLink; |
5410
|
|
|
} |
5411
|
|
|
public function setValue($value) |
5412
|
|
|
{ |
5413
|
|
|
$this->value = $value; |
5414
|
|
|
} |
5415
|
|
|
public function getValue() |
5416
|
|
|
{ |
5417
|
|
|
return $this->value; |
5418
|
|
|
} |
5419
|
|
|
public function setVisibility($visibility) |
5420
|
|
|
{ |
5421
|
|
|
$this->visibility = $visibility; |
5422
|
|
|
} |
5423
|
|
|
public function getVisibility() |
5424
|
|
|
{ |
5425
|
|
|
return $this->visibility; |
5426
|
|
|
} |
5427
|
|
|
} |
5428
|
|
|
|
5429
|
|
|
class Google_Service_Drive_PropertyList extends Google_Collection |
5430
|
|
|
{ |
5431
|
|
|
protected $collection_key = 'items'; |
5432
|
|
|
protected $internal_gapi_mappings = array( |
5433
|
|
|
); |
5434
|
|
|
public $etag; |
5435
|
|
|
protected $itemsType = 'Google_Service_Drive_Property'; |
5436
|
|
|
protected $itemsDataType = 'array'; |
5437
|
|
|
public $kind; |
5438
|
|
|
public $selfLink; |
5439
|
|
|
|
5440
|
|
|
|
5441
|
|
|
public function setEtag($etag) |
5442
|
|
|
{ |
5443
|
|
|
$this->etag = $etag; |
5444
|
|
|
} |
5445
|
|
|
public function getEtag() |
5446
|
|
|
{ |
5447
|
|
|
return $this->etag; |
5448
|
|
|
} |
5449
|
|
|
public function setItems($items) |
5450
|
|
|
{ |
5451
|
|
|
$this->items = $items; |
|
|
|
|
5452
|
|
|
} |
5453
|
|
|
public function getItems() |
5454
|
|
|
{ |
5455
|
|
|
return $this->items; |
5456
|
|
|
} |
5457
|
|
|
public function setKind($kind) |
5458
|
|
|
{ |
5459
|
|
|
$this->kind = $kind; |
5460
|
|
|
} |
5461
|
|
|
public function getKind() |
5462
|
|
|
{ |
5463
|
|
|
return $this->kind; |
5464
|
|
|
} |
5465
|
|
|
public function setSelfLink($selfLink) |
5466
|
|
|
{ |
5467
|
|
|
$this->selfLink = $selfLink; |
5468
|
|
|
} |
5469
|
|
|
public function getSelfLink() |
5470
|
|
|
{ |
5471
|
|
|
return $this->selfLink; |
5472
|
|
|
} |
5473
|
|
|
} |
5474
|
|
|
|
5475
|
|
|
class Google_Service_Drive_Revision extends Google_Model |
5476
|
|
|
{ |
5477
|
|
|
protected $internal_gapi_mappings = array( |
5478
|
|
|
); |
5479
|
|
|
public $downloadUrl; |
5480
|
|
|
public $etag; |
5481
|
|
|
public $exportLinks; |
5482
|
|
|
public $fileSize; |
5483
|
|
|
public $id; |
5484
|
|
|
public $kind; |
5485
|
|
|
protected $lastModifyingUserType = 'Google_Service_Drive_User'; |
5486
|
|
|
protected $lastModifyingUserDataType = ''; |
5487
|
|
|
public $lastModifyingUserName; |
5488
|
|
|
public $md5Checksum; |
5489
|
|
|
public $mimeType; |
5490
|
|
|
public $modifiedDate; |
5491
|
|
|
public $originalFilename; |
5492
|
|
|
public $pinned; |
5493
|
|
|
public $publishAuto; |
5494
|
|
|
public $published; |
5495
|
|
|
public $publishedLink; |
5496
|
|
|
public $publishedOutsideDomain; |
5497
|
|
|
public $selfLink; |
5498
|
|
|
|
5499
|
|
|
|
5500
|
|
|
public function setDownloadUrl($downloadUrl) |
5501
|
|
|
{ |
5502
|
|
|
$this->downloadUrl = $downloadUrl; |
5503
|
|
|
} |
5504
|
|
|
public function getDownloadUrl() |
5505
|
|
|
{ |
5506
|
|
|
return $this->downloadUrl; |
5507
|
|
|
} |
5508
|
|
|
public function setEtag($etag) |
5509
|
|
|
{ |
5510
|
|
|
$this->etag = $etag; |
5511
|
|
|
} |
5512
|
|
|
public function getEtag() |
5513
|
|
|
{ |
5514
|
|
|
return $this->etag; |
5515
|
|
|
} |
5516
|
|
|
public function setExportLinks($exportLinks) |
5517
|
|
|
{ |
5518
|
|
|
$this->exportLinks = $exportLinks; |
5519
|
|
|
} |
5520
|
|
|
public function getExportLinks() |
5521
|
|
|
{ |
5522
|
|
|
return $this->exportLinks; |
5523
|
|
|
} |
5524
|
|
|
public function setFileSize($fileSize) |
5525
|
|
|
{ |
5526
|
|
|
$this->fileSize = $fileSize; |
5527
|
|
|
} |
5528
|
|
|
public function getFileSize() |
5529
|
|
|
{ |
5530
|
|
|
return $this->fileSize; |
5531
|
|
|
} |
5532
|
|
|
public function setId($id) |
5533
|
|
|
{ |
5534
|
|
|
$this->id = $id; |
5535
|
|
|
} |
5536
|
|
|
public function getId() |
5537
|
|
|
{ |
5538
|
|
|
return $this->id; |
5539
|
|
|
} |
5540
|
|
|
public function setKind($kind) |
5541
|
|
|
{ |
5542
|
|
|
$this->kind = $kind; |
5543
|
|
|
} |
5544
|
|
|
public function getKind() |
5545
|
|
|
{ |
5546
|
|
|
return $this->kind; |
5547
|
|
|
} |
5548
|
|
|
public function setLastModifyingUser(Google_Service_Drive_User $lastModifyingUser) |
5549
|
|
|
{ |
5550
|
|
|
$this->lastModifyingUser = $lastModifyingUser; |
5551
|
|
|
} |
5552
|
|
|
public function getLastModifyingUser() |
5553
|
|
|
{ |
5554
|
|
|
return $this->lastModifyingUser; |
5555
|
|
|
} |
5556
|
|
|
public function setLastModifyingUserName($lastModifyingUserName) |
5557
|
|
|
{ |
5558
|
|
|
$this->lastModifyingUserName = $lastModifyingUserName; |
5559
|
|
|
} |
5560
|
|
|
public function getLastModifyingUserName() |
5561
|
|
|
{ |
5562
|
|
|
return $this->lastModifyingUserName; |
5563
|
|
|
} |
5564
|
|
|
public function setMd5Checksum($md5Checksum) |
5565
|
|
|
{ |
5566
|
|
|
$this->md5Checksum = $md5Checksum; |
5567
|
|
|
} |
5568
|
|
|
public function getMd5Checksum() |
5569
|
|
|
{ |
5570
|
|
|
return $this->md5Checksum; |
5571
|
|
|
} |
5572
|
|
|
public function setMimeType($mimeType) |
5573
|
|
|
{ |
5574
|
|
|
$this->mimeType = $mimeType; |
5575
|
|
|
} |
5576
|
|
|
public function getMimeType() |
5577
|
|
|
{ |
5578
|
|
|
return $this->mimeType; |
5579
|
|
|
} |
5580
|
|
|
public function setModifiedDate($modifiedDate) |
5581
|
|
|
{ |
5582
|
|
|
$this->modifiedDate = $modifiedDate; |
5583
|
|
|
} |
5584
|
|
|
public function getModifiedDate() |
5585
|
|
|
{ |
5586
|
|
|
return $this->modifiedDate; |
5587
|
|
|
} |
5588
|
|
|
public function setOriginalFilename($originalFilename) |
5589
|
|
|
{ |
5590
|
|
|
$this->originalFilename = $originalFilename; |
5591
|
|
|
} |
5592
|
|
|
public function getOriginalFilename() |
5593
|
|
|
{ |
5594
|
|
|
return $this->originalFilename; |
5595
|
|
|
} |
5596
|
|
|
public function setPinned($pinned) |
5597
|
|
|
{ |
5598
|
|
|
$this->pinned = $pinned; |
5599
|
|
|
} |
5600
|
|
|
public function getPinned() |
5601
|
|
|
{ |
5602
|
|
|
return $this->pinned; |
5603
|
|
|
} |
5604
|
|
|
public function setPublishAuto($publishAuto) |
5605
|
|
|
{ |
5606
|
|
|
$this->publishAuto = $publishAuto; |
5607
|
|
|
} |
5608
|
|
|
public function getPublishAuto() |
5609
|
|
|
{ |
5610
|
|
|
return $this->publishAuto; |
5611
|
|
|
} |
5612
|
|
|
public function setPublished($published) |
5613
|
|
|
{ |
5614
|
|
|
$this->published = $published; |
5615
|
|
|
} |
5616
|
|
|
public function getPublished() |
5617
|
|
|
{ |
5618
|
|
|
return $this->published; |
5619
|
|
|
} |
5620
|
|
|
public function setPublishedLink($publishedLink) |
5621
|
|
|
{ |
5622
|
|
|
$this->publishedLink = $publishedLink; |
5623
|
|
|
} |
5624
|
|
|
public function getPublishedLink() |
5625
|
|
|
{ |
5626
|
|
|
return $this->publishedLink; |
5627
|
|
|
} |
5628
|
|
|
public function setPublishedOutsideDomain($publishedOutsideDomain) |
5629
|
|
|
{ |
5630
|
|
|
$this->publishedOutsideDomain = $publishedOutsideDomain; |
5631
|
|
|
} |
5632
|
|
|
public function getPublishedOutsideDomain() |
5633
|
|
|
{ |
5634
|
|
|
return $this->publishedOutsideDomain; |
5635
|
|
|
} |
5636
|
|
|
public function setSelfLink($selfLink) |
5637
|
|
|
{ |
5638
|
|
|
$this->selfLink = $selfLink; |
5639
|
|
|
} |
5640
|
|
|
public function getSelfLink() |
5641
|
|
|
{ |
5642
|
|
|
return $this->selfLink; |
5643
|
|
|
} |
5644
|
|
|
} |
5645
|
|
|
|
5646
|
|
|
class Google_Service_Drive_RevisionExportLinks extends Google_Model |
5647
|
|
|
{ |
5648
|
|
|
} |
5649
|
|
|
|
5650
|
|
|
class Google_Service_Drive_RevisionList extends Google_Collection |
5651
|
|
|
{ |
5652
|
|
|
protected $collection_key = 'items'; |
5653
|
|
|
protected $internal_gapi_mappings = array( |
5654
|
|
|
); |
5655
|
|
|
public $etag; |
5656
|
|
|
protected $itemsType = 'Google_Service_Drive_Revision'; |
5657
|
|
|
protected $itemsDataType = 'array'; |
5658
|
|
|
public $kind; |
5659
|
|
|
public $selfLink; |
5660
|
|
|
|
5661
|
|
|
|
5662
|
|
|
public function setEtag($etag) |
5663
|
|
|
{ |
5664
|
|
|
$this->etag = $etag; |
5665
|
|
|
} |
5666
|
|
|
public function getEtag() |
5667
|
|
|
{ |
5668
|
|
|
return $this->etag; |
5669
|
|
|
} |
5670
|
|
|
public function setItems($items) |
5671
|
|
|
{ |
5672
|
|
|
$this->items = $items; |
|
|
|
|
5673
|
|
|
} |
5674
|
|
|
public function getItems() |
5675
|
|
|
{ |
5676
|
|
|
return $this->items; |
5677
|
|
|
} |
5678
|
|
|
public function setKind($kind) |
5679
|
|
|
{ |
5680
|
|
|
$this->kind = $kind; |
5681
|
|
|
} |
5682
|
|
|
public function getKind() |
5683
|
|
|
{ |
5684
|
|
|
return $this->kind; |
5685
|
|
|
} |
5686
|
|
|
public function setSelfLink($selfLink) |
5687
|
|
|
{ |
5688
|
|
|
$this->selfLink = $selfLink; |
5689
|
|
|
} |
5690
|
|
|
public function getSelfLink() |
5691
|
|
|
{ |
5692
|
|
|
return $this->selfLink; |
5693
|
|
|
} |
5694
|
|
|
} |
5695
|
|
|
|
5696
|
|
|
class Google_Service_Drive_User extends Google_Model |
5697
|
|
|
{ |
5698
|
|
|
protected $internal_gapi_mappings = array( |
5699
|
|
|
); |
5700
|
|
|
public $displayName; |
5701
|
|
|
public $emailAddress; |
5702
|
|
|
public $isAuthenticatedUser; |
5703
|
|
|
public $kind; |
5704
|
|
|
public $permissionId; |
5705
|
|
|
protected $pictureType = 'Google_Service_Drive_UserPicture'; |
5706
|
|
|
protected $pictureDataType = ''; |
5707
|
|
|
|
5708
|
|
|
|
5709
|
|
|
public function setDisplayName($displayName) |
5710
|
|
|
{ |
5711
|
|
|
$this->displayName = $displayName; |
5712
|
|
|
} |
5713
|
|
|
public function getDisplayName() |
5714
|
|
|
{ |
5715
|
|
|
return $this->displayName; |
5716
|
|
|
} |
5717
|
|
|
public function setEmailAddress($emailAddress) |
5718
|
|
|
{ |
5719
|
|
|
$this->emailAddress = $emailAddress; |
5720
|
|
|
} |
5721
|
|
|
public function getEmailAddress() |
5722
|
|
|
{ |
5723
|
|
|
return $this->emailAddress; |
5724
|
|
|
} |
5725
|
|
|
public function setIsAuthenticatedUser($isAuthenticatedUser) |
5726
|
|
|
{ |
5727
|
|
|
$this->isAuthenticatedUser = $isAuthenticatedUser; |
5728
|
|
|
} |
5729
|
|
|
public function getIsAuthenticatedUser() |
5730
|
|
|
{ |
5731
|
|
|
return $this->isAuthenticatedUser; |
5732
|
|
|
} |
5733
|
|
|
public function setKind($kind) |
5734
|
|
|
{ |
5735
|
|
|
$this->kind = $kind; |
5736
|
|
|
} |
5737
|
|
|
public function getKind() |
5738
|
|
|
{ |
5739
|
|
|
return $this->kind; |
5740
|
|
|
} |
5741
|
|
|
public function setPermissionId($permissionId) |
5742
|
|
|
{ |
5743
|
|
|
$this->permissionId = $permissionId; |
5744
|
|
|
} |
5745
|
|
|
public function getPermissionId() |
5746
|
|
|
{ |
5747
|
|
|
return $this->permissionId; |
5748
|
|
|
} |
5749
|
|
|
public function setPicture(Google_Service_Drive_UserPicture $picture) |
5750
|
|
|
{ |
5751
|
|
|
$this->picture = $picture; |
5752
|
|
|
} |
5753
|
|
|
public function getPicture() |
5754
|
|
|
{ |
5755
|
|
|
return $this->picture; |
5756
|
|
|
} |
5757
|
|
|
} |
5758
|
|
|
|
5759
|
|
|
class Google_Service_Drive_UserPicture extends Google_Model |
5760
|
|
|
{ |
5761
|
|
|
protected $internal_gapi_mappings = array( |
5762
|
|
|
); |
5763
|
|
|
public $url; |
5764
|
|
|
|
5765
|
|
|
|
5766
|
|
|
public function setUrl($url) |
5767
|
|
|
{ |
5768
|
|
|
$this->url = $url; |
5769
|
|
|
} |
5770
|
|
|
public function getUrl() |
5771
|
|
|
{ |
5772
|
|
|
return $this->url; |
5773
|
|
|
} |
5774
|
|
|
} |
5775
|
|
|
|
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: