晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
|
Server : Apache System : Linux srv.rainic.com 4.18.0-553.47.1.el8_10.x86_64 #1 SMP Wed Apr 2 05:45:37 EDT 2025 x86_64 User : rainic ( 1014) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/stando/public_html/wp-content/plugins/wp-analytify/lib/Google/Service/ |
Upload File : |
<?php
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* Service definition for Appsactivity (v1).
*
* <p>
* Provides a historical view of activity.
* </p>
*
* <p>
* For more information about this service, see the API
* <a href="https://developers.google.com/google-apps/activity/" target="_blank">Documentation</a>
* </p>
*
* @author Google, Inc.
*/
class Analytify_Google_Service_Appsactivity extends Analytify_Google_Service
{
/** View historical activity for Google services. */
const ACTIVITY = "https://www.googleapis.com/auth/activity";
/** View and manage the files and documents in your Google Drive. */
const DRIVE = "https://www.googleapis.com/auth/drive";
/** View metadata for files and documents in your Google Drive. */
const DRIVE_METADATA_READONLY = "https://www.googleapis.com/auth/drive.metadata.readonly";
/** View the files and documents in your Google Drive. */
const DRIVE_READONLY = "https://www.googleapis.com/auth/drive.readonly";
public $activities;
/**
* Constructs the internal representation of the Appsactivity service.
*
* @param Analytify_Google_Client $client
*/
public function __construct(Analytify_Google_Client $client)
{
parent::__construct($client);
$this->servicePath = 'appsactivity/v1/';
$this->version = 'v1';
$this->serviceName = 'appsactivity';
$this->activities = new Analytify_Google_Service_Appsactivity_Activities_Resource(
$this,
$this->serviceName,
'activities',
array(
'methods' => array(
'list' => array(
'path' => 'activities',
'httpMethod' => 'GET',
'parameters' => array(
'drive.ancestorId' => array(
'location' => 'query',
'type' => 'string',
),
'pageSize' => array(
'location' => 'query',
'type' => 'integer',
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
'userId' => array(
'location' => 'query',
'type' => 'string',
),
'groupingStrategy' => array(
'location' => 'query',
'type' => 'string',
),
'drive.fileId' => array(
'location' => 'query',
'type' => 'string',
),
'source' => array(
'location' => 'query',
'type' => 'string',
),
),
),
)
)
);
}
}
/**
* The "activities" collection of methods.
* Typical usage is:
* <code>
* $appsactivityService = new Analytify_Google_Service_Appsactivity(...);
* $activities = $appsactivityService->activities;
* </code>
*/
class Analytify_Google_Service_Appsactivity_Activities_Resource extends Analytify_Google_Service_Resource
{
/**
* Returns a list of activities visible to the current logged in user. Visible
* activities are determined by the visiblity settings of the object that was
* acted on, e.g. Drive files a user can see. An activity is a record of past
* events. Multiple events may be merged if they are similar. A request is
* scoped to activities from a given Google service using the source parameter.
* (activities.listActivities)
*
* @param array $optParams Optional parameters.
*
* @opt_param string drive.ancestorId
* Identifies the Drive folder containing the items for which to return activities.
* @opt_param int pageSize
* The maximum number of events to return on a page. The response includes a continuation token if
* there are more events.
* @opt_param string pageToken
* A token to retrieve a specific page of results.
* @opt_param string userId
* Indicates the user to return activity for. Use the special value me to indicate the currently
* authenticated user.
* @opt_param string groupingStrategy
* Indicates the strategy to use when grouping singleEvents items in the associated combinedEvent
* object.
* @opt_param string drive.fileId
* Identifies the Drive item to return activities for.
* @opt_param string source
* The Google service from which to return activities. Possible values of source are:
-
* drive.google.com
* @return Analytify_Google_Service_Appsactivity_ListActivitiesResponse
*/
public function listActivities($optParams = array())
{
$params = array();
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Analytify_Google_Service_Appsactivity_ListActivitiesResponse");
}
}
class Analytify_Google_Service_Appsactivity_Activity extends Analytify_Google_Collection
{
protected $combinedEventType = 'Analytify_Google_Service_Appsactivity_Event';
protected $combinedEventDataType = '';
protected $singleEventsType = 'Analytify_Google_Service_Appsactivity_Event';
protected $singleEventsDataType = 'array';
public function setCombinedEvent(Analytify_Google_Service_Appsactivity_Event $combinedEvent)
{
$this->combinedEvent = $combinedEvent;
}
public function getCombinedEvent()
{
return $this->combinedEvent;
}
public function setSingleEvents($singleEvents)
{
$this->singleEvents = $singleEvents;
}
public function getSingleEvents()
{
return $this->singleEvents;
}
}
class Analytify_Google_Service_Appsactivity_Event extends Analytify_Google_Collection
{
public $additionalEventTypes;
public $eventTimeMillis;
public $fromUserDeletion;
protected $moveType = 'Analytify_Google_Service_Appsactivity_Move';
protected $moveDataType = '';
protected $permissionChangesType = 'Analytify_Google_Service_Appsactivity_PermissionChange';
protected $permissionChangesDataType = 'array';
public $primaryEventType;
protected $renameType = 'Analytify_Google_Service_Appsactivity_Rename';
protected $renameDataType = '';
protected $targetType = 'Analytify_Google_Service_Appsactivity_Target';
protected $targetDataType = '';
protected $userType = 'Analytify_Google_Service_Appsactivity_User';
protected $userDataType = '';
public function setAdditionalEventTypes($additionalEventTypes)
{
$this->additionalEventTypes = $additionalEventTypes;
}
public function getAdditionalEventTypes()
{
return $this->additionalEventTypes;
}
public function setEventTimeMillis($eventTimeMillis)
{
$this->eventTimeMillis = $eventTimeMillis;
}
public function getEventTimeMillis()
{
return $this->eventTimeMillis;
}
public function setFromUserDeletion($fromUserDeletion)
{
$this->fromUserDeletion = $fromUserDeletion;
}
public function getFromUserDeletion()
{
return $this->fromUserDeletion;
}
public function setMove(Analytify_Google_Service_Appsactivity_Move $move)
{
$this->move = $move;
}
public function getMove()
{
return $this->move;
}
public function setPermissionChanges($permissionChanges)
{
$this->permissionChanges = $permissionChanges;
}
public function getPermissionChanges()
{
return $this->permissionChanges;
}
public function setPrimaryEventType($primaryEventType)
{
$this->primaryEventType = $primaryEventType;
}
public function getPrimaryEventType()
{
return $this->primaryEventType;
}
public function setRename(Analytify_Google_Service_Appsactivity_Rename $rename)
{
$this->rename = $rename;
}
public function getRename()
{
return $this->rename;
}
public function setTarget(Analytify_Google_Service_Appsactivity_Target $target)
{
$this->target = $target;
}
public function getTarget()
{
return $this->target;
}
public function setUser(Analytify_Google_Service_Appsactivity_User $user)
{
$this->user = $user;
}
public function getUser()
{
return $this->user;
}
}
class Analytify_Google_Service_Appsactivity_ListActivitiesResponse extends Analytify_Google_Collection
{
protected $activitiesType = 'Analytify_Google_Service_Appsactivity_Activity';
protected $activitiesDataType = 'array';
public $nextPageToken;
public function setActivities($activities)
{
$this->activities = $activities;
}
public function getActivities()
{
return $this->activities;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
class Analytify_Google_Service_Appsactivity_Move extends Analytify_Google_Collection
{
protected $addedParentsType = 'Analytify_Google_Service_Appsactivity_Parent';
protected $addedParentsDataType = 'array';
protected $removedParentsType = 'Analytify_Google_Service_Appsactivity_Parent';
protected $removedParentsDataType = 'array';
public function setAddedParents($addedParents)
{
$this->addedParents = $addedParents;
}
public function getAddedParents()
{
return $this->addedParents;
}
public function setRemovedParents($removedParents)
{
$this->removedParents = $removedParents;
}
public function getRemovedParents()
{
return $this->removedParents;
}
}
class Analytify_Google_Service_Appsactivity_Parent extends Analytify_Google_Model
{
public $id;
public $isRoot;
public $title;
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setIsRoot($isRoot)
{
$this->isRoot = $isRoot;
}
public function getIsRoot()
{
return $this->isRoot;
}
public function setTitle($title)
{
$this->title = $title;
}
public function getTitle()
{
return $this->title;
}
}
class Analytify_Google_Service_Appsactivity_Permission extends Analytify_Google_Model
{
public $name;
public $permissionId;
public $role;
public $type;
protected $userType = 'Analytify_Google_Service_Appsactivity_User';
protected $userDataType = '';
public $withLink;
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setPermissionId($permissionId)
{
$this->permissionId = $permissionId;
}
public function getPermissionId()
{
return $this->permissionId;
}
public function setRole($role)
{
$this->role = $role;
}
public function getRole()
{
return $this->role;
}
public function setType($type)
{
$this->type = $type;
}
public function getType()
{
return $this->type;
}
public function setUser(Analytify_Google_Service_Appsactivity_User $user)
{
$this->user = $user;
}
public function getUser()
{
return $this->user;
}
public function setWithLink($withLink)
{
$this->withLink = $withLink;
}
public function getWithLink()
{
return $this->withLink;
}
}
class Analytify_Google_Service_Appsactivity_PermissionChange extends Analytify_Google_Collection
{
protected $addedPermissionsType = 'Analytify_Google_Service_Appsactivity_Permission';
protected $addedPermissionsDataType = 'array';
protected $removedPermissionsType = 'Analytify_Google_Service_Appsactivity_Permission';
protected $removedPermissionsDataType = 'array';
public function setAddedPermissions($addedPermissions)
{
$this->addedPermissions = $addedPermissions;
}
public function getAddedPermissions()
{
return $this->addedPermissions;
}
public function setRemovedPermissions($removedPermissions)
{
$this->removedPermissions = $removedPermissions;
}
public function getRemovedPermissions()
{
return $this->removedPermissions;
}
}
class Analytify_Google_Service_Appsactivity_Photo extends Analytify_Google_Model
{
public $url;
public function setUrl($url)
{
$this->url = $url;
}
public function getUrl()
{
return $this->url;
}
}
class Analytify_Google_Service_Appsactivity_Rename extends Analytify_Google_Model
{
public $newTitle;
public $oldTitle;
public function setNewTitle($newTitle)
{
$this->newTitle = $newTitle;
}
public function getNewTitle()
{
return $this->newTitle;
}
public function setOldTitle($oldTitle)
{
$this->oldTitle = $oldTitle;
}
public function getOldTitle()
{
return $this->oldTitle;
}
}
class Analytify_Google_Service_Appsactivity_Target extends Analytify_Google_Model
{
public $id;
public $mimeType;
public $name;
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
public function getMimeType()
{
return $this->mimeType;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
}
class Analytify_Google_Service_Appsactivity_User extends Analytify_Google_Model
{
public $name;
protected $photoType = 'Analytify_Google_Service_Appsactivity_Photo';
protected $photoDataType = '';
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setPhoto(Analytify_Google_Service_Appsactivity_Photo $photo)
{
$this->photo = $photo;
}
public function getPhoto()
{
return $this->photo;
}
}