PluginProbe
Authorizer / 2.6.10
Authorizer v2.6.10
3.15.3 3.15.2 3.15.1 3.15.0 3.14.3 3.14.4 3.14.2 3.14.1 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.10 2.9.11 2.9.12 2.9.13 2.9.2 2.9.3 2.9.6 All 126 releases
authorizer / vendor / google-api-php-client / src / Google / Service / Appsactivity.php

Appsactivity.php in Authorizer 2.6.10, at vendor/google-api-php-client/src/Google/Service/Appsactivity.php

569 lines 14.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 * use this file except in compliance with the License. You may obtain a copy of
5 * the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 * License for the specific language governing permissions and limitations under
13 * the License.
14 */
15
16 /**
17 * Service definition for Appsactivity (v1).
18 *
19 * <p>
20 * Provides a historical view of activity.</p>
21 *
22 * <p>
23 * For more information about this service, see the API
24 * <a href="https://developers.google.com/google-apps/activity/" target="_blank">Documentation</a>
25 * </p>
26 *
27 * @author Google, Inc.
28 */
29 class Google_Service_Appsactivity extends Google_Service
30 {
31 /** View the activity history of your Google Apps. */
32 const ACTIVITY =
33 "https://www.googleapis.com/auth/activity";
34 /** View and manage the files in your Google Drive. */
35 const DRIVE =
36 "https://www.googleapis.com/auth/drive";
37 /** View and manage metadata of files in your Google Drive. */
38 const DRIVE_METADATA =
39 "https://www.googleapis.com/auth/drive.metadata";
40 /** View metadata for files in your Google Drive. */
41 const DRIVE_METADATA_READONLY =
42 "https://www.googleapis.com/auth/drive.metadata.readonly";
43 /** View the files in your Google Drive. */
44 const DRIVE_READONLY =
45 "https://www.googleapis.com/auth/drive.readonly";
46
47 public $activities;
48
49
50 /**
51 * Constructs the internal representation of the Appsactivity service.
52 *
53 * @param Google_Client $client
54 */
55 public function __construct(Google_Client $client)
56 {
57 parent::__construct($client);
58 $this->rootUrl = 'https://www.googleapis.com/';
59 $this->servicePath = 'appsactivity/v1/';
60 $this->version = 'v1';
61 $this->serviceName = 'appsactivity';
62
63 $this->activities = new Google_Service_Appsactivity_Activities_Resource(
64 $this,
65 $this->serviceName,
66 'activities',
67 array(
68 'methods' => array(
69 'list' => array(
70 'path' => 'activities',
71 'httpMethod' => 'GET',
72 'parameters' => array(
73 'drive.ancestorId' => array(
74 'location' => 'query',
75 'type' => 'string',
76 ),
77 'drive.fileId' => array(
78 'location' => 'query',
79 'type' => 'string',
80 ),
81 'groupingStrategy' => array(
82 'location' => 'query',
83 'type' => 'string',
84 ),
85 'pageSize' => array(
86 'location' => 'query',
87 'type' => 'integer',
88 ),
89 'pageToken' => array(
90 'location' => 'query',
91 'type' => 'string',
92 ),
93 'source' => array(
94 'location' => 'query',
95 'type' => 'string',
96 ),
97 'userId' => array(
98 'location' => 'query',
99 'type' => 'string',
100 ),
101 ),
102 ),
103 )
104 )
105 );
106 }
107 }
108
109
110 /**
111 * The "activities" collection of methods.
112 * Typical usage is:
113 * <code>
114 * $appsactivityService = new Google_Service_Appsactivity(...);
115 * $activities = $appsactivityService->activities;
116 * </code>
117 */
118 class Google_Service_Appsactivity_Activities_Resource extends Google_Service_Resource
119 {
120
121 /**
122 * Returns a list of activities visible to the current logged in user. Visible
123 * activities are determined by the visiblity settings of the object that was
124 * acted on, e.g. Drive files a user can see. An activity is a record of past
125 * events. Multiple events may be merged if they are similar. A request is
126 * scoped to activities from a given Google service using the source parameter.
127 * (activities.listActivities)
128 *
129 * @param array $optParams Optional parameters.
130 *
131 * @opt_param string drive.ancestorId Identifies the Drive folder containing the
132 * items for which to return activities.
133 * @opt_param string drive.fileId Identifies the Drive item to return activities
134 * for.
135 * @opt_param string groupingStrategy Indicates the strategy to use when
136 * grouping singleEvents items in the associated combinedEvent object.
137 * @opt_param int pageSize The maximum number of events to return on a page. The
138 * response includes a continuation token if there are more events.
139 * @opt_param string pageToken A token to retrieve a specific page of results.
140 * @opt_param string source The Google service from which to return activities.
141 * Possible values of source are: - drive.google.com
142 * @opt_param string userId Indicates the user to return activity for. Use the
143 * special value me to indicate the currently authenticated user.
144 * @return Google_Service_Appsactivity_ListActivitiesResponse
145 */
146 public function listActivities($optParams = array())
147 {
148 $params = array();
149 $params = array_merge($params, $optParams);
150 return $this->call('list', array($params), "Google_Service_Appsactivity_ListActivitiesResponse");
151 }
152 }
153
154
155
156
157 class Google_Service_Appsactivity_Activity extends Google_Collection
158 {
159 protected $collection_key = 'singleEvents';
160 protected $internal_gapi_mappings = array(
161 );
162 protected $combinedEventType = 'Google_Service_Appsactivity_Event';
163 protected $combinedEventDataType = '';
164 protected $singleEventsType = 'Google_Service_Appsactivity_Event';
165 protected $singleEventsDataType = 'array';
166
167
168 public function setCombinedEvent(Google_Service_Appsactivity_Event $combinedEvent)
169 {
170 $this->combinedEvent = $combinedEvent;
171 }
172 public function getCombinedEvent()
173 {
174 return $this->combinedEvent;
175 }
176 public function setSingleEvents($singleEvents)
177 {
178 $this->singleEvents = $singleEvents;
179 }
180 public function getSingleEvents()
181 {
182 return $this->singleEvents;
183 }
184 }
185
186 class Google_Service_Appsactivity_Event extends Google_Collection
187 {
188 protected $collection_key = 'permissionChanges';
189 protected $internal_gapi_mappings = array(
190 );
191 public $additionalEventTypes;
192 public $eventTimeMillis;
193 public $fromUserDeletion;
194 protected $moveType = 'Google_Service_Appsactivity_Move';
195 protected $moveDataType = '';
196 protected $permissionChangesType = 'Google_Service_Appsactivity_PermissionChange';
197 protected $permissionChangesDataType = 'array';
198 public $primaryEventType;
199 protected $renameType = 'Google_Service_Appsactivity_Rename';
200 protected $renameDataType = '';
201 protected $targetType = 'Google_Service_Appsactivity_Target';
202 protected $targetDataType = '';
203 protected $userType = 'Google_Service_Appsactivity_User';
204 protected $userDataType = '';
205
206
207 public function setAdditionalEventTypes($additionalEventTypes)
208 {
209 $this->additionalEventTypes = $additionalEventTypes;
210 }
211 public function getAdditionalEventTypes()
212 {
213 return $this->additionalEventTypes;
214 }
215 public function setEventTimeMillis($eventTimeMillis)
216 {
217 $this->eventTimeMillis = $eventTimeMillis;
218 }
219 public function getEventTimeMillis()
220 {
221 return $this->eventTimeMillis;
222 }
223 public function setFromUserDeletion($fromUserDeletion)
224 {
225 $this->fromUserDeletion = $fromUserDeletion;
226 }
227 public function getFromUserDeletion()
228 {
229 return $this->fromUserDeletion;
230 }
231 public function setMove(Google_Service_Appsactivity_Move $move)
232 {
233 $this->move = $move;
234 }
235 public function getMove()
236 {
237 return $this->move;
238 }
239 public function setPermissionChanges($permissionChanges)
240 {
241 $this->permissionChanges = $permissionChanges;
242 }
243 public function getPermissionChanges()
244 {
245 return $this->permissionChanges;
246 }
247 public function setPrimaryEventType($primaryEventType)
248 {
249 $this->primaryEventType = $primaryEventType;
250 }
251 public function getPrimaryEventType()
252 {
253 return $this->primaryEventType;
254 }
255 public function setRename(Google_Service_Appsactivity_Rename $rename)
256 {
257 $this->rename = $rename;
258 }
259 public function getRename()
260 {
261 return $this->rename;
262 }
263 public function setTarget(Google_Service_Appsactivity_Target $target)
264 {
265 $this->target = $target;
266 }
267 public function getTarget()
268 {
269 return $this->target;
270 }
271 public function setUser(Google_Service_Appsactivity_User $user)
272 {
273 $this->user = $user;
274 }
275 public function getUser()
276 {
277 return $this->user;
278 }
279 }
280
281 class Google_Service_Appsactivity_ListActivitiesResponse extends Google_Collection
282 {
283 protected $collection_key = 'activities';
284 protected $internal_gapi_mappings = array(
285 );
286 protected $activitiesType = 'Google_Service_Appsactivity_Activity';
287 protected $activitiesDataType = 'array';
288 public $nextPageToken;
289
290
291 public function setActivities($activities)
292 {
293 $this->activities = $activities;
294 }
295 public function getActivities()
296 {
297 return $this->activities;
298 }
299 public function setNextPageToken($nextPageToken)
300 {
301 $this->nextPageToken = $nextPageToken;
302 }
303 public function getNextPageToken()
304 {
305 return $this->nextPageToken;
306 }
307 }
308
309 class Google_Service_Appsactivity_Move extends Google_Collection
310 {
311 protected $collection_key = 'removedParents';
312 protected $internal_gapi_mappings = array(
313 );
314 protected $addedParentsType = 'Google_Service_Appsactivity_Parent';
315 protected $addedParentsDataType = 'array';
316 protected $removedParentsType = 'Google_Service_Appsactivity_Parent';
317 protected $removedParentsDataType = 'array';
318
319
320 public function setAddedParents($addedParents)
321 {
322 $this->addedParents = $addedParents;
323 }
324 public function getAddedParents()
325 {
326 return $this->addedParents;
327 }
328 public function setRemovedParents($removedParents)
329 {
330 $this->removedParents = $removedParents;
331 }
332 public function getRemovedParents()
333 {
334 return $this->removedParents;
335 }
336 }
337
338 class Google_Service_Appsactivity_Parent extends Google_Model
339 {
340 protected $internal_gapi_mappings = array(
341 );
342 public $id;
343 public $isRoot;
344 public $title;
345
346
347 public function setId($id)
348 {
349 $this->id = $id;
350 }
351 public function getId()
352 {
353 return $this->id;
354 }
355 public function setIsRoot($isRoot)
356 {
357 $this->isRoot = $isRoot;
358 }
359 public function getIsRoot()
360 {
361 return $this->isRoot;
362 }
363 public function setTitle($title)
364 {
365 $this->title = $title;
366 }
367 public function getTitle()
368 {
369 return $this->title;
370 }
371 }
372
373 class Google_Service_Appsactivity_Permission extends Google_Model
374 {
375 protected $internal_gapi_mappings = array(
376 );
377 public $name;
378 public $permissionId;
379 public $role;
380 public $type;
381 protected $userType = 'Google_Service_Appsactivity_User';
382 protected $userDataType = '';
383 public $withLink;
384
385
386 public function setName($name)
387 {
388 $this->name = $name;
389 }
390 public function getName()
391 {
392 return $this->name;
393 }
394 public function setPermissionId($permissionId)
395 {
396 $this->permissionId = $permissionId;
397 }
398 public function getPermissionId()
399 {
400 return $this->permissionId;
401 }
402 public function setRole($role)
403 {
404 $this->role = $role;
405 }
406 public function getRole()
407 {
408 return $this->role;
409 }
410 public function setType($type)
411 {
412 $this->type = $type;
413 }
414 public function getType()
415 {
416 return $this->type;
417 }
418 public function setUser(Google_Service_Appsactivity_User $user)
419 {
420 $this->user = $user;
421 }
422 public function getUser()
423 {
424 return $this->user;
425 }
426 public function setWithLink($withLink)
427 {
428 $this->withLink = $withLink;
429 }
430 public function getWithLink()
431 {
432 return $this->withLink;
433 }
434 }
435
436 class Google_Service_Appsactivity_PermissionChange extends Google_Collection
437 {
438 protected $collection_key = 'removedPermissions';
439 protected $internal_gapi_mappings = array(
440 );
441 protected $addedPermissionsType = 'Google_Service_Appsactivity_Permission';
442 protected $addedPermissionsDataType = 'array';
443 protected $removedPermissionsType = 'Google_Service_Appsactivity_Permission';
444 protected $removedPermissionsDataType = 'array';
445
446
447 public function setAddedPermissions($addedPermissions)
448 {
449 $this->addedPermissions = $addedPermissions;
450 }
451 public function getAddedPermissions()
452 {
453 return $this->addedPermissions;
454 }
455 public function setRemovedPermissions($removedPermissions)
456 {
457 $this->removedPermissions = $removedPermissions;
458 }
459 public function getRemovedPermissions()
460 {
461 return $this->removedPermissions;
462 }
463 }
464
465 class Google_Service_Appsactivity_Photo extends Google_Model
466 {
467 protected $internal_gapi_mappings = array(
468 );
469 public $url;
470
471
472 public function setUrl($url)
473 {
474 $this->url = $url;
475 }
476 public function getUrl()
477 {
478 return $this->url;
479 }
480 }
481
482 class Google_Service_Appsactivity_Rename extends Google_Model
483 {
484 protected $internal_gapi_mappings = array(
485 );
486 public $newTitle;
487 public $oldTitle;
488
489
490 public function setNewTitle($newTitle)
491 {
492 $this->newTitle = $newTitle;
493 }
494 public function getNewTitle()
495 {
496 return $this->newTitle;
497 }
498 public function setOldTitle($oldTitle)
499 {
500 $this->oldTitle = $oldTitle;
501 }
502 public function getOldTitle()
503 {
504 return $this->oldTitle;
505 }
506 }
507
508 class Google_Service_Appsactivity_Target extends Google_Model
509 {
510 protected $internal_gapi_mappings = array(
511 );
512 public $id;
513 public $mimeType;
514 public $name;
515
516
517 public function setId($id)
518 {
519 $this->id = $id;
520 }
521 public function getId()
522 {
523 return $this->id;
524 }
525 public function setMimeType($mimeType)
526 {
527 $this->mimeType = $mimeType;
528 }
529 public function getMimeType()
530 {
531 return $this->mimeType;
532 }
533 public function setName($name)
534 {
535 $this->name = $name;
536 }
537 public function getName()
538 {
539 return $this->name;
540 }
541 }
542
543 class Google_Service_Appsactivity_User extends Google_Model
544 {
545 protected $internal_gapi_mappings = array(
546 );
547 public $name;
548 protected $photoType = 'Google_Service_Appsactivity_Photo';
549 protected $photoDataType = '';
550
551
552 public function setName($name)
553 {
554 $this->name = $name;
555 }
556 public function getName()
557 {
558 return $this->name;
559 }
560 public function setPhoto(Google_Service_Appsactivity_Photo $photo)
561 {
562 $this->photo = $photo;
563 }
564 public function getPhoto()
565 {
566 return $this->photo;
567 }
568 }
569