[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/google/Google/Service/ -> Appsactivity.php (source)

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


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1