Add new files
This commit is contained in:
parent
49bec94959
commit
c23bc91198
120
apps/files_external/3rdparty/google-api-php-client/src/Google/Auth/AppIdentity.php
vendored
Normal file
120
apps/files_external/3rdparty/google-api-php-client/src/Google/Auth/AppIdentity.php
vendored
Normal file
|
@ -0,0 +1,120 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* WARNING - this class depends on the Google App Engine PHP library
|
||||
* which is 5.3 and above only, so if you include this in a PHP 5.2
|
||||
* setup or one without 5.3 things will blow up.
|
||||
*/
|
||||
use google\appengine\api\app_identity\AppIdentityService;
|
||||
|
||||
if (!class_exists('Google_Client')) {
|
||||
require_once dirname(__FILE__) . '/../autoload.php';
|
||||
}
|
||||
|
||||
/**
|
||||
* Authentication via the Google App Engine App Identity service.
|
||||
*/
|
||||
class Google_Auth_AppIdentity extends Google_Auth_Abstract
|
||||
{
|
||||
const CACHE_PREFIX = "Google_Auth_AppIdentity::";
|
||||
private $client;
|
||||
private $token = false;
|
||||
private $tokenScopes = false;
|
||||
|
||||
public function __construct(Google_Client $client, $config = null)
|
||||
{
|
||||
$this->client = $client;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve an access token for the scopes supplied.
|
||||
*/
|
||||
public function authenticateForScope($scopes)
|
||||
{
|
||||
if ($this->token && $this->tokenScopes == $scopes) {
|
||||
return $this->token;
|
||||
}
|
||||
|
||||
$cacheKey = self::CACHE_PREFIX;
|
||||
if (is_string($scopes)) {
|
||||
$cacheKey .= $scopes;
|
||||
} else if (is_array($scopes)) {
|
||||
$cacheKey .= implode(":", $scopes);
|
||||
}
|
||||
|
||||
$this->token = $this->client->getCache()->get($cacheKey);
|
||||
if (!$this->token) {
|
||||
$this->retrieveToken($scopes, $cacheKey);
|
||||
} else if ($this->token['expiration_time'] < time()) {
|
||||
$this->client->getCache()->delete($cacheKey);
|
||||
$this->retrieveToken($scopes, $cacheKey);
|
||||
}
|
||||
|
||||
$this->tokenScopes = $scopes;
|
||||
return $this->token;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve a new access token and store it in cache
|
||||
* @param mixed $scopes
|
||||
* @param string $cacheKey
|
||||
*/
|
||||
private function retrieveToken($scopes, $cacheKey)
|
||||
{
|
||||
$this->token = AppIdentityService::getAccessToken($scopes);
|
||||
if ($this->token) {
|
||||
$this->client->getCache()->set(
|
||||
$cacheKey,
|
||||
$this->token
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform an authenticated / signed apiHttpRequest.
|
||||
* This function takes the apiHttpRequest, calls apiAuth->sign on it
|
||||
* (which can modify the request in what ever way fits the auth mechanism)
|
||||
* and then calls apiCurlIO::makeRequest on the signed request
|
||||
*
|
||||
* @param Google_Http_Request $request
|
||||
* @return Google_Http_Request The resulting HTTP response including the
|
||||
* responseHttpCode, responseHeaders and responseBody.
|
||||
*/
|
||||
public function authenticatedRequest(Google_Http_Request $request)
|
||||
{
|
||||
$request = $this->sign($request);
|
||||
return $this->client->getIo()->makeRequest($request);
|
||||
}
|
||||
|
||||
public function sign(Google_Http_Request $request)
|
||||
{
|
||||
if (!$this->token) {
|
||||
// No token, so nothing to do.
|
||||
return $request;
|
||||
}
|
||||
|
||||
$this->client->getLogger()->debug('App Identity authentication');
|
||||
|
||||
// Add the OAuth2 header to the request
|
||||
$request->setRequestHeaders(
|
||||
array('Authorization' => 'Bearer ' . $this->token['access_token'])
|
||||
);
|
||||
|
||||
return $request;
|
||||
}
|
||||
}
|
146
apps/files_external/3rdparty/google-api-php-client/src/Google/Auth/ComputeEngine.php
vendored
Normal file
146
apps/files_external/3rdparty/google-api-php-client/src/Google/Auth/ComputeEngine.php
vendored
Normal file
|
@ -0,0 +1,146 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 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.
|
||||
*/
|
||||
|
||||
if (!class_exists('Google_Client')) {
|
||||
require_once dirname(__FILE__) . '/../autoload.php';
|
||||
}
|
||||
|
||||
/**
|
||||
* Authentication via built-in Compute Engine service accounts.
|
||||
* The instance must be pre-configured with a service account
|
||||
* and the appropriate scopes.
|
||||
* @author Jonathan Parrott <jon.wayne.parrott@gmail.com>
|
||||
*/
|
||||
class Google_Auth_ComputeEngine extends Google_Auth_Abstract
|
||||
{
|
||||
const METADATA_AUTH_URL =
|
||||
'http://metadata/computeMetadata/v1/instance/service-accounts/default/token';
|
||||
private $client;
|
||||
private $token;
|
||||
|
||||
public function __construct(Google_Client $client, $config = null)
|
||||
{
|
||||
$this->client = $client;
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform an authenticated / signed apiHttpRequest.
|
||||
* This function takes the apiHttpRequest, calls apiAuth->sign on it
|
||||
* (which can modify the request in what ever way fits the auth mechanism)
|
||||
* and then calls apiCurlIO::makeRequest on the signed request
|
||||
*
|
||||
* @param Google_Http_Request $request
|
||||
* @return Google_Http_Request The resulting HTTP response including the
|
||||
* responseHttpCode, responseHeaders and responseBody.
|
||||
*/
|
||||
public function authenticatedRequest(Google_Http_Request $request)
|
||||
{
|
||||
$request = $this->sign($request);
|
||||
return $this->client->getIo()->makeRequest($request);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $token
|
||||
* @throws Google_Auth_Exception
|
||||
*/
|
||||
public function setAccessToken($token)
|
||||
{
|
||||
$token = json_decode($token, true);
|
||||
if ($token == null) {
|
||||
throw new Google_Auth_Exception('Could not json decode the token');
|
||||
}
|
||||
if (! isset($token['access_token'])) {
|
||||
throw new Google_Auth_Exception("Invalid token format");
|
||||
}
|
||||
$token['created'] = time();
|
||||
$this->token = $token;
|
||||
}
|
||||
|
||||
public function getAccessToken()
|
||||
{
|
||||
return json_encode($this->token);
|
||||
}
|
||||
|
||||
/**
|
||||
* Acquires a new access token from the compute engine metadata server.
|
||||
* @throws Google_Auth_Exception
|
||||
*/
|
||||
public function acquireAccessToken()
|
||||
{
|
||||
$request = new Google_Http_Request(
|
||||
self::METADATA_AUTH_URL,
|
||||
'GET',
|
||||
array(
|
||||
'Metadata-Flavor' => 'Google'
|
||||
)
|
||||
);
|
||||
$request->disableGzip();
|
||||
$response = $this->client->getIo()->makeRequest($request);
|
||||
|
||||
if ($response->getResponseHttpCode() == 200) {
|
||||
$this->setAccessToken($response->getResponseBody());
|
||||
$this->token['created'] = time();
|
||||
return $this->getAccessToken();
|
||||
} else {
|
||||
throw new Google_Auth_Exception(
|
||||
sprintf(
|
||||
"Error fetching service account access token, message: '%s'",
|
||||
$response->getResponseBody()
|
||||
),
|
||||
$response->getResponseHttpCode()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Include an accessToken in a given apiHttpRequest.
|
||||
* @param Google_Http_Request $request
|
||||
* @return Google_Http_Request
|
||||
* @throws Google_Auth_Exception
|
||||
*/
|
||||
public function sign(Google_Http_Request $request)
|
||||
{
|
||||
if ($this->isAccessTokenExpired()) {
|
||||
$this->acquireAccessToken();
|
||||
}
|
||||
|
||||
$this->client->getLogger()->debug('Compute engine service account authentication');
|
||||
|
||||
$request->setRequestHeaders(
|
||||
array('Authorization' => 'Bearer ' . $this->token['access_token'])
|
||||
);
|
||||
|
||||
return $request;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns if the access_token is expired.
|
||||
* @return bool Returns True if the access_token is expired.
|
||||
*/
|
||||
public function isAccessTokenExpired()
|
||||
{
|
||||
if (!$this->token || !isset($this->token['created'])) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// If the token is set to expire in the next 30 seconds.
|
||||
$expired = ($this->token['created']
|
||||
+ ($this->token['expires_in'] - 30)) < time();
|
||||
|
||||
return $expired;
|
||||
}
|
||||
}
|
57
apps/files_external/3rdparty/google-api-php-client/src/Google/Cache/Null.php
vendored
Normal file
57
apps/files_external/3rdparty/google-api-php-client/src/Google/Cache/Null.php
vendored
Normal file
|
@ -0,0 +1,57 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 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.
|
||||
*/
|
||||
|
||||
if (!class_exists('Google_Client')) {
|
||||
require_once dirname(__FILE__) . '/../autoload.php';
|
||||
}
|
||||
|
||||
/**
|
||||
* A blank storage class, for cases where caching is not
|
||||
* required.
|
||||
*/
|
||||
class Google_Cache_Null extends Google_Cache_Abstract
|
||||
{
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function get($key, $expiration = false)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function set($key, $value)
|
||||
{
|
||||
// Nop.
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
* @param String $key
|
||||
*/
|
||||
public function delete($key)
|
||||
{
|
||||
// Nop.
|
||||
}
|
||||
}
|
408
apps/files_external/3rdparty/google-api-php-client/src/Google/Logger/Abstract.php
vendored
Normal file
408
apps/files_external/3rdparty/google-api-php-client/src/Google/Logger/Abstract.php
vendored
Normal file
|
@ -0,0 +1,408 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 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.
|
||||
*/
|
||||
|
||||
if (!class_exists('Google_Client')) {
|
||||
require_once dirname(__FILE__) . '/../autoload.php';
|
||||
}
|
||||
|
||||
/**
|
||||
* Abstract logging class based on the PSR-3 standard.
|
||||
*
|
||||
* NOTE: We don't implement `Psr\Log\LoggerInterface` because we need to
|
||||
* maintain PHP 5.2 support.
|
||||
*
|
||||
* @see https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md
|
||||
*/
|
||||
abstract class Google_Logger_Abstract
|
||||
{
|
||||
/**
|
||||
* Default log format
|
||||
*/
|
||||
const DEFAULT_LOG_FORMAT = "[%datetime%] %level%: %message% %context%\n";
|
||||
/**
|
||||
* Default date format
|
||||
*
|
||||
* Example: 16/Nov/2014:03:26:16 -0500
|
||||
*/
|
||||
const DEFAULT_DATE_FORMAT = 'd/M/Y:H:i:s O';
|
||||
|
||||
/**
|
||||
* System is unusable
|
||||
*/
|
||||
const EMERGENCY = 'emergency';
|
||||
/**
|
||||
* Action must be taken immediately
|
||||
*
|
||||
* Example: Entire website down, database unavailable, etc. This should
|
||||
* trigger the SMS alerts and wake you up.
|
||||
*/
|
||||
const ALERT = 'alert';
|
||||
/**
|
||||
* Critical conditions
|
||||
*
|
||||
* Example: Application component unavailable, unexpected exception.
|
||||
*/
|
||||
const CRITICAL = 'critical';
|
||||
/**
|
||||
* Runtime errors that do not require immediate action but should typically
|
||||
* be logged and monitored.
|
||||
*/
|
||||
const ERROR = 'error';
|
||||
/**
|
||||
* Exceptional occurrences that are not errors.
|
||||
*
|
||||
* Example: Use of deprecated APIs, poor use of an API, undesirable things
|
||||
* that are not necessarily wrong.
|
||||
*/
|
||||
const WARNING = 'warning';
|
||||
/**
|
||||
* Normal but significant events.
|
||||
*/
|
||||
const NOTICE = 'notice';
|
||||
/**
|
||||
* Interesting events.
|
||||
*
|
||||
* Example: User logs in, SQL logs.
|
||||
*/
|
||||
const INFO = 'info';
|
||||
/**
|
||||
* Detailed debug information.
|
||||
*/
|
||||
const DEBUG = 'debug';
|
||||
|
||||
/**
|
||||
* @var array $levels Logging levels
|
||||
*/
|
||||
protected static $levels = array(
|
||||
self::EMERGENCY => 600,
|
||||
self::ALERT => 550,
|
||||
self::CRITICAL => 500,
|
||||
self::ERROR => 400,
|
||||
self::WARNING => 300,
|
||||
self::NOTICE => 250,
|
||||
self::INFO => 200,
|
||||
self::DEBUG => 100,
|
||||
);
|
||||
|
||||
/**
|
||||
* @var integer $level The minimum logging level
|
||||
*/
|
||||
protected $level = self::DEBUG;
|
||||
|
||||
/**
|
||||
* @var string $logFormat The current log format
|
||||
*/
|
||||
protected $logFormat = self::DEFAULT_LOG_FORMAT;
|
||||
/**
|
||||
* @var string $dateFormat The current date format
|
||||
*/
|
||||
protected $dateFormat = self::DEFAULT_DATE_FORMAT;
|
||||
|
||||
/**
|
||||
* @var boolean $allowNewLines If newlines are allowed
|
||||
*/
|
||||
protected $allowNewLines = false;
|
||||
|
||||
/**
|
||||
* @param Google_Client $client The current Google client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
$this->setLevel(
|
||||
$client->getClassConfig('Google_Logger_Abstract', 'level')
|
||||
);
|
||||
|
||||
$format = $client->getClassConfig('Google_Logger_Abstract', 'log_format');
|
||||
$this->logFormat = $format ? $format : self::DEFAULT_LOG_FORMAT;
|
||||
|
||||
$format = $client->getClassConfig('Google_Logger_Abstract', 'date_format');
|
||||
$this->dateFormat = $format ? $format : self::DEFAULT_DATE_FORMAT;
|
||||
|
||||
$this->allowNewLines = (bool) $client->getClassConfig(
|
||||
'Google_Logger_Abstract',
|
||||
'allow_newlines'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the minimum logging level that this logger handles.
|
||||
*
|
||||
* @param integer $level
|
||||
*/
|
||||
public function setLevel($level)
|
||||
{
|
||||
$this->level = $this->normalizeLevel($level);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the logger should handle messages at the provided level.
|
||||
*
|
||||
* @param integer $level
|
||||
* @return boolean
|
||||
*/
|
||||
public function shouldHandle($level)
|
||||
{
|
||||
return $this->normalizeLevel($level) >= $this->level;
|
||||
}
|
||||
|
||||
/**
|
||||
* System is unusable.
|
||||
*
|
||||
* @param string $message The log message
|
||||
* @param array $context The log context
|
||||
*/
|
||||
public function emergency($message, array $context = array())
|
||||
{
|
||||
$this->log(self::EMERGENCY, $message, $context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Action must be taken immediately.
|
||||
*
|
||||
* Example: Entire website down, database unavailable, etc. This should
|
||||
* trigger the SMS alerts and wake you up.
|
||||
*
|
||||
* @param string $message The log message
|
||||
* @param array $context The log context
|
||||
*/
|
||||
public function alert($message, array $context = array())
|
||||
{
|
||||
$this->log(self::ALERT, $message, $context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Critical conditions.
|
||||
*
|
||||
* Example: Application component unavailable, unexpected exception.
|
||||
*
|
||||
* @param string $message The log message
|
||||
* @param array $context The log context
|
||||
*/
|
||||
public function critical($message, array $context = array())
|
||||
{
|
||||
$this->log(self::CRITICAL, $message, $context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Runtime errors that do not require immediate action but should typically
|
||||
* be logged and monitored.
|
||||
*
|
||||
* @param string $message The log message
|
||||
* @param array $context The log context
|
||||
*/
|
||||
public function error($message, array $context = array())
|
||||
{
|
||||
$this->log(self::ERROR, $message, $context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Exceptional occurrences that are not errors.
|
||||
*
|
||||
* Example: Use of deprecated APIs, poor use of an API, undesirable things
|
||||
* that are not necessarily wrong.
|
||||
*
|
||||
* @param string $message The log message
|
||||
* @param array $context The log context
|
||||
*/
|
||||
public function warning($message, array $context = array())
|
||||
{
|
||||
$this->log(self::WARNING, $message, $context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Normal but significant events.
|
||||
*
|
||||
* @param string $message The log message
|
||||
* @param array $context The log context
|
||||
*/
|
||||
public function notice($message, array $context = array())
|
||||
{
|
||||
$this->log(self::NOTICE, $message, $context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Interesting events.
|
||||
*
|
||||
* Example: User logs in, SQL logs.
|
||||
*
|
||||
* @param string $message The log message
|
||||
* @param array $context The log context
|
||||
*/
|
||||
public function info($message, array $context = array())
|
||||
{
|
||||
$this->log(self::INFO, $message, $context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Detailed debug information.
|
||||
*
|
||||
* @param string $message The log message
|
||||
* @param array $context The log context
|
||||
*/
|
||||
public function debug($message, array $context = array())
|
||||
{
|
||||
$this->log(self::DEBUG, $message, $context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Logs with an arbitrary level.
|
||||
*
|
||||
* @param mixed $level The log level
|
||||
* @param string $message The log message
|
||||
* @param array $context The log context
|
||||
*/
|
||||
public function log($level, $message, array $context = array())
|
||||
{
|
||||
if (!$this->shouldHandle($level)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$levelName = is_int($level) ? array_search($level, self::$levels) : $level;
|
||||
$message = $this->interpolate(
|
||||
array(
|
||||
'message' => $message,
|
||||
'context' => $context,
|
||||
'level' => strtoupper($levelName),
|
||||
'datetime' => new DateTime(),
|
||||
)
|
||||
);
|
||||
|
||||
$this->write($message);
|
||||
}
|
||||
|
||||
/**
|
||||
* Interpolates log variables into the defined log format.
|
||||
*
|
||||
* @param array $variables The log variables.
|
||||
* @return string
|
||||
*/
|
||||
protected function interpolate(array $variables = array())
|
||||
{
|
||||
$template = $this->logFormat;
|
||||
|
||||
if (!$variables['context']) {
|
||||
$template = str_replace('%context%', '', $template);
|
||||
unset($variables['context']);
|
||||
} else {
|
||||
$this->reverseJsonInContext($variables['context']);
|
||||
}
|
||||
|
||||
foreach ($variables as $key => $value) {
|
||||
if (strpos($template, '%'. $key .'%') !== false) {
|
||||
$template = str_replace(
|
||||
'%' . $key . '%',
|
||||
$this->export($value),
|
||||
$template
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
return $template;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverses JSON encoded PHP arrays and objects so that they log better.
|
||||
*
|
||||
* @param array $context The log context
|
||||
*/
|
||||
protected function reverseJsonInContext(array &$context)
|
||||
{
|
||||
if (!$context) {
|
||||
return;
|
||||
}
|
||||
|
||||
foreach ($context as $key => $val) {
|
||||
if (!$val || !is_string($val) || !($val[0] == '{' || $val[0] == '[')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$json = @json_decode($val);
|
||||
if (is_object($json) || is_array($json)) {
|
||||
$context[$key] = $json;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Exports a PHP value for logging to a string.
|
||||
*
|
||||
* @param mixed $value The value to
|
||||
*/
|
||||
protected function export($value)
|
||||
{
|
||||
if (is_string($value)) {
|
||||
if ($this->allowNewLines) {
|
||||
return $value;
|
||||
}
|
||||
|
||||
return preg_replace('/[\r\n]+/', ' ', $value);
|
||||
}
|
||||
|
||||
if (is_resource($value)) {
|
||||
return sprintf(
|
||||
'resource(%d) of type (%s)',
|
||||
$value,
|
||||
get_resource_type($value)
|
||||
);
|
||||
}
|
||||
|
||||
if ($value instanceof DateTime) {
|
||||
return $value->format($this->dateFormat);
|
||||
}
|
||||
|
||||
if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
|
||||
$options = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE;
|
||||
|
||||
if ($this->allowNewLines) {
|
||||
$options |= JSON_PRETTY_PRINT;
|
||||
}
|
||||
|
||||
return @json_encode($value, $options);
|
||||
}
|
||||
|
||||
return str_replace('\\/', '/', @json_encode($value));
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts a given log level to the integer form.
|
||||
*
|
||||
* @param mixed $level The logging level
|
||||
* @return integer $level The normalized level
|
||||
* @throws Google_Logger_Exception If $level is invalid
|
||||
*/
|
||||
protected function normalizeLevel($level)
|
||||
{
|
||||
if (is_int($level) && array_search($level, self::$levels) !== false) {
|
||||
return $level;
|
||||
}
|
||||
|
||||
if (is_string($level) && isset(self::$levels[$level])) {
|
||||
return self::$levels[$level];
|
||||
}
|
||||
|
||||
throw new Google_Logger_Exception(
|
||||
sprintf("Unknown LogLevel: '%s'", $level)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Writes a message to the current log implementation.
|
||||
*
|
||||
* @param string $message The message
|
||||
*/
|
||||
abstract protected function write($message);
|
||||
}
|
24
apps/files_external/3rdparty/google-api-php-client/src/Google/Logger/Exception.php
vendored
Normal file
24
apps/files_external/3rdparty/google-api-php-client/src/Google/Logger/Exception.php
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 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.
|
||||
*/
|
||||
|
||||
if (!class_exists('Google_Client')) {
|
||||
require_once dirname(__FILE__) . '/../autoload.php';
|
||||
}
|
||||
|
||||
class Google_Logger_Exception extends Google_Exception
|
||||
{
|
||||
}
|
158
apps/files_external/3rdparty/google-api-php-client/src/Google/Logger/File.php
vendored
Normal file
158
apps/files_external/3rdparty/google-api-php-client/src/Google/Logger/File.php
vendored
Normal file
|
@ -0,0 +1,158 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 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.
|
||||
*/
|
||||
|
||||
if (!class_exists('Google_Client')) {
|
||||
require_once dirname(__FILE__) . '/../autoload.php';
|
||||
}
|
||||
|
||||
/**
|
||||
* File logging class based on the PSR-3 standard.
|
||||
*
|
||||
* This logger writes to a PHP stream resource.
|
||||
*/
|
||||
class Google_Logger_File extends Google_Logger_Abstract
|
||||
{
|
||||
/**
|
||||
* @var string|resource $file Where logs are written
|
||||
*/
|
||||
private $file;
|
||||
/**
|
||||
* @var integer $mode The mode to use if the log file needs to be created
|
||||
*/
|
||||
private $mode = 0640;
|
||||
/**
|
||||
* @var boolean $lock If a lock should be attempted before writing to the log
|
||||
*/
|
||||
private $lock = false;
|
||||
|
||||
/**
|
||||
* @var integer $trappedErrorNumber Trapped error number
|
||||
*/
|
||||
private $trappedErrorNumber;
|
||||
/**
|
||||
* @var string $trappedErrorString Trapped error string
|
||||
*/
|
||||
private $trappedErrorString;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
|
||||
$file = $client->getClassConfig('Google_Logger_File', 'file');
|
||||
if (!is_string($file) && !is_resource($file)) {
|
||||
throw new Google_Logger_Exception(
|
||||
'File logger requires a filename or a valid file pointer'
|
||||
);
|
||||
}
|
||||
|
||||
$mode = $client->getClassConfig('Google_Logger_File', 'mode');
|
||||
if (!$mode) {
|
||||
$this->mode = $mode;
|
||||
}
|
||||
|
||||
$this->lock = (bool) $client->getClassConfig('Google_Logger_File', 'lock');
|
||||
$this->file = $file;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function write($message)
|
||||
{
|
||||
if (is_string($this->file)) {
|
||||
$this->open();
|
||||
} elseif (!is_resource($this->file)) {
|
||||
throw new Google_Logger_Exception('File pointer is no longer available');
|
||||
}
|
||||
|
||||
if ($this->lock) {
|
||||
flock($this->file, LOCK_EX);
|
||||
}
|
||||
|
||||
fwrite($this->file, (string) $message);
|
||||
|
||||
if ($this->lock) {
|
||||
flock($this->file, LOCK_UN);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens the log for writing.
|
||||
*
|
||||
* @return resource
|
||||
*/
|
||||
private function open()
|
||||
{
|
||||
// Used for trapping `fopen()` errors.
|
||||
$this->trappedErrorNumber = null;
|
||||
$this->trappedErrorString = null;
|
||||
|
||||
$old = set_error_handler(array($this, 'trapError'));
|
||||
|
||||
$needsChmod = !file_exists($this->file);
|
||||
$fh = fopen($this->file, 'a');
|
||||
|
||||
restore_error_handler();
|
||||
|
||||
// Handles trapped `fopen()` errors.
|
||||
if ($this->trappedErrorNumber) {
|
||||
throw new Google_Logger_Exception(
|
||||
sprintf(
|
||||
"Logger Error: '%s'",
|
||||
$this->trappedErrorString
|
||||
),
|
||||
$this->trappedErrorNumber
|
||||
);
|
||||
}
|
||||
|
||||
if ($needsChmod) {
|
||||
@chmod($this->file, $this->mode & ~umask());
|
||||
}
|
||||
|
||||
return $this->file = $fh;
|
||||
}
|
||||
|
||||
/**
|
||||
* Closes the log stream resource.
|
||||
*/
|
||||
private function close()
|
||||
{
|
||||
if (is_resource($this->file)) {
|
||||
fclose($this->file);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Traps `fopen()` errors.
|
||||
*
|
||||
* @param integer $errno The error number
|
||||
* @param string $errstr The error string
|
||||
*/
|
||||
private function trapError($errno, $errstr)
|
||||
{
|
||||
$this->trappedErrorNumber = $errno;
|
||||
$this->trappedErrorString = $errstr;
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
$this->close();
|
||||
}
|
||||
}
|
43
apps/files_external/3rdparty/google-api-php-client/src/Google/Logger/Null.php
vendored
Normal file
43
apps/files_external/3rdparty/google-api-php-client/src/Google/Logger/Null.php
vendored
Normal file
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 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.
|
||||
*/
|
||||
|
||||
if (!class_exists('Google_Client')) {
|
||||
require_once dirname(__FILE__) . '/../autoload.php';
|
||||
}
|
||||
|
||||
/**
|
||||
* Null logger based on the PSR-3 standard.
|
||||
*
|
||||
* This logger simply discards all messages.
|
||||
*/
|
||||
class Google_Logger_Null extends Google_Logger_Abstract
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function shouldHandle($level)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function write($message, array $context = array())
|
||||
{
|
||||
}
|
||||
}
|
93
apps/files_external/3rdparty/google-api-php-client/src/Google/Logger/Psr.php
vendored
Normal file
93
apps/files_external/3rdparty/google-api-php-client/src/Google/Logger/Psr.php
vendored
Normal file
|
@ -0,0 +1,93 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 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.
|
||||
*/
|
||||
|
||||
if (!class_exists('Google_Client')) {
|
||||
require_once dirname(__FILE__) . '/../autoload.php';
|
||||
}
|
||||
|
||||
/**
|
||||
* Psr logging class based on the PSR-3 standard.
|
||||
*
|
||||
* This logger will delegate all logging to a PSR-3 compatible logger specified
|
||||
* with the `Google_Logger_Psr::setLogger()` method.
|
||||
*/
|
||||
class Google_Logger_Psr extends Google_Logger_Abstract
|
||||
{
|
||||
/**
|
||||
* @param Psr\Log\LoggerInterface $logger The PSR-3 logger
|
||||
*/
|
||||
private $logger;
|
||||
|
||||
/**
|
||||
* @param Google_Client $client The current Google client
|
||||
* @param Psr\Log\LoggerInterface $logger PSR-3 logger where logging will be delegated.
|
||||
*/
|
||||
public function __construct(Google_Client $client, /*Psr\Log\LoggerInterface*/ $logger = null)
|
||||
{
|
||||
parent::__construct($client);
|
||||
|
||||
if ($logger) {
|
||||
$this->setLogger($logger);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the PSR-3 logger where logging will be delegated.
|
||||
*
|
||||
* NOTE: The `$logger` should technically implement
|
||||
* `Psr\Log\LoggerInterface`, but we don't explicitly require this so that
|
||||
* we can be compatible with PHP 5.2.
|
||||
*
|
||||
* @param Psr\Log\LoggerInterface $logger The PSR-3 logger
|
||||
*/
|
||||
public function setLogger(/*Psr\Log\LoggerInterface*/ $logger)
|
||||
{
|
||||
$this->logger = $logger;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function shouldHandle($level)
|
||||
{
|
||||
return isset($this->logger) && parent::shouldHandle($level);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function log($level, $message, array $context = array())
|
||||
{
|
||||
if (!$this->shouldHandle($level)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($context) {
|
||||
$this->reverseJsonInContext($context);
|
||||
}
|
||||
|
||||
$levelName = is_int($level) ? array_search($level, self::$levels) : $level;
|
||||
$this->logger->log($levelName, $message, $context);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function write($message, array $context = array())
|
||||
{
|
||||
}
|
||||
}
|
6646
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php
vendored
Normal file
6646
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1713
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeSeller.php
vendored
Normal file
1713
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeSeller.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3596
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php
vendored
Normal file
3596
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2166
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php
vendored
Normal file
2166
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
194
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Admin.php
vendored
Normal file
194
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Admin.php
vendored
Normal file
|
@ -0,0 +1,194 @@
|
|||
<?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 Admin (email_migration_v2).
|
||||
*
|
||||
* <p>
|
||||
* Email Migration API lets you migrate emails of users to Google backends.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://developers.google.com/admin-sdk/email-migration/v2/" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_Admin extends Google_Service
|
||||
{
|
||||
/** Manage email messages of users on your domain. */
|
||||
const EMAIL_MIGRATION =
|
||||
"https://www.googleapis.com/auth/email.migration";
|
||||
|
||||
public $mail;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the Admin service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://www.googleapis.com/';
|
||||
$this->servicePath = 'email/v2/users/';
|
||||
$this->version = 'email_migration_v2';
|
||||
$this->serviceName = 'admin';
|
||||
|
||||
$this->mail = new Google_Service_Admin_Mail_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'mail',
|
||||
array(
|
||||
'methods' => array(
|
||||
'insert' => array(
|
||||
'path' => '{userKey}/mail',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'userKey' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "mail" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $adminService = new Google_Service_Admin(...);
|
||||
* $mail = $adminService->mail;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Admin_Mail_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Insert Mail into Google's Gmail backends (mail.insert)
|
||||
*
|
||||
* @param string $userKey The email or immutable id of the user
|
||||
* @param Google_MailItem $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*/
|
||||
public function insert($userKey, Google_Service_Admin_MailItem $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('userKey' => $userKey, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('insert', array($params));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_Admin_MailItem extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'labels';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $isDeleted;
|
||||
public $isDraft;
|
||||
public $isInbox;
|
||||
public $isSent;
|
||||
public $isStarred;
|
||||
public $isTrash;
|
||||
public $isUnread;
|
||||
public $kind;
|
||||
public $labels;
|
||||
|
||||
|
||||
public function setIsDeleted($isDeleted)
|
||||
{
|
||||
$this->isDeleted = $isDeleted;
|
||||
}
|
||||
public function getIsDeleted()
|
||||
{
|
||||
return $this->isDeleted;
|
||||
}
|
||||
public function setIsDraft($isDraft)
|
||||
{
|
||||
$this->isDraft = $isDraft;
|
||||
}
|
||||
public function getIsDraft()
|
||||
{
|
||||
return $this->isDraft;
|
||||
}
|
||||
public function setIsInbox($isInbox)
|
||||
{
|
||||
$this->isInbox = $isInbox;
|
||||
}
|
||||
public function getIsInbox()
|
||||
{
|
||||
return $this->isInbox;
|
||||
}
|
||||
public function setIsSent($isSent)
|
||||
{
|
||||
$this->isSent = $isSent;
|
||||
}
|
||||
public function getIsSent()
|
||||
{
|
||||
return $this->isSent;
|
||||
}
|
||||
public function setIsStarred($isStarred)
|
||||
{
|
||||
$this->isStarred = $isStarred;
|
||||
}
|
||||
public function getIsStarred()
|
||||
{
|
||||
return $this->isStarred;
|
||||
}
|
||||
public function setIsTrash($isTrash)
|
||||
{
|
||||
$this->isTrash = $isTrash;
|
||||
}
|
||||
public function getIsTrash()
|
||||
{
|
||||
return $this->isTrash;
|
||||
}
|
||||
public function setIsUnread($isUnread)
|
||||
{
|
||||
$this->isUnread = $isUnread;
|
||||
}
|
||||
public function getIsUnread()
|
||||
{
|
||||
return $this->isUnread;
|
||||
}
|
||||
public function setKind($kind)
|
||||
{
|
||||
$this->kind = $kind;
|
||||
}
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
public function setLabels($labels)
|
||||
{
|
||||
$this->labels = $labels;
|
||||
}
|
||||
public function getLabels()
|
||||
{
|
||||
return $this->labels;
|
||||
}
|
||||
}
|
9899
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php
vendored
Normal file
9899
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3109
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php
vendored
Normal file
3109
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3842
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php
vendored
Normal file
3842
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
369
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AppState.php
vendored
Normal file
369
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AppState.php
vendored
Normal file
|
@ -0,0 +1,369 @@
|
|||
<?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 AppState (v1).
|
||||
*
|
||||
* <p>
|
||||
* The Google App State API.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://developers.google.com/games/services/web/api/states" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_AppState extends Google_Service
|
||||
{
|
||||
/** View and manage your data for this application. */
|
||||
const APPSTATE =
|
||||
"https://www.googleapis.com/auth/appstate";
|
||||
|
||||
public $states;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the AppState service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://www.googleapis.com/';
|
||||
$this->servicePath = 'appstate/v1/';
|
||||
$this->version = 'v1';
|
||||
$this->serviceName = 'appstate';
|
||||
|
||||
$this->states = new Google_Service_AppState_States_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'states',
|
||||
array(
|
||||
'methods' => array(
|
||||
'clear' => array(
|
||||
'path' => 'states/{stateKey}/clear',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'stateKey' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'integer',
|
||||
'required' => true,
|
||||
),
|
||||
'currentDataVersion' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),'delete' => array(
|
||||
'path' => 'states/{stateKey}',
|
||||
'httpMethod' => 'DELETE',
|
||||
'parameters' => array(
|
||||
'stateKey' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'integer',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'get' => array(
|
||||
'path' => 'states/{stateKey}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'stateKey' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'integer',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'list' => array(
|
||||
'path' => 'states',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'includeData' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'boolean',
|
||||
),
|
||||
),
|
||||
),'update' => array(
|
||||
'path' => 'states/{stateKey}',
|
||||
'httpMethod' => 'PUT',
|
||||
'parameters' => array(
|
||||
'stateKey' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'integer',
|
||||
'required' => true,
|
||||
),
|
||||
'currentStateVersion' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "states" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $appstateService = new Google_Service_AppState(...);
|
||||
* $states = $appstateService->states;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_AppState_States_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Clears (sets to empty) the data for the passed key if and only if the passed
|
||||
* version matches the currently stored version. This method results in a
|
||||
* conflict error on version mismatch. (states.clear)
|
||||
*
|
||||
* @param int $stateKey The key for the data to be retrieved.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string currentDataVersion The version of the data to be cleared.
|
||||
* Version strings are returned by the server.
|
||||
* @return Google_Service_AppState_WriteResult
|
||||
*/
|
||||
public function clear($stateKey, $optParams = array())
|
||||
{
|
||||
$params = array('stateKey' => $stateKey);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('clear', array($params), "Google_Service_AppState_WriteResult");
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes a key and the data associated with it. The key is removed and no
|
||||
* longer counts against the key quota. Note that since this method is not safe
|
||||
* in the face of concurrent modifications, it should only be used for
|
||||
* development and testing purposes. Invoking this method in shipping code can
|
||||
* result in data loss and data corruption. (states.delete)
|
||||
*
|
||||
* @param int $stateKey The key for the data to be retrieved.
|
||||
* @param array $optParams Optional parameters.
|
||||
*/
|
||||
public function delete($stateKey, $optParams = array())
|
||||
{
|
||||
$params = array('stateKey' => $stateKey);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete', array($params));
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the data corresponding to the passed key. If the key does not exist
|
||||
* on the server, an HTTP 404 will be returned. (states.get)
|
||||
*
|
||||
* @param int $stateKey The key for the data to be retrieved.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_AppState_GetResponse
|
||||
*/
|
||||
public function get($stateKey, $optParams = array())
|
||||
{
|
||||
$params = array('stateKey' => $stateKey);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_AppState_GetResponse");
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists all the states keys, and optionally the state data. (states.listStates)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param bool includeData Whether to include the full data in addition to
|
||||
* the version number
|
||||
* @return Google_Service_AppState_ListResponse
|
||||
*/
|
||||
public function listStates($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_AppState_ListResponse");
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the data associated with the input key if and only if the passed
|
||||
* version matches the currently stored version. This method is safe in the face
|
||||
* of concurrent writes. Maximum per-key size is 128KB. (states.update)
|
||||
*
|
||||
* @param int $stateKey The key for the data to be retrieved.
|
||||
* @param Google_UpdateRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string currentStateVersion The version of the app state your
|
||||
* application is attempting to update. If this does not match the current
|
||||
* version, this method will return a conflict error. If there is no data stored
|
||||
* on the server for this key, the update will succeed irrespective of the value
|
||||
* of this parameter.
|
||||
* @return Google_Service_AppState_WriteResult
|
||||
*/
|
||||
public function update($stateKey, Google_Service_AppState_UpdateRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('stateKey' => $stateKey, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('update', array($params), "Google_Service_AppState_WriteResult");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_AppState_GetResponse extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $currentStateVersion;
|
||||
public $data;
|
||||
public $kind;
|
||||
public $stateKey;
|
||||
|
||||
|
||||
public function setCurrentStateVersion($currentStateVersion)
|
||||
{
|
||||
$this->currentStateVersion = $currentStateVersion;
|
||||
}
|
||||
public function getCurrentStateVersion()
|
||||
{
|
||||
return $this->currentStateVersion;
|
||||
}
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
public function setKind($kind)
|
||||
{
|
||||
$this->kind = $kind;
|
||||
}
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
public function setStateKey($stateKey)
|
||||
{
|
||||
$this->stateKey = $stateKey;
|
||||
}
|
||||
public function getStateKey()
|
||||
{
|
||||
return $this->stateKey;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_AppState_ListResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'items';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $itemsType = 'Google_Service_AppState_GetResponse';
|
||||
protected $itemsDataType = 'array';
|
||||
public $kind;
|
||||
public $maximumKeyCount;
|
||||
|
||||
|
||||
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 setMaximumKeyCount($maximumKeyCount)
|
||||
{
|
||||
$this->maximumKeyCount = $maximumKeyCount;
|
||||
}
|
||||
public function getMaximumKeyCount()
|
||||
{
|
||||
return $this->maximumKeyCount;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_AppState_UpdateRequest extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $data;
|
||||
public $kind;
|
||||
|
||||
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
public function setKind($kind)
|
||||
{
|
||||
$this->kind = $kind;
|
||||
}
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_AppState_WriteResult extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $currentStateVersion;
|
||||
public $kind;
|
||||
public $stateKey;
|
||||
|
||||
|
||||
public function setCurrentStateVersion($currentStateVersion)
|
||||
{
|
||||
$this->currentStateVersion = $currentStateVersion;
|
||||
}
|
||||
public function getCurrentStateVersion()
|
||||
{
|
||||
return $this->currentStateVersion;
|
||||
}
|
||||
public function setKind($kind)
|
||||
{
|
||||
$this->kind = $kind;
|
||||
}
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
public function setStateKey($stateKey)
|
||||
{
|
||||
$this->stateKey = $stateKey;
|
||||
}
|
||||
public function getStateKey()
|
||||
{
|
||||
return $this->stateKey;
|
||||
}
|
||||
}
|
2032
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Appengine.php
vendored
Normal file
2032
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Appengine.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
570
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Appsactivity.php
vendored
Normal file
570
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Appsactivity.php
vendored
Normal file
|
@ -0,0 +1,570 @@
|
|||
<?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 Google_Service_Appsactivity extends Google_Service
|
||||
{
|
||||
/** View the activity history of your Google Apps. */
|
||||
const ACTIVITY =
|
||||
"https://www.googleapis.com/auth/activity";
|
||||
/** View and manage the files in your Google Drive. */
|
||||
const DRIVE =
|
||||
"https://www.googleapis.com/auth/drive";
|
||||
/** View and manage metadata of files in your Google Drive. */
|
||||
const DRIVE_METADATA =
|
||||
"https://www.googleapis.com/auth/drive.metadata";
|
||||
/** View metadata for files in your Google Drive. */
|
||||
const DRIVE_METADATA_READONLY =
|
||||
"https://www.googleapis.com/auth/drive.metadata.readonly";
|
||||
/** View the files 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 Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://www.googleapis.com/';
|
||||
$this->servicePath = 'appsactivity/v1/';
|
||||
$this->version = 'v1';
|
||||
$this->serviceName = 'appsactivity';
|
||||
|
||||
$this->activities = new 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 Google_Service_Appsactivity(...);
|
||||
* $activities = $appsactivityService->activities;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Appsactivity_Activities_Resource extends 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 Google_Service_Appsactivity_ListActivitiesResponse
|
||||
*/
|
||||
public function listActivities($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Appsactivity_ListActivitiesResponse");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_Appsactivity_Activity extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'singleEvents';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $combinedEventType = 'Google_Service_Appsactivity_Event';
|
||||
protected $combinedEventDataType = '';
|
||||
protected $singleEventsType = 'Google_Service_Appsactivity_Event';
|
||||
protected $singleEventsDataType = 'array';
|
||||
|
||||
|
||||
public function setCombinedEvent(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 Google_Service_Appsactivity_Event extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'permissionChanges';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $additionalEventTypes;
|
||||
public $eventTimeMillis;
|
||||
public $fromUserDeletion;
|
||||
protected $moveType = 'Google_Service_Appsactivity_Move';
|
||||
protected $moveDataType = '';
|
||||
protected $permissionChangesType = 'Google_Service_Appsactivity_PermissionChange';
|
||||
protected $permissionChangesDataType = 'array';
|
||||
public $primaryEventType;
|
||||
protected $renameType = 'Google_Service_Appsactivity_Rename';
|
||||
protected $renameDataType = '';
|
||||
protected $targetType = 'Google_Service_Appsactivity_Target';
|
||||
protected $targetDataType = '';
|
||||
protected $userType = '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(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(Google_Service_Appsactivity_Rename $rename)
|
||||
{
|
||||
$this->rename = $rename;
|
||||
}
|
||||
public function getRename()
|
||||
{
|
||||
return $this->rename;
|
||||
}
|
||||
public function setTarget(Google_Service_Appsactivity_Target $target)
|
||||
{
|
||||
$this->target = $target;
|
||||
}
|
||||
public function getTarget()
|
||||
{
|
||||
return $this->target;
|
||||
}
|
||||
public function setUser(Google_Service_Appsactivity_User $user)
|
||||
{
|
||||
$this->user = $user;
|
||||
}
|
||||
public function getUser()
|
||||
{
|
||||
return $this->user;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Appsactivity_ListActivitiesResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'activities';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $activitiesType = '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 Google_Service_Appsactivity_Move extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'removedParents';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $addedParentsType = 'Google_Service_Appsactivity_Parent';
|
||||
protected $addedParentsDataType = 'array';
|
||||
protected $removedParentsType = '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 Google_Service_Appsactivity_Parent extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
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 Google_Service_Appsactivity_Permission extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $name;
|
||||
public $permissionId;
|
||||
public $role;
|
||||
public $type;
|
||||
protected $userType = '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(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 Google_Service_Appsactivity_PermissionChange extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'removedPermissions';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $addedPermissionsType = 'Google_Service_Appsactivity_Permission';
|
||||
protected $addedPermissionsDataType = 'array';
|
||||
protected $removedPermissionsType = '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 Google_Service_Appsactivity_Photo extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $url;
|
||||
|
||||
|
||||
public function setUrl($url)
|
||||
{
|
||||
$this->url = $url;
|
||||
}
|
||||
public function getUrl()
|
||||
{
|
||||
return $this->url;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Appsactivity_Rename extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
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 Google_Service_Appsactivity_Target extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
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 Google_Service_Appsactivity_User extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $name;
|
||||
protected $photoType = 'Google_Service_Appsactivity_Photo';
|
||||
protected $photoDataType = '';
|
||||
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
public function setPhoto(Google_Service_Appsactivity_Photo $photo)
|
||||
{
|
||||
$this->photo = $photo;
|
||||
}
|
||||
public function getPhoto()
|
||||
{
|
||||
return $this->photo;
|
||||
}
|
||||
}
|
416
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php
vendored
Normal file
416
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php
vendored
Normal file
|
@ -0,0 +1,416 @@
|
|||
<?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 Audit (v1).
|
||||
*
|
||||
* <p>
|
||||
* Lets you access user activities in your enterprise made through various
|
||||
* applications.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://developers.google.com/google-apps/admin-audit/get_started" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_Audit extends Google_Service
|
||||
{
|
||||
|
||||
|
||||
public $activities;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the Audit service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->servicePath = 'apps/reporting/audit/v1/';
|
||||
$this->version = 'v1';
|
||||
$this->serviceName = 'audit';
|
||||
|
||||
$this->activities = new Google_Service_Audit_Activities_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'activities',
|
||||
array(
|
||||
'methods' => array(
|
||||
'list' => array(
|
||||
'path' => '{customerId}/{applicationId}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'customerId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'applicationId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'actorEmail' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'actorApplicationId' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'actorIpAddress' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'caller' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'maxResults' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
'eventName' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'startTime' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'endTime' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'continuationToken' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "activities" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $auditService = new Google_Service_Audit(...);
|
||||
* $activities = $auditService->activities;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Audit_Activities_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Retrieves a list of activities for a specific customer and application.
|
||||
* (activities.listActivities)
|
||||
*
|
||||
* @param string $customerId Represents the customer who is the owner of target
|
||||
* object on which action was performed.
|
||||
* @param string $applicationId Application ID of the application on which the
|
||||
* event was performed.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string actorEmail Email address of the user who performed the
|
||||
* action.
|
||||
* @opt_param string actorApplicationId Application ID of the application which
|
||||
* interacted on behalf of the user while performing the event.
|
||||
* @opt_param string actorIpAddress IP Address of host where the event was
|
||||
* performed. Supports both IPv4 and IPv6 addresses.
|
||||
* @opt_param string caller Type of the caller.
|
||||
* @opt_param int maxResults Number of activity records to be shown in each
|
||||
* page.
|
||||
* @opt_param string eventName Name of the event being queried.
|
||||
* @opt_param string startTime Return events which occured at or after this
|
||||
* time.
|
||||
* @opt_param string endTime Return events which occured at or before this time.
|
||||
* @opt_param string continuationToken Next page URL.
|
||||
* @return Google_Service_Audit_Activities
|
||||
*/
|
||||
public function listActivities($customerId, $applicationId, $optParams = array())
|
||||
{
|
||||
$params = array('customerId' => $customerId, 'applicationId' => $applicationId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Audit_Activities");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_Audit_Activities extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'items';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $itemsType = 'Google_Service_Audit_Activity';
|
||||
protected $itemsDataType = 'array';
|
||||
public $kind;
|
||||
public $next;
|
||||
|
||||
|
||||
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 setNext($next)
|
||||
{
|
||||
$this->next = $next;
|
||||
}
|
||||
public function getNext()
|
||||
{
|
||||
return $this->next;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Audit_Activity extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'events';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $actorType = 'Google_Service_Audit_ActivityActor';
|
||||
protected $actorDataType = '';
|
||||
protected $eventsType = 'Google_Service_Audit_ActivityEvents';
|
||||
protected $eventsDataType = 'array';
|
||||
protected $idType = 'Google_Service_Audit_ActivityId';
|
||||
protected $idDataType = '';
|
||||
public $ipAddress;
|
||||
public $kind;
|
||||
public $ownerDomain;
|
||||
|
||||
|
||||
public function setActor(Google_Service_Audit_ActivityActor $actor)
|
||||
{
|
||||
$this->actor = $actor;
|
||||
}
|
||||
public function getActor()
|
||||
{
|
||||
return $this->actor;
|
||||
}
|
||||
public function setEvents($events)
|
||||
{
|
||||
$this->events = $events;
|
||||
}
|
||||
public function getEvents()
|
||||
{
|
||||
return $this->events;
|
||||
}
|
||||
public function setId(Google_Service_Audit_ActivityId $id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
public function setIpAddress($ipAddress)
|
||||
{
|
||||
$this->ipAddress = $ipAddress;
|
||||
}
|
||||
public function getIpAddress()
|
||||
{
|
||||
return $this->ipAddress;
|
||||
}
|
||||
public function setKind($kind)
|
||||
{
|
||||
$this->kind = $kind;
|
||||
}
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
public function setOwnerDomain($ownerDomain)
|
||||
{
|
||||
$this->ownerDomain = $ownerDomain;
|
||||
}
|
||||
public function getOwnerDomain()
|
||||
{
|
||||
return $this->ownerDomain;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Audit_ActivityActor extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $applicationId;
|
||||
public $callerType;
|
||||
public $email;
|
||||
public $key;
|
||||
|
||||
|
||||
public function setApplicationId($applicationId)
|
||||
{
|
||||
$this->applicationId = $applicationId;
|
||||
}
|
||||
public function getApplicationId()
|
||||
{
|
||||
return $this->applicationId;
|
||||
}
|
||||
public function setCallerType($callerType)
|
||||
{
|
||||
$this->callerType = $callerType;
|
||||
}
|
||||
public function getCallerType()
|
||||
{
|
||||
return $this->callerType;
|
||||
}
|
||||
public function setEmail($email)
|
||||
{
|
||||
$this->email = $email;
|
||||
}
|
||||
public function getEmail()
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
public function setKey($key)
|
||||
{
|
||||
$this->key = $key;
|
||||
}
|
||||
public function getKey()
|
||||
{
|
||||
return $this->key;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Audit_ActivityEvents extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'parameters';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $eventType;
|
||||
public $name;
|
||||
protected $parametersType = 'Google_Service_Audit_ActivityEventsParameters';
|
||||
protected $parametersDataType = 'array';
|
||||
|
||||
|
||||
public function setEventType($eventType)
|
||||
{
|
||||
$this->eventType = $eventType;
|
||||
}
|
||||
public function getEventType()
|
||||
{
|
||||
return $this->eventType;
|
||||
}
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
public function setParameters($parameters)
|
||||
{
|
||||
$this->parameters = $parameters;
|
||||
}
|
||||
public function getParameters()
|
||||
{
|
||||
return $this->parameters;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Audit_ActivityEventsParameters extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $name;
|
||||
public $value;
|
||||
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
public function setValue($value)
|
||||
{
|
||||
$this->value = $value;
|
||||
}
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Audit_ActivityId extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $applicationId;
|
||||
public $customerId;
|
||||
public $time;
|
||||
public $uniqQualifier;
|
||||
|
||||
|
||||
public function setApplicationId($applicationId)
|
||||
{
|
||||
$this->applicationId = $applicationId;
|
||||
}
|
||||
public function getApplicationId()
|
||||
{
|
||||
return $this->applicationId;
|
||||
}
|
||||
public function setCustomerId($customerId)
|
||||
{
|
||||
$this->customerId = $customerId;
|
||||
}
|
||||
public function getCustomerId()
|
||||
{
|
||||
return $this->customerId;
|
||||
}
|
||||
public function setTime($time)
|
||||
{
|
||||
$this->time = $time;
|
||||
}
|
||||
public function getTime()
|
||||
{
|
||||
return $this->time;
|
||||
}
|
||||
public function setUniqQualifier($uniqQualifier)
|
||||
{
|
||||
$this->uniqQualifier = $uniqQualifier;
|
||||
}
|
||||
public function getUniqQualifier()
|
||||
{
|
||||
return $this->uniqQualifier;
|
||||
}
|
||||
}
|
1401
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Autoscaler.php
vendored
Normal file
1401
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Autoscaler.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3607
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php
vendored
Normal file
3607
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3330
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Blogger.php
vendored
Normal file
3330
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Blogger.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7132
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php
vendored
Normal file
7132
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3890
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php
vendored
Normal file
3890
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1650
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CivicInfo.php
vendored
Normal file
1650
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CivicInfo.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1533
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Classroom.php
vendored
Normal file
1533
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Classroom.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1171
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CloudMonitoring.php
vendored
Normal file
1171
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CloudMonitoring.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2285
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CloudUserAccounts.php
vendored
Normal file
2285
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CloudUserAccounts.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
446
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudbilling.php
vendored
Normal file
446
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudbilling.php
vendored
Normal file
|
@ -0,0 +1,446 @@
|
|||
<?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 Cloudbilling (v1).
|
||||
*
|
||||
* <p>
|
||||
* Retrieves Google Developers Console billing accounts and associates them with
|
||||
* projects.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://cloud.google.com/billing/" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_Cloudbilling extends Google_Service
|
||||
{
|
||||
/** View and manage your data across Google Cloud Platform services. */
|
||||
const CLOUD_PLATFORM =
|
||||
"https://www.googleapis.com/auth/cloud-platform";
|
||||
|
||||
public $billingAccounts;
|
||||
public $billingAccounts_projects;
|
||||
public $projects;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the Cloudbilling service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://cloudbilling.googleapis.com/';
|
||||
$this->servicePath = '';
|
||||
$this->version = 'v1';
|
||||
$this->serviceName = 'cloudbilling';
|
||||
|
||||
$this->billingAccounts = new Google_Service_Cloudbilling_BillingAccounts_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'billingAccounts',
|
||||
array(
|
||||
'methods' => array(
|
||||
'get' => array(
|
||||
'path' => 'v1/{+name}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'name' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'list' => array(
|
||||
'path' => 'v1/billingAccounts',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'pageToken' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'pageSize' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
$this->billingAccounts_projects = new Google_Service_Cloudbilling_BillingAccountsProjects_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'projects',
|
||||
array(
|
||||
'methods' => array(
|
||||
'list' => array(
|
||||
'path' => 'v1/{+name}/projects',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'name' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'pageToken' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'pageSize' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
$this->projects = new Google_Service_Cloudbilling_Projects_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'projects',
|
||||
array(
|
||||
'methods' => array(
|
||||
'getBillingInfo' => array(
|
||||
'path' => 'v1/{+name}/billingInfo',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'name' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'updateBillingInfo' => array(
|
||||
'path' => 'v1/{+name}/billingInfo',
|
||||
'httpMethod' => 'PUT',
|
||||
'parameters' => array(
|
||||
'name' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "billingAccounts" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $cloudbillingService = new Google_Service_Cloudbilling(...);
|
||||
* $billingAccounts = $cloudbillingService->billingAccounts;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Cloudbilling_BillingAccounts_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Gets information about a billing account. The current authenticated user must
|
||||
* be an [owner of the billing
|
||||
* account](https://support.google.com/cloud/answer/4430947).
|
||||
* (billingAccounts.get)
|
||||
*
|
||||
* @param string $name The resource name of the billing account to retrieve. For
|
||||
* example, `billingAccounts/012345-567890-ABCDEF`.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudbilling_BillingAccount
|
||||
*/
|
||||
public function get($name, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_Cloudbilling_BillingAccount");
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists the billing accounts that the current authenticated user
|
||||
* [owns](https://support.google.com/cloud/answer/4430947).
|
||||
* (billingAccounts.listBillingAccounts)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string pageToken A token identifying a page of results to return.
|
||||
* This should be a `next_page_token` value returned from a previous
|
||||
* `ListBillingAccounts` call. If unspecified, the first page of results is
|
||||
* returned.
|
||||
* @opt_param int pageSize Requested page size. The maximum page size is 100;
|
||||
* this is also the default.
|
||||
* @return Google_Service_Cloudbilling_ListBillingAccountsResponse
|
||||
*/
|
||||
public function listBillingAccounts($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Cloudbilling_ListBillingAccountsResponse");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "projects" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $cloudbillingService = new Google_Service_Cloudbilling(...);
|
||||
* $projects = $cloudbillingService->projects;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Cloudbilling_BillingAccountsProjects_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Lists the projects associated with a billing account. The current
|
||||
* authenticated user must be an [owner of the billing
|
||||
* account](https://support.google.com/cloud/answer/4430947).
|
||||
* (projects.listBillingAccountsProjects)
|
||||
*
|
||||
* @param string $name The resource name of the billing account associated with
|
||||
* the projects that you want to list. For example,
|
||||
* `billingAccounts/012345-567890-ABCDEF`.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string pageToken A token identifying a page of results to be
|
||||
* returned. This should be a `next_page_token` value returned from a previous
|
||||
* `ListProjectBillingInfo` call. If unspecified, the first page of results is
|
||||
* returned.
|
||||
* @opt_param int pageSize Requested page size. The maximum page size is 100;
|
||||
* this is also the default.
|
||||
* @return Google_Service_Cloudbilling_ListProjectBillingInfoResponse
|
||||
*/
|
||||
public function listBillingAccountsProjects($name, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Cloudbilling_ListProjectBillingInfoResponse");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "projects" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $cloudbillingService = new Google_Service_Cloudbilling(...);
|
||||
* $projects = $cloudbillingService->projects;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Cloudbilling_Projects_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Gets the billing information for a project. The current authenticated user
|
||||
* must have [permission to view the project](https://cloud.google.com/docs
|
||||
* /permissions-overview#h.bgs0oxofvnoo ). (projects.getBillingInfo)
|
||||
*
|
||||
* @param string $name The resource name of the project for which billing
|
||||
* information is retrieved. For example, `projects/tokyo-rain-123`.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudbilling_ProjectBillingInfo
|
||||
*/
|
||||
public function getBillingInfo($name, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('getBillingInfo', array($params), "Google_Service_Cloudbilling_ProjectBillingInfo");
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets or updates the billing account associated with a project. You specify
|
||||
* the new billing account by setting the `billing_account_name` in the
|
||||
* `ProjectBillingInfo` resource to the resource name of a billing account.
|
||||
* Associating a project with an open billing account enables billing on the
|
||||
* project and allows charges for resource usage. If the project already had a
|
||||
* billing account, this method changes the billing account used for resource
|
||||
* usage charges. *Note:* Incurred charges that have not yet been reported in
|
||||
* the transaction history of the Google Developers Console may be billed to the
|
||||
* new billing account, even if the charge occurred before the new billing
|
||||
* account was assigned to the project. The current authenticated user must have
|
||||
* ownership privileges for both the [project](https://cloud.google.com/docs
|
||||
* /permissions-overview#h.bgs0oxofvnoo ) and the [billing
|
||||
* account](https://support.google.com/cloud/answer/4430947). You can disable
|
||||
* billing on the project by setting the `billing_account_name` field to empty.
|
||||
* This action disassociates the current billing account from the project. Any
|
||||
* billable activity of your in-use services will stop, and your application
|
||||
* could stop functioning as expected. Any unbilled charges to date will be
|
||||
* billed to the previously associated account. The current authenticated user
|
||||
* must be either an owner of the project or an owner of the billing account for
|
||||
* the project. Note that associating a project with a *closed* billing account
|
||||
* will have much the same effect as disabling billing on the project: any paid
|
||||
* resources used by the project will be shut down. Thus, unless you wish to
|
||||
* disable billing, you should always call this method with the name of an
|
||||
* *open* billing account. (projects.updateBillingInfo)
|
||||
*
|
||||
* @param string $name The resource name of the project associated with the
|
||||
* billing information that you want to update. For example, `projects/tokyo-
|
||||
* rain-123`.
|
||||
* @param Google_ProjectBillingInfo $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudbilling_ProjectBillingInfo
|
||||
*/
|
||||
public function updateBillingInfo($name, Google_Service_Cloudbilling_ProjectBillingInfo $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('updateBillingInfo', array($params), "Google_Service_Cloudbilling_ProjectBillingInfo");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_Cloudbilling_BillingAccount extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $displayName;
|
||||
public $name;
|
||||
public $open;
|
||||
|
||||
|
||||
public function setDisplayName($displayName)
|
||||
{
|
||||
$this->displayName = $displayName;
|
||||
}
|
||||
public function getDisplayName()
|
||||
{
|
||||
return $this->displayName;
|
||||
}
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
public function setOpen($open)
|
||||
{
|
||||
$this->open = $open;
|
||||
}
|
||||
public function getOpen()
|
||||
{
|
||||
return $this->open;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Cloudbilling_ListBillingAccountsResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'billingAccounts';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $billingAccountsType = 'Google_Service_Cloudbilling_BillingAccount';
|
||||
protected $billingAccountsDataType = 'array';
|
||||
public $nextPageToken;
|
||||
|
||||
|
||||
public function setBillingAccounts($billingAccounts)
|
||||
{
|
||||
$this->billingAccounts = $billingAccounts;
|
||||
}
|
||||
public function getBillingAccounts()
|
||||
{
|
||||
return $this->billingAccounts;
|
||||
}
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Cloudbilling_ListProjectBillingInfoResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'projectBillingInfo';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $nextPageToken;
|
||||
protected $projectBillingInfoType = 'Google_Service_Cloudbilling_ProjectBillingInfo';
|
||||
protected $projectBillingInfoDataType = 'array';
|
||||
|
||||
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
public function setProjectBillingInfo($projectBillingInfo)
|
||||
{
|
||||
$this->projectBillingInfo = $projectBillingInfo;
|
||||
}
|
||||
public function getProjectBillingInfo()
|
||||
{
|
||||
return $this->projectBillingInfo;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Cloudbilling_ProjectBillingInfo extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $billingAccountName;
|
||||
public $billingEnabled;
|
||||
public $name;
|
||||
public $projectId;
|
||||
|
||||
|
||||
public function setBillingAccountName($billingAccountName)
|
||||
{
|
||||
$this->billingAccountName = $billingAccountName;
|
||||
}
|
||||
public function getBillingAccountName()
|
||||
{
|
||||
return $this->billingAccountName;
|
||||
}
|
||||
public function setBillingEnabled($billingEnabled)
|
||||
{
|
||||
$this->billingEnabled = $billingEnabled;
|
||||
}
|
||||
public function getBillingEnabled()
|
||||
{
|
||||
return $this->billingEnabled;
|
||||
}
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
public function setProjectId($projectId)
|
||||
{
|
||||
$this->projectId = $projectId;
|
||||
}
|
||||
public function getProjectId()
|
||||
{
|
||||
return $this->projectId;
|
||||
}
|
||||
}
|
1343
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Clouddebugger.php
vendored
Normal file
1343
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Clouddebugger.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
295
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudlatencytest.php
vendored
Normal file
295
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudlatencytest.php
vendored
Normal file
|
@ -0,0 +1,295 @@
|
|||
<?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 Cloudlatencytest (v2).
|
||||
*
|
||||
* <p>
|
||||
* A Test API to report latency data.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_Cloudlatencytest extends Google_Service
|
||||
{
|
||||
/** View monitoring data for all of your Google Cloud and API projects. */
|
||||
const MONITORING_READONLY =
|
||||
"https://www.googleapis.com/auth/monitoring.readonly";
|
||||
|
||||
public $statscollection;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the Cloudlatencytest service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://cloudlatencytest-pa.googleapis.com/';
|
||||
$this->servicePath = 'v2/statscollection/';
|
||||
$this->version = 'v2';
|
||||
$this->serviceName = 'cloudlatencytest';
|
||||
|
||||
$this->statscollection = new Google_Service_Cloudlatencytest_Statscollection_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'statscollection',
|
||||
array(
|
||||
'methods' => array(
|
||||
'updateaggregatedstats' => array(
|
||||
'path' => 'updateaggregatedstats',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(),
|
||||
),'updatestats' => array(
|
||||
'path' => 'updatestats',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "statscollection" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $cloudlatencytestService = new Google_Service_Cloudlatencytest(...);
|
||||
* $statscollection = $cloudlatencytestService->statscollection;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Cloudlatencytest_Statscollection_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* RPC to update the new TCP stats. (statscollection.updateaggregatedstats)
|
||||
*
|
||||
* @param Google_AggregatedStats $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudlatencytest_AggregatedStatsReply
|
||||
*/
|
||||
public function updateaggregatedstats(Google_Service_Cloudlatencytest_AggregatedStats $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('updateaggregatedstats', array($params), "Google_Service_Cloudlatencytest_AggregatedStatsReply");
|
||||
}
|
||||
|
||||
/**
|
||||
* RPC to update the new TCP stats. (statscollection.updatestats)
|
||||
*
|
||||
* @param Google_Stats $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudlatencytest_StatsReply
|
||||
*/
|
||||
public function updatestats(Google_Service_Cloudlatencytest_Stats $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('updatestats', array($params), "Google_Service_Cloudlatencytest_StatsReply");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_Cloudlatencytest_AggregatedStats extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'stats';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $statsType = 'Google_Service_Cloudlatencytest_Stats';
|
||||
protected $statsDataType = 'array';
|
||||
|
||||
|
||||
public function setStats($stats)
|
||||
{
|
||||
$this->stats = $stats;
|
||||
}
|
||||
public function getStats()
|
||||
{
|
||||
return $this->stats;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Cloudlatencytest_AggregatedStatsReply extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $testValue;
|
||||
|
||||
|
||||
public function setTestValue($testValue)
|
||||
{
|
||||
$this->testValue = $testValue;
|
||||
}
|
||||
public function getTestValue()
|
||||
{
|
||||
return $this->testValue;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Cloudlatencytest_DoubleValue extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $label;
|
||||
public $value;
|
||||
|
||||
|
||||
public function setLabel($label)
|
||||
{
|
||||
$this->label = $label;
|
||||
}
|
||||
public function getLabel()
|
||||
{
|
||||
return $this->label;
|
||||
}
|
||||
public function setValue($value)
|
||||
{
|
||||
$this->value = $value;
|
||||
}
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Cloudlatencytest_IntValue extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $label;
|
||||
public $value;
|
||||
|
||||
|
||||
public function setLabel($label)
|
||||
{
|
||||
$this->label = $label;
|
||||
}
|
||||
public function getLabel()
|
||||
{
|
||||
return $this->label;
|
||||
}
|
||||
public function setValue($value)
|
||||
{
|
||||
$this->value = $value;
|
||||
}
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Cloudlatencytest_Stats extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'stringValues';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $doubleValuesType = 'Google_Service_Cloudlatencytest_DoubleValue';
|
||||
protected $doubleValuesDataType = 'array';
|
||||
protected $intValuesType = 'Google_Service_Cloudlatencytest_IntValue';
|
||||
protected $intValuesDataType = 'array';
|
||||
protected $stringValuesType = 'Google_Service_Cloudlatencytest_StringValue';
|
||||
protected $stringValuesDataType = 'array';
|
||||
public $time;
|
||||
|
||||
|
||||
public function setDoubleValues($doubleValues)
|
||||
{
|
||||
$this->doubleValues = $doubleValues;
|
||||
}
|
||||
public function getDoubleValues()
|
||||
{
|
||||
return $this->doubleValues;
|
||||
}
|
||||
public function setIntValues($intValues)
|
||||
{
|
||||
$this->intValues = $intValues;
|
||||
}
|
||||
public function getIntValues()
|
||||
{
|
||||
return $this->intValues;
|
||||
}
|
||||
public function setStringValues($stringValues)
|
||||
{
|
||||
$this->stringValues = $stringValues;
|
||||
}
|
||||
public function getStringValues()
|
||||
{
|
||||
return $this->stringValues;
|
||||
}
|
||||
public function setTime($time)
|
||||
{
|
||||
$this->time = $time;
|
||||
}
|
||||
public function getTime()
|
||||
{
|
||||
return $this->time;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Cloudlatencytest_StatsReply extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $testValue;
|
||||
|
||||
|
||||
public function setTestValue($testValue)
|
||||
{
|
||||
$this->testValue = $testValue;
|
||||
}
|
||||
public function getTestValue()
|
||||
{
|
||||
return $this->testValue;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Cloudlatencytest_StringValue extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $label;
|
||||
public $value;
|
||||
|
||||
|
||||
public function setLabel($label)
|
||||
{
|
||||
$this->label = $label;
|
||||
}
|
||||
public function getLabel()
|
||||
{
|
||||
return $this->label;
|
||||
}
|
||||
public function setValue($value)
|
||||
{
|
||||
$this->value = $value;
|
||||
}
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
}
|
912
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudresourcemanager.php
vendored
Normal file
912
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudresourcemanager.php
vendored
Normal file
|
@ -0,0 +1,912 @@
|
|||
<?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 Cloudresourcemanager (v1beta1).
|
||||
*
|
||||
* <p>
|
||||
* The Google Cloud Resource Manager API provides methods for creating, reading,
|
||||
* and updating of project metadata.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://cloud.google.com/resource-manager" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_Cloudresourcemanager extends Google_Service
|
||||
{
|
||||
/** View and manage your data across Google Cloud Platform services. */
|
||||
const CLOUD_PLATFORM =
|
||||
"https://www.googleapis.com/auth/cloud-platform";
|
||||
|
||||
public $organizations;
|
||||
public $projects;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the Cloudresourcemanager service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://cloudresourcemanager.googleapis.com/';
|
||||
$this->servicePath = '';
|
||||
$this->version = 'v1beta1';
|
||||
$this->serviceName = 'cloudresourcemanager';
|
||||
|
||||
$this->organizations = new Google_Service_Cloudresourcemanager_Organizations_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'organizations',
|
||||
array(
|
||||
'methods' => array(
|
||||
'get' => array(
|
||||
'path' => 'v1beta1/organizations/{organizationId}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'organizationId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'getIamPolicy' => array(
|
||||
'path' => 'v1beta1/organizations/{resource}:getIamPolicy',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'resource' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'list' => array(
|
||||
'path' => 'v1beta1/organizations',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'filter' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'pageToken' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'pageSize' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
),
|
||||
),'setIamPolicy' => array(
|
||||
'path' => 'v1beta1/organizations/{resource}:setIamPolicy',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'resource' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'testIamPermissions' => array(
|
||||
'path' => 'v1beta1/organizations/{resource}:testIamPermissions',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'resource' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'update' => array(
|
||||
'path' => 'v1beta1/organizations/{organizationId}',
|
||||
'httpMethod' => 'PUT',
|
||||
'parameters' => array(
|
||||
'organizationId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
$this->projects = new Google_Service_Cloudresourcemanager_Projects_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'projects',
|
||||
array(
|
||||
'methods' => array(
|
||||
'create' => array(
|
||||
'path' => 'v1beta1/projects',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(),
|
||||
),'delete' => array(
|
||||
'path' => 'v1beta1/projects/{projectId}',
|
||||
'httpMethod' => 'DELETE',
|
||||
'parameters' => array(
|
||||
'projectId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'get' => array(
|
||||
'path' => 'v1beta1/projects/{projectId}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'projectId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'getIamPolicy' => array(
|
||||
'path' => 'v1beta1/projects/{resource}:getIamPolicy',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'resource' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'list' => array(
|
||||
'path' => 'v1beta1/projects',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'filter' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'pageToken' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'pageSize' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
),
|
||||
),'setIamPolicy' => array(
|
||||
'path' => 'v1beta1/projects/{resource}:setIamPolicy',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'resource' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'testIamPermissions' => array(
|
||||
'path' => 'v1beta1/projects/{resource}:testIamPermissions',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'resource' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'undelete' => array(
|
||||
'path' => 'v1beta1/projects/{projectId}:undelete',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'projectId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'update' => array(
|
||||
'path' => 'v1beta1/projects/{projectId}',
|
||||
'httpMethod' => 'PUT',
|
||||
'parameters' => array(
|
||||
'projectId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "organizations" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $cloudresourcemanagerService = new Google_Service_Cloudresourcemanager(...);
|
||||
* $organizations = $cloudresourcemanagerService->organizations;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Cloudresourcemanager_Organizations_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Fetches an Organization resource by id. (organizations.get)
|
||||
*
|
||||
* @param string $organizationId The id of the Organization resource to fetch.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudresourcemanager_Organization
|
||||
*/
|
||||
public function get($organizationId, $optParams = array())
|
||||
{
|
||||
$params = array('organizationId' => $organizationId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_Cloudresourcemanager_Organization");
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the access control policy for a Organization resource. May be empty if
|
||||
* no such policy or resource exists. (organizations.getIamPolicy)
|
||||
*
|
||||
* @param string $resource REQUIRED: The resource for which policy is being
|
||||
* requested. Resource is usually specified as a path, such as,
|
||||
* `projects/{project}`.
|
||||
* @param Google_GetIamPolicyRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudresourcemanager_Policy
|
||||
*/
|
||||
public function getIamPolicy($resource, Google_Service_Cloudresourcemanager_GetIamPolicyRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('resource' => $resource, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('getIamPolicy', array($params), "Google_Service_Cloudresourcemanager_Policy");
|
||||
}
|
||||
|
||||
/**
|
||||
* Query Organization resources. (organizations.listOrganizations)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string filter An optional query string used to filter the
|
||||
* Organizations to be return in the response. Filter rules are case-
|
||||
* insensitive. Organizations may be filtered by `owner.directoryCustomerId` or
|
||||
* by `domain`, where the domain is a Google for Work domain, for example:
|
||||
* |Filter|Description| |------|-----------|
|
||||
* |owner.directorycustomerid:123456789|Organizations with
|
||||
* `owner.directory_customer_id` equal to `123456789`.|
|
||||
* |domain:google.com|Organizations corresponding to the domain `google.com`.|
|
||||
* This field is optional.
|
||||
* @opt_param string pageToken A pagination token returned from a previous call
|
||||
* to ListOrganizations that indicates from where listing should continue. This
|
||||
* field is optional.
|
||||
* @opt_param int pageSize The maximum number of Organizations to return in the
|
||||
* response. This field is optional.
|
||||
* @return Google_Service_Cloudresourcemanager_ListOrganizationsResponse
|
||||
*/
|
||||
public function listOrganizations($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Cloudresourcemanager_ListOrganizationsResponse");
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the access control policy on a Organization resource. Replaces any
|
||||
* existing policy. (organizations.setIamPolicy)
|
||||
*
|
||||
* @param string $resource REQUIRED: The resource for which policy is being
|
||||
* specified. `resource` is usually specified as a path, such as,
|
||||
* `projects/{project}/zones/{zone}/disks/{disk}`.
|
||||
* @param Google_SetIamPolicyRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudresourcemanager_Policy
|
||||
*/
|
||||
public function setIamPolicy($resource, Google_Service_Cloudresourcemanager_SetIamPolicyRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('resource' => $resource, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('setIamPolicy', array($params), "Google_Service_Cloudresourcemanager_Policy");
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns permissions that a caller has on the specified Organization.
|
||||
* (organizations.testIamPermissions)
|
||||
*
|
||||
* @param string $resource REQUIRED: The resource for which policy detail is
|
||||
* being requested. `resource` is usually specified as a path, such as,
|
||||
* `projects/{project}`.
|
||||
* @param Google_TestIamPermissionsRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudresourcemanager_TestIamPermissionsResponse
|
||||
*/
|
||||
public function testIamPermissions($resource, Google_Service_Cloudresourcemanager_TestIamPermissionsRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('resource' => $resource, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('testIamPermissions', array($params), "Google_Service_Cloudresourcemanager_TestIamPermissionsResponse");
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates an Organization resource. (organizations.update)
|
||||
*
|
||||
* @param string $organizationId An immutable id for the Organization that is
|
||||
* assigned on creation. This should be omitted when creating a new
|
||||
* Organization. This field is read-only.
|
||||
* @param Google_Organization $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudresourcemanager_Organization
|
||||
*/
|
||||
public function update($organizationId, Google_Service_Cloudresourcemanager_Organization $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('organizationId' => $organizationId, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('update', array($params), "Google_Service_Cloudresourcemanager_Organization");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "projects" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $cloudresourcemanagerService = new Google_Service_Cloudresourcemanager(...);
|
||||
* $projects = $cloudresourcemanagerService->projects;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Cloudresourcemanager_Projects_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Creates a project resource. Initially, the project resource is owned by its
|
||||
* creator exclusively. The creator can later grant permission to others to read
|
||||
* or update the project. Several APIs are activated automatically for the
|
||||
* project, including Google Cloud Storage. (projects.create)
|
||||
*
|
||||
* @param Google_Project $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudresourcemanager_Project
|
||||
*/
|
||||
public function create(Google_Service_Cloudresourcemanager_Project $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('create', array($params), "Google_Service_Cloudresourcemanager_Project");
|
||||
}
|
||||
|
||||
/**
|
||||
* Marks the project identified by the specified `project_id` (for example, `my-
|
||||
* project-123`) for deletion. This method will only affect the project if the
|
||||
* following criteria are met: + The project does not have a billing account
|
||||
* associated with it. + The project has a lifecycle state of
|
||||
* [ACTIVE][google.cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE].
|
||||
* This method changes the project's lifecycle state from
|
||||
* [ACTIVE][google.cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE]
|
||||
* to [DELETE_REQUESTED] [google.cloudresourcemanager.projects.v1beta1.Lifecycle
|
||||
* State.DELETE_REQUESTED]. The deletion starts at an unspecified time, at which
|
||||
* point the lifecycle state changes to [DELETE_IN_PROGRESS] [google.cloudresour
|
||||
* cemanager.projects.v1beta1.LifecycleState.DELETE_IN_PROGRESS]. Until the
|
||||
* deletion completes, you can check the lifecycle state checked by retrieving
|
||||
* the project with [GetProject]
|
||||
* [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetProject],
|
||||
* and the project remains visible to [ListProjects] [google.cloudresourcemanage
|
||||
* r.projects.v1beta1.DeveloperProjects.ListProjects]. However, you cannot
|
||||
* update the project. After the deletion completes, the project is not
|
||||
* retrievable by the [GetProject]
|
||||
* [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetProject]
|
||||
* and [ListProjects]
|
||||
* [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.ListProjects]
|
||||
* methods. The caller must have modify permissions for this project.
|
||||
* (projects.delete)
|
||||
*
|
||||
* @param string $projectId The project ID (for example, `foo-bar-123`).
|
||||
* Required.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudresourcemanager_Empty
|
||||
*/
|
||||
public function delete($projectId, $optParams = array())
|
||||
{
|
||||
$params = array('projectId' => $projectId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete', array($params), "Google_Service_Cloudresourcemanager_Empty");
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the project identified by the specified `project_id` (for example,
|
||||
* `my-project-123`). The caller must have read permissions for this project.
|
||||
* (projects.get)
|
||||
*
|
||||
* @param string $projectId The project ID (for example, `my-project-123`).
|
||||
* Required.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudresourcemanager_Project
|
||||
*/
|
||||
public function get($projectId, $optParams = array())
|
||||
{
|
||||
$params = array('projectId' => $projectId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_Cloudresourcemanager_Project");
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the IAM access control policy for specified project.
|
||||
* (projects.getIamPolicy)
|
||||
*
|
||||
* @param string $resource REQUIRED: The resource for which policy is being
|
||||
* requested. Resource is usually specified as a path, such as,
|
||||
* `projects/{project}`.
|
||||
* @param Google_GetIamPolicyRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudresourcemanager_Policy
|
||||
*/
|
||||
public function getIamPolicy($resource, Google_Service_Cloudresourcemanager_GetIamPolicyRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('resource' => $resource, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('getIamPolicy', array($params), "Google_Service_Cloudresourcemanager_Policy");
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists projects that are visible to the user and satisfy the specified filter.
|
||||
* This method returns projects in an unspecified order. New projects do not
|
||||
* necessarily appear at the end of the list. (projects.listProjects)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string filter An expression for filtering the results of the
|
||||
* request. Filter rules are case insensitive. The fields eligible for filtering
|
||||
* are: + `name` + `id` + labels.key where *key* is the name of a label Some
|
||||
* examples of using labels as filters: |Filter|Description|
|
||||
* |------|-----------| |name:*|The project has a name.| |name:Howl|The
|
||||
* project's name is `Howl` or `howl`.| |name:HOWL|Equivalent to above.|
|
||||
* |NAME:howl|Equivalent to above.| |labels.color:*|The project has the label
|
||||
* `color`.| |labels.color:red|The project's label `color` has the value `red`.|
|
||||
* |labels.color:red label.size:big|The project's label `color` has the value
|
||||
* `red` and its label `size` has the value `big`. Optional.
|
||||
* @opt_param string pageToken A pagination token returned from a previous call
|
||||
* to ListProject that indicates from where listing should continue. Note:
|
||||
* pagination is not yet supported; the server ignores this field. Optional.
|
||||
* @opt_param int pageSize The maximum number of Projects to return in the
|
||||
* response. The server can return fewer projects than requested. If
|
||||
* unspecified, server picks an appropriate default. Note: pagination is not yet
|
||||
* supported; the server ignores this field. Optional.
|
||||
* @return Google_Service_Cloudresourcemanager_ListProjectsResponse
|
||||
*/
|
||||
public function listProjects($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Cloudresourcemanager_ListProjectsResponse");
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the IAM access control policy for the specified project. We do not
|
||||
* currently support 'domain:' prefixed members in a Binding of a Policy.
|
||||
* Calling this method requires enabling the App Engine Admin API.
|
||||
* (projects.setIamPolicy)
|
||||
*
|
||||
* @param string $resource REQUIRED: The resource for which policy is being
|
||||
* specified. `resource` is usually specified as a path, such as,
|
||||
* `projects/{project}/zones/{zone}/disks/{disk}`.
|
||||
* @param Google_SetIamPolicyRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudresourcemanager_Policy
|
||||
*/
|
||||
public function setIamPolicy($resource, Google_Service_Cloudresourcemanager_SetIamPolicyRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('resource' => $resource, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('setIamPolicy', array($params), "Google_Service_Cloudresourcemanager_Policy");
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests the specified permissions against the IAM access control policy for the
|
||||
* specified project. (projects.testIamPermissions)
|
||||
*
|
||||
* @param string $resource REQUIRED: The resource for which policy detail is
|
||||
* being requested. `resource` is usually specified as a path, such as,
|
||||
* `projects/{project}`.
|
||||
* @param Google_TestIamPermissionsRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudresourcemanager_TestIamPermissionsResponse
|
||||
*/
|
||||
public function testIamPermissions($resource, Google_Service_Cloudresourcemanager_TestIamPermissionsRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('resource' => $resource, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('testIamPermissions', array($params), "Google_Service_Cloudresourcemanager_TestIamPermissionsResponse");
|
||||
}
|
||||
|
||||
/**
|
||||
* Restores the project identified by the specified `project_id` (for example,
|
||||
* `my-project-123`). You can only use this method for a project that has a
|
||||
* lifecycle state of [DELETE_REQUESTED] [google.cloudresourcemanager.projects.v
|
||||
* 1beta1.LifecycleState.DELETE_REQUESTED]. After deletion starts, as indicated
|
||||
* by a lifecycle state of [DELETE_IN_PROGRESS] [google.cloudresourcemanager.pro
|
||||
* jects.v1beta1.LifecycleState.DELETE_IN_PROGRESS], the project cannot be
|
||||
* restored. The caller must have modify permissions for this project.
|
||||
* (projects.undelete)
|
||||
*
|
||||
* @param string $projectId The project ID (for example, `foo-bar-123`).
|
||||
* Required.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudresourcemanager_Empty
|
||||
*/
|
||||
public function undelete($projectId, $optParams = array())
|
||||
{
|
||||
$params = array('projectId' => $projectId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('undelete', array($params), "Google_Service_Cloudresourcemanager_Empty");
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the attributes of the project identified by the specified
|
||||
* `project_id` (for example, `my-project-123`). The caller must have modify
|
||||
* permissions for this project. (projects.update)
|
||||
*
|
||||
* @param string $projectId The project ID (for example, `my-project-123`).
|
||||
* Required.
|
||||
* @param Google_Project $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudresourcemanager_Project
|
||||
*/
|
||||
public function update($projectId, Google_Service_Cloudresourcemanager_Project $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('projectId' => $projectId, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('update', array($params), "Google_Service_Cloudresourcemanager_Project");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_Cloudresourcemanager_Binding extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'members';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $members;
|
||||
public $role;
|
||||
|
||||
|
||||
public function setMembers($members)
|
||||
{
|
||||
$this->members = $members;
|
||||
}
|
||||
public function getMembers()
|
||||
{
|
||||
return $this->members;
|
||||
}
|
||||
public function setRole($role)
|
||||
{
|
||||
$this->role = $role;
|
||||
}
|
||||
public function getRole()
|
||||
{
|
||||
return $this->role;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Cloudresourcemanager_Empty extends Google_Model
|
||||
{
|
||||
}
|
||||
|
||||
class Google_Service_Cloudresourcemanager_GetIamPolicyRequest extends Google_Model
|
||||
{
|
||||
}
|
||||
|
||||
class Google_Service_Cloudresourcemanager_ListOrganizationsResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'organizations';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $nextPageToken;
|
||||
protected $organizationsType = 'Google_Service_Cloudresourcemanager_Organization';
|
||||
protected $organizationsDataType = 'array';
|
||||
|
||||
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
public function setOrganizations($organizations)
|
||||
{
|
||||
$this->organizations = $organizations;
|
||||
}
|
||||
public function getOrganizations()
|
||||
{
|
||||
return $this->organizations;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Cloudresourcemanager_ListProjectsResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'projects';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $nextPageToken;
|
||||
protected $projectsType = 'Google_Service_Cloudresourcemanager_Project';
|
||||
protected $projectsDataType = 'array';
|
||||
|
||||
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
public function setProjects($projects)
|
||||
{
|
||||
$this->projects = $projects;
|
||||
}
|
||||
public function getProjects()
|
||||
{
|
||||
return $this->projects;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Cloudresourcemanager_Organization extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $displayName;
|
||||
public $organizationId;
|
||||
protected $ownerType = 'Google_Service_Cloudresourcemanager_OrganizationOwner';
|
||||
protected $ownerDataType = '';
|
||||
|
||||
|
||||
public function setDisplayName($displayName)
|
||||
{
|
||||
$this->displayName = $displayName;
|
||||
}
|
||||
public function getDisplayName()
|
||||
{
|
||||
return $this->displayName;
|
||||
}
|
||||
public function setOrganizationId($organizationId)
|
||||
{
|
||||
$this->organizationId = $organizationId;
|
||||
}
|
||||
public function getOrganizationId()
|
||||
{
|
||||
return $this->organizationId;
|
||||
}
|
||||
public function setOwner(Google_Service_Cloudresourcemanager_OrganizationOwner $owner)
|
||||
{
|
||||
$this->owner = $owner;
|
||||
}
|
||||
public function getOwner()
|
||||
{
|
||||
return $this->owner;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Cloudresourcemanager_OrganizationOwner extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $directoryCustomerId;
|
||||
|
||||
|
||||
public function setDirectoryCustomerId($directoryCustomerId)
|
||||
{
|
||||
$this->directoryCustomerId = $directoryCustomerId;
|
||||
}
|
||||
public function getDirectoryCustomerId()
|
||||
{
|
||||
return $this->directoryCustomerId;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Cloudresourcemanager_Policy extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'bindings';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $bindingsType = 'Google_Service_Cloudresourcemanager_Binding';
|
||||
protected $bindingsDataType = 'array';
|
||||
public $etag;
|
||||
public $version;
|
||||
|
||||
|
||||
public function setBindings($bindings)
|
||||
{
|
||||
$this->bindings = $bindings;
|
||||
}
|
||||
public function getBindings()
|
||||
{
|
||||
return $this->bindings;
|
||||
}
|
||||
public function setEtag($etag)
|
||||
{
|
||||
$this->etag = $etag;
|
||||
}
|
||||
public function getEtag()
|
||||
{
|
||||
return $this->etag;
|
||||
}
|
||||
public function setVersion($version)
|
||||
{
|
||||
$this->version = $version;
|
||||
}
|
||||
public function getVersion()
|
||||
{
|
||||
return $this->version;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Cloudresourcemanager_Project extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $createTime;
|
||||
public $labels;
|
||||
public $lifecycleState;
|
||||
public $name;
|
||||
protected $parentType = 'Google_Service_Cloudresourcemanager_ResourceId';
|
||||
protected $parentDataType = '';
|
||||
public $projectId;
|
||||
public $projectNumber;
|
||||
|
||||
|
||||
public function setCreateTime($createTime)
|
||||
{
|
||||
$this->createTime = $createTime;
|
||||
}
|
||||
public function getCreateTime()
|
||||
{
|
||||
return $this->createTime;
|
||||
}
|
||||
public function setLabels($labels)
|
||||
{
|
||||
$this->labels = $labels;
|
||||
}
|
||||
public function getLabels()
|
||||
{
|
||||
return $this->labels;
|
||||
}
|
||||
public function setLifecycleState($lifecycleState)
|
||||
{
|
||||
$this->lifecycleState = $lifecycleState;
|
||||
}
|
||||
public function getLifecycleState()
|
||||
{
|
||||
return $this->lifecycleState;
|
||||
}
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
public function setParent(Google_Service_Cloudresourcemanager_ResourceId $parent)
|
||||
{
|
||||
$this->parent = $parent;
|
||||
}
|
||||
public function getParent()
|
||||
{
|
||||
return $this->parent;
|
||||
}
|
||||
public function setProjectId($projectId)
|
||||
{
|
||||
$this->projectId = $projectId;
|
||||
}
|
||||
public function getProjectId()
|
||||
{
|
||||
return $this->projectId;
|
||||
}
|
||||
public function setProjectNumber($projectNumber)
|
||||
{
|
||||
$this->projectNumber = $projectNumber;
|
||||
}
|
||||
public function getProjectNumber()
|
||||
{
|
||||
return $this->projectNumber;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Cloudresourcemanager_ProjectLabels extends Google_Model
|
||||
{
|
||||
}
|
||||
|
||||
class Google_Service_Cloudresourcemanager_ResourceId extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $id;
|
||||
public $type;
|
||||
|
||||
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
public function setType($type)
|
||||
{
|
||||
$this->type = $type;
|
||||
}
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Cloudresourcemanager_SetIamPolicyRequest extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $policyType = 'Google_Service_Cloudresourcemanager_Policy';
|
||||
protected $policyDataType = '';
|
||||
|
||||
|
||||
public function setPolicy(Google_Service_Cloudresourcemanager_Policy $policy)
|
||||
{
|
||||
$this->policy = $policy;
|
||||
}
|
||||
public function getPolicy()
|
||||
{
|
||||
return $this->policy;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Cloudresourcemanager_TestIamPermissionsRequest extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'permissions';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $permissions;
|
||||
|
||||
|
||||
public function setPermissions($permissions)
|
||||
{
|
||||
$this->permissions = $permissions;
|
||||
}
|
||||
public function getPermissions()
|
||||
{
|
||||
return $this->permissions;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Cloudresourcemanager_TestIamPermissionsResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'permissions';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $permissions;
|
||||
|
||||
|
||||
public function setPermissions($permissions)
|
||||
{
|
||||
$this->permissions = $permissions;
|
||||
}
|
||||
public function getPermissions()
|
||||
{
|
||||
return $this->permissions;
|
||||
}
|
||||
}
|
53
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudsearch.php
vendored
Normal file
53
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudsearch.php
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
<?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 Cloudsearch (v1).
|
||||
*
|
||||
* <p>
|
||||
* The Google Cloud Search API defines an application interface to index
|
||||
* documents that contain structured data and to search those indexes. It
|
||||
* supports full text search.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_Cloudsearch extends Google_Service
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the Cloudsearch service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->servicePath = '';
|
||||
$this->version = 'v1';
|
||||
$this->serviceName = 'cloudsearch';
|
||||
|
||||
}
|
||||
}
|
460
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudtrace.php
vendored
Normal file
460
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudtrace.php
vendored
Normal file
|
@ -0,0 +1,460 @@
|
|||
<?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 Cloudtrace (v1).
|
||||
*
|
||||
* <p>
|
||||
* The Google Cloud Trace API provides services for reading and writing runtime
|
||||
* trace data for Cloud applications.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://cloud.google.com/tools/cloud-trace" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_Cloudtrace extends Google_Service
|
||||
{
|
||||
/** View and manage your data across Google Cloud Platform services. */
|
||||
const CLOUD_PLATFORM =
|
||||
"https://www.googleapis.com/auth/cloud-platform";
|
||||
|
||||
public $projects;
|
||||
public $projects_traces;
|
||||
public $v1;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the Cloudtrace service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://cloudtrace.googleapis.com/';
|
||||
$this->servicePath = '';
|
||||
$this->version = 'v1';
|
||||
$this->serviceName = 'cloudtrace';
|
||||
|
||||
$this->projects = new Google_Service_Cloudtrace_Projects_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'projects',
|
||||
array(
|
||||
'methods' => array(
|
||||
'patchTraces' => array(
|
||||
'path' => 'v1/projects/{projectId}/traces',
|
||||
'httpMethod' => 'PATCH',
|
||||
'parameters' => array(
|
||||
'projectId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
$this->projects_traces = new Google_Service_Cloudtrace_ProjectsTraces_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'traces',
|
||||
array(
|
||||
'methods' => array(
|
||||
'get' => array(
|
||||
'path' => 'v1/projects/{projectId}/traces/{traceId}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'projectId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'traceId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'list' => array(
|
||||
'path' => 'v1/projects/{projectId}/traces',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'projectId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'orderBy' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'pageSize' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
'filter' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'pageToken' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'startTime' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'endTime' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'view' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
$this->v1 = new Google_Service_Cloudtrace_V1_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'v1',
|
||||
array(
|
||||
'methods' => array(
|
||||
'getDiscovery' => array(
|
||||
'path' => 'v1/discovery',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'labels' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
'repeated' => true,
|
||||
),
|
||||
'version' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'args' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
'repeated' => true,
|
||||
),
|
||||
'format' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "projects" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $cloudtraceService = new Google_Service_Cloudtrace(...);
|
||||
* $projects = $cloudtraceService->projects;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Cloudtrace_Projects_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Updates the existing traces specified by PatchTracesRequest and inserts the
|
||||
* new traces. Any existing trace or span fields included in an update are
|
||||
* overwritten by the update, and any additional fields in an update are merged
|
||||
* with the existing trace data. (projects.patchTraces)
|
||||
*
|
||||
* @param string $projectId The project id of the trace to patch.
|
||||
* @param Google_Traces $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudtrace_Empty
|
||||
*/
|
||||
public function patchTraces($projectId, Google_Service_Cloudtrace_Traces $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('projectId' => $projectId, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('patchTraces', array($params), "Google_Service_Cloudtrace_Empty");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "traces" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $cloudtraceService = new Google_Service_Cloudtrace(...);
|
||||
* $traces = $cloudtraceService->traces;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Cloudtrace_ProjectsTraces_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Gets one trace by id. (traces.get)
|
||||
*
|
||||
* @param string $projectId The project id of the trace to return.
|
||||
* @param string $traceId The trace id of the trace to return.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudtrace_Trace
|
||||
*/
|
||||
public function get($projectId, $traceId, $optParams = array())
|
||||
{
|
||||
$params = array('projectId' => $projectId, 'traceId' => $traceId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_Cloudtrace_Trace");
|
||||
}
|
||||
|
||||
/**
|
||||
* List traces matching the filter expression. (traces.listProjectsTraces)
|
||||
*
|
||||
* @param string $projectId The stringified-version of the project id.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string orderBy The trace field used to establish the order of
|
||||
* traces returned by the ListTraces method. Possible options are: trace_id name
|
||||
* (name field of root span) duration (different between end_time and start_time
|
||||
* fields of root span) start (start_time field of root span) Descending order
|
||||
* can be specified by appending "desc" to the sort field: name desc Only one
|
||||
* sort field is permitted, though this may change in the future.
|
||||
* @opt_param int pageSize Maximum number of topics to return. If not specified
|
||||
* or <= 0, the implementation will select a reasonable value. The implemenation
|
||||
* may always return fewer than the requested page_size.
|
||||
* @opt_param string filter An optional filter for the request.
|
||||
* @opt_param string pageToken The token identifying the page of results to
|
||||
* return from the ListTraces method. If present, this value is should be taken
|
||||
* from the next_page_token field of a previous ListTracesResponse.
|
||||
* @opt_param string startTime End of the time interval (inclusive).
|
||||
* @opt_param string endTime Start of the time interval (exclusive).
|
||||
* @opt_param string view ViewType specifies the projection of the result.
|
||||
* @return Google_Service_Cloudtrace_ListTracesResponse
|
||||
*/
|
||||
public function listProjectsTraces($projectId, $optParams = array())
|
||||
{
|
||||
$params = array('projectId' => $projectId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Cloudtrace_ListTracesResponse");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "v1" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $cloudtraceService = new Google_Service_Cloudtrace(...);
|
||||
* $v1 = $cloudtraceService->v1;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Cloudtrace_V1_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Returns a discovery document in the specified `format`. The typeurl in the
|
||||
* returned google.protobuf.Any value depends on the requested format.
|
||||
* (v1.getDiscovery)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string labels A list of labels (like visibility) influencing the
|
||||
* scope of the requested doc.
|
||||
* @opt_param string version The API version of the requested discovery doc.
|
||||
* @opt_param string args Any additional arguments.
|
||||
* @opt_param string format The format requested for discovery.
|
||||
*/
|
||||
public function getDiscovery($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('getDiscovery', array($params));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_Cloudtrace_Empty extends Google_Model
|
||||
{
|
||||
}
|
||||
|
||||
class Google_Service_Cloudtrace_ListTracesResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'traces';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $nextPageToken;
|
||||
protected $tracesType = 'Google_Service_Cloudtrace_Trace';
|
||||
protected $tracesDataType = 'array';
|
||||
|
||||
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
public function setTraces($traces)
|
||||
{
|
||||
$this->traces = $traces;
|
||||
}
|
||||
public function getTraces()
|
||||
{
|
||||
return $this->traces;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Cloudtrace_Trace extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'spans';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $projectId;
|
||||
protected $spansType = 'Google_Service_Cloudtrace_TraceSpan';
|
||||
protected $spansDataType = 'array';
|
||||
public $traceId;
|
||||
|
||||
|
||||
public function setProjectId($projectId)
|
||||
{
|
||||
$this->projectId = $projectId;
|
||||
}
|
||||
public function getProjectId()
|
||||
{
|
||||
return $this->projectId;
|
||||
}
|
||||
public function setSpans($spans)
|
||||
{
|
||||
$this->spans = $spans;
|
||||
}
|
||||
public function getSpans()
|
||||
{
|
||||
return $this->spans;
|
||||
}
|
||||
public function setTraceId($traceId)
|
||||
{
|
||||
$this->traceId = $traceId;
|
||||
}
|
||||
public function getTraceId()
|
||||
{
|
||||
return $this->traceId;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Cloudtrace_TraceSpan extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $endTime;
|
||||
public $kind;
|
||||
public $labels;
|
||||
public $name;
|
||||
public $parentSpanId;
|
||||
public $spanId;
|
||||
public $startTime;
|
||||
|
||||
|
||||
public function setEndTime($endTime)
|
||||
{
|
||||
$this->endTime = $endTime;
|
||||
}
|
||||
public function getEndTime()
|
||||
{
|
||||
return $this->endTime;
|
||||
}
|
||||
public function setKind($kind)
|
||||
{
|
||||
$this->kind = $kind;
|
||||
}
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
public function setLabels($labels)
|
||||
{
|
||||
$this->labels = $labels;
|
||||
}
|
||||
public function getLabels()
|
||||
{
|
||||
return $this->labels;
|
||||
}
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
public function setParentSpanId($parentSpanId)
|
||||
{
|
||||
$this->parentSpanId = $parentSpanId;
|
||||
}
|
||||
public function getParentSpanId()
|
||||
{
|
||||
return $this->parentSpanId;
|
||||
}
|
||||
public function setSpanId($spanId)
|
||||
{
|
||||
$this->spanId = $spanId;
|
||||
}
|
||||
public function getSpanId()
|
||||
{
|
||||
return $this->spanId;
|
||||
}
|
||||
public function setStartTime($startTime)
|
||||
{
|
||||
$this->startTime = $startTime;
|
||||
}
|
||||
public function getStartTime()
|
||||
{
|
||||
return $this->startTime;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Cloudtrace_TraceSpanLabels extends Google_Model
|
||||
{
|
||||
}
|
||||
|
||||
class Google_Service_Cloudtrace_Traces extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'traces';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $tracesType = 'Google_Service_Cloudtrace_Trace';
|
||||
protected $tracesDataType = 'array';
|
||||
|
||||
|
||||
public function setTraces($traces)
|
||||
{
|
||||
$this->traces = $traces;
|
||||
}
|
||||
public function getTraces()
|
||||
{
|
||||
return $this->traces;
|
||||
}
|
||||
}
|
17953
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Compute.php
vendored
Normal file
17953
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Compute.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1689
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Computeaccounts.php
vendored
Normal file
1689
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Computeaccounts.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
913
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Container.php
vendored
Normal file
913
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Container.php
vendored
Normal file
|
@ -0,0 +1,913 @@
|
|||
<?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 Container (v1).
|
||||
*
|
||||
* <p>
|
||||
* The Google Container Engine API is used for building and managing container
|
||||
* based applications, powered by the open source Kubernetes technology.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://cloud.google.com/container-engine/" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_Container extends Google_Service
|
||||
{
|
||||
/** View and manage your data across Google Cloud Platform services. */
|
||||
const CLOUD_PLATFORM =
|
||||
"https://www.googleapis.com/auth/cloud-platform";
|
||||
|
||||
public $projects_zones;
|
||||
public $projects_zones_clusters;
|
||||
public $projects_zones_operations;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the Container service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://container.googleapis.com/';
|
||||
$this->servicePath = '';
|
||||
$this->version = 'v1';
|
||||
$this->serviceName = 'container';
|
||||
|
||||
$this->projects_zones = new Google_Service_Container_ProjectsZones_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'zones',
|
||||
array(
|
||||
'methods' => array(
|
||||
'getServerconfig' => array(
|
||||
'path' => 'v1/projects/{projectId}/zones/{zone}/serverconfig',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'projectId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'zone' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
$this->projects_zones_clusters = new Google_Service_Container_ProjectsZonesClusters_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'clusters',
|
||||
array(
|
||||
'methods' => array(
|
||||
'create' => array(
|
||||
'path' => 'v1/projects/{projectId}/zones/{zone}/clusters',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'projectId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'zone' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'delete' => array(
|
||||
'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}',
|
||||
'httpMethod' => 'DELETE',
|
||||
'parameters' => array(
|
||||
'projectId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'zone' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'clusterId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'get' => array(
|
||||
'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'projectId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'zone' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'clusterId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'list' => array(
|
||||
'path' => 'v1/projects/{projectId}/zones/{zone}/clusters',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'projectId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'zone' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'update' => array(
|
||||
'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}',
|
||||
'httpMethod' => 'PUT',
|
||||
'parameters' => array(
|
||||
'projectId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'zone' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'clusterId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
$this->projects_zones_operations = new Google_Service_Container_ProjectsZonesOperations_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'operations',
|
||||
array(
|
||||
'methods' => array(
|
||||
'get' => array(
|
||||
'path' => 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'projectId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'zone' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'operationId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'list' => array(
|
||||
'path' => 'v1/projects/{projectId}/zones/{zone}/operations',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'projectId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'zone' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "projects" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $containerService = new Google_Service_Container(...);
|
||||
* $projects = $containerService->projects;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Container_Projects_Resource extends Google_Service_Resource
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* The "zones" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $containerService = new Google_Service_Container(...);
|
||||
* $zones = $containerService->zones;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Container_ProjectsZones_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Returns configuration info about the Container Engine service.
|
||||
* (zones.getServerconfig)
|
||||
*
|
||||
* @param string $projectId The Google Developers Console [project ID or project
|
||||
* number](https://developers.google.com/console/help/new/#projectnumber).
|
||||
* @param string $zone The name of the Google Compute Engine
|
||||
* [zone](/compute/docs/zones#available) to return operations for, or "-" for
|
||||
* all zones.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Container_ServerConfig
|
||||
*/
|
||||
public function getServerconfig($projectId, $zone, $optParams = array())
|
||||
{
|
||||
$params = array('projectId' => $projectId, 'zone' => $zone);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('getServerconfig', array($params), "Google_Service_Container_ServerConfig");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "clusters" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $containerService = new Google_Service_Container(...);
|
||||
* $clusters = $containerService->clusters;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Container_ProjectsZonesClusters_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Creates a cluster, consisting of the specified number and type of Google
|
||||
* Compute Engine instances, plus a Kubernetes master endpoint. By default, the
|
||||
* cluster is created in the project's [default
|
||||
* network](/compute/docs/networking#networks_1). One firewall is added for the
|
||||
* cluster. After cluster creation, the cluster creates routes for each node to
|
||||
* allow the containers on that node to communicate with all other instances in
|
||||
* the cluster. Finally, an entry is added to the project's global metadata
|
||||
* indicating which CIDR range is being used by the cluster. (clusters.create)
|
||||
*
|
||||
* @param string $projectId The Google Developers Console [project ID or project
|
||||
* number](https://developers.google.com/console/help/new/#projectnumber).
|
||||
* @param string $zone The name of the Google Compute Engine
|
||||
* [zone](/compute/docs/zones#available) in which the cluster resides.
|
||||
* @param Google_CreateClusterRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Container_Operation
|
||||
*/
|
||||
public function create($projectId, $zone, Google_Service_Container_CreateClusterRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('projectId' => $projectId, 'zone' => $zone, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('create', array($params), "Google_Service_Container_Operation");
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes the cluster, including the Kubernetes endpoint and all worker nodes.
|
||||
* Firewalls and routes that were configured during cluster creation are also
|
||||
* deleted. (clusters.delete)
|
||||
*
|
||||
* @param string $projectId The Google Developers Console [project ID or project
|
||||
* number](https://developers.google.com/console/help/new/#projectnumber).
|
||||
* @param string $zone The name of the Google Compute Engine
|
||||
* [zone](/compute/docs/zones#available) in which the cluster resides.
|
||||
* @param string $clusterId The name of the cluster to delete.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Container_Operation
|
||||
*/
|
||||
public function delete($projectId, $zone, $clusterId, $optParams = array())
|
||||
{
|
||||
$params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete', array($params), "Google_Service_Container_Operation");
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a specific cluster. (clusters.get)
|
||||
*
|
||||
* @param string $projectId The Google Developers Console [project ID or project
|
||||
* number](https://developers.google.com/console/help/new/#projectnumber).
|
||||
* @param string $zone The name of the Google Compute Engine
|
||||
* [zone](/compute/docs/zones#available) in which the cluster resides.
|
||||
* @param string $clusterId The name of the cluster to retrieve.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Container_Cluster
|
||||
*/
|
||||
public function get($projectId, $zone, $clusterId, $optParams = array())
|
||||
{
|
||||
$params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_Container_Cluster");
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists all clusters owned by a project in either the specified zone or all
|
||||
* zones. (clusters.listProjectsZonesClusters)
|
||||
*
|
||||
* @param string $projectId The Google Developers Console [project ID or project
|
||||
* number](https://developers.google.com/console/help/new/#projectnumber).
|
||||
* @param string $zone The name of the Google Compute Engine
|
||||
* [zone](/compute/docs/zones#available) in which the cluster resides, or "-"
|
||||
* for all zones.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Container_ListClustersResponse
|
||||
*/
|
||||
public function listProjectsZonesClusters($projectId, $zone, $optParams = array())
|
||||
{
|
||||
$params = array('projectId' => $projectId, 'zone' => $zone);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Container_ListClustersResponse");
|
||||
}
|
||||
|
||||
/**
|
||||
* Update settings of a specific cluster. (clusters.update)
|
||||
*
|
||||
* @param string $projectId The Google Developers Console [project ID or project
|
||||
* number](https://developers.google.com/console/help/new/#projectnumber).
|
||||
* @param string $zone The name of the Google Compute Engine
|
||||
* [zone](/compute/docs/zones#available) in which the cluster resides.
|
||||
* @param string $clusterId The name of the cluster to upgrade.
|
||||
* @param Google_UpdateClusterRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Container_Operation
|
||||
*/
|
||||
public function update($projectId, $zone, $clusterId, Google_Service_Container_UpdateClusterRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('update', array($params), "Google_Service_Container_Operation");
|
||||
}
|
||||
}
|
||||
/**
|
||||
* The "operations" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $containerService = new Google_Service_Container(...);
|
||||
* $operations = $containerService->operations;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Container_ProjectsZonesOperations_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Gets the specified operation. (operations.get)
|
||||
*
|
||||
* @param string $projectId The Google Developers Console [project ID or project
|
||||
* number](https://developers.google.com/console/help/new/#projectnumber).
|
||||
* @param string $zone The name of the Google Compute Engine
|
||||
* [zone](/compute/docs/zones#available) in which the cluster resides.
|
||||
* @param string $operationId The server-assigned `name` of the operation.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Container_Operation
|
||||
*/
|
||||
public function get($projectId, $zone, $operationId, $optParams = array())
|
||||
{
|
||||
$params = array('projectId' => $projectId, 'zone' => $zone, 'operationId' => $operationId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_Container_Operation");
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists all operations in a project in a specific zone or all zones.
|
||||
* (operations.listProjectsZonesOperations)
|
||||
*
|
||||
* @param string $projectId The Google Developers Console [project ID or project
|
||||
* number](https://developers.google.com/console/help/new/#projectnumber).
|
||||
* @param string $zone The name of the Google Compute Engine
|
||||
* [zone](/compute/docs/zones#available) to return operations for, or "-" for
|
||||
* all zones.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Container_ListOperationsResponse
|
||||
*/
|
||||
public function listProjectsZonesOperations($projectId, $zone, $optParams = array())
|
||||
{
|
||||
$params = array('projectId' => $projectId, 'zone' => $zone);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Container_ListOperationsResponse");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_Container_Cluster extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'instanceGroupUrls';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $clusterIpv4Cidr;
|
||||
public $createTime;
|
||||
public $currentMasterVersion;
|
||||
public $currentNodeVersion;
|
||||
public $description;
|
||||
public $endpoint;
|
||||
public $initialClusterVersion;
|
||||
public $initialNodeCount;
|
||||
public $instanceGroupUrls;
|
||||
public $loggingService;
|
||||
protected $masterAuthType = 'Google_Service_Container_MasterAuth';
|
||||
protected $masterAuthDataType = '';
|
||||
public $monitoringService;
|
||||
public $name;
|
||||
public $network;
|
||||
protected $nodeConfigType = 'Google_Service_Container_NodeConfig';
|
||||
protected $nodeConfigDataType = '';
|
||||
public $nodeIpv4CidrSize;
|
||||
public $selfLink;
|
||||
public $servicesIpv4Cidr;
|
||||
public $status;
|
||||
public $statusMessage;
|
||||
public $zone;
|
||||
|
||||
|
||||
public function setClusterIpv4Cidr($clusterIpv4Cidr)
|
||||
{
|
||||
$this->clusterIpv4Cidr = $clusterIpv4Cidr;
|
||||
}
|
||||
public function getClusterIpv4Cidr()
|
||||
{
|
||||
return $this->clusterIpv4Cidr;
|
||||
}
|
||||
public function setCreateTime($createTime)
|
||||
{
|
||||
$this->createTime = $createTime;
|
||||
}
|
||||
public function getCreateTime()
|
||||
{
|
||||
return $this->createTime;
|
||||
}
|
||||
public function setCurrentMasterVersion($currentMasterVersion)
|
||||
{
|
||||
$this->currentMasterVersion = $currentMasterVersion;
|
||||
}
|
||||
public function getCurrentMasterVersion()
|
||||
{
|
||||
return $this->currentMasterVersion;
|
||||
}
|
||||
public function setCurrentNodeVersion($currentNodeVersion)
|
||||
{
|
||||
$this->currentNodeVersion = $currentNodeVersion;
|
||||
}
|
||||
public function getCurrentNodeVersion()
|
||||
{
|
||||
return $this->currentNodeVersion;
|
||||
}
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
}
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
public function setEndpoint($endpoint)
|
||||
{
|
||||
$this->endpoint = $endpoint;
|
||||
}
|
||||
public function getEndpoint()
|
||||
{
|
||||
return $this->endpoint;
|
||||
}
|
||||
public function setInitialClusterVersion($initialClusterVersion)
|
||||
{
|
||||
$this->initialClusterVersion = $initialClusterVersion;
|
||||
}
|
||||
public function getInitialClusterVersion()
|
||||
{
|
||||
return $this->initialClusterVersion;
|
||||
}
|
||||
public function setInitialNodeCount($initialNodeCount)
|
||||
{
|
||||
$this->initialNodeCount = $initialNodeCount;
|
||||
}
|
||||
public function getInitialNodeCount()
|
||||
{
|
||||
return $this->initialNodeCount;
|
||||
}
|
||||
public function setInstanceGroupUrls($instanceGroupUrls)
|
||||
{
|
||||
$this->instanceGroupUrls = $instanceGroupUrls;
|
||||
}
|
||||
public function getInstanceGroupUrls()
|
||||
{
|
||||
return $this->instanceGroupUrls;
|
||||
}
|
||||
public function setLoggingService($loggingService)
|
||||
{
|
||||
$this->loggingService = $loggingService;
|
||||
}
|
||||
public function getLoggingService()
|
||||
{
|
||||
return $this->loggingService;
|
||||
}
|
||||
public function setMasterAuth(Google_Service_Container_MasterAuth $masterAuth)
|
||||
{
|
||||
$this->masterAuth = $masterAuth;
|
||||
}
|
||||
public function getMasterAuth()
|
||||
{
|
||||
return $this->masterAuth;
|
||||
}
|
||||
public function setMonitoringService($monitoringService)
|
||||
{
|
||||
$this->monitoringService = $monitoringService;
|
||||
}
|
||||
public function getMonitoringService()
|
||||
{
|
||||
return $this->monitoringService;
|
||||
}
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
public function setNetwork($network)
|
||||
{
|
||||
$this->network = $network;
|
||||
}
|
||||
public function getNetwork()
|
||||
{
|
||||
return $this->network;
|
||||
}
|
||||
public function setNodeConfig(Google_Service_Container_NodeConfig $nodeConfig)
|
||||
{
|
||||
$this->nodeConfig = $nodeConfig;
|
||||
}
|
||||
public function getNodeConfig()
|
||||
{
|
||||
return $this->nodeConfig;
|
||||
}
|
||||
public function setNodeIpv4CidrSize($nodeIpv4CidrSize)
|
||||
{
|
||||
$this->nodeIpv4CidrSize = $nodeIpv4CidrSize;
|
||||
}
|
||||
public function getNodeIpv4CidrSize()
|
||||
{
|
||||
return $this->nodeIpv4CidrSize;
|
||||
}
|
||||
public function setSelfLink($selfLink)
|
||||
{
|
||||
$this->selfLink = $selfLink;
|
||||
}
|
||||
public function getSelfLink()
|
||||
{
|
||||
return $this->selfLink;
|
||||
}
|
||||
public function setServicesIpv4Cidr($servicesIpv4Cidr)
|
||||
{
|
||||
$this->servicesIpv4Cidr = $servicesIpv4Cidr;
|
||||
}
|
||||
public function getServicesIpv4Cidr()
|
||||
{
|
||||
return $this->servicesIpv4Cidr;
|
||||
}
|
||||
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 setZone($zone)
|
||||
{
|
||||
$this->zone = $zone;
|
||||
}
|
||||
public function getZone()
|
||||
{
|
||||
return $this->zone;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Container_ClusterUpdate extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $desiredNodeVersion;
|
||||
|
||||
|
||||
public function setDesiredNodeVersion($desiredNodeVersion)
|
||||
{
|
||||
$this->desiredNodeVersion = $desiredNodeVersion;
|
||||
}
|
||||
public function getDesiredNodeVersion()
|
||||
{
|
||||
return $this->desiredNodeVersion;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Container_CreateClusterRequest extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $clusterType = 'Google_Service_Container_Cluster';
|
||||
protected $clusterDataType = '';
|
||||
|
||||
|
||||
public function setCluster(Google_Service_Container_Cluster $cluster)
|
||||
{
|
||||
$this->cluster = $cluster;
|
||||
}
|
||||
public function getCluster()
|
||||
{
|
||||
return $this->cluster;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Container_ListClustersResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'clusters';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $clustersType = 'Google_Service_Container_Cluster';
|
||||
protected $clustersDataType = 'array';
|
||||
|
||||
|
||||
public function setClusters($clusters)
|
||||
{
|
||||
$this->clusters = $clusters;
|
||||
}
|
||||
public function getClusters()
|
||||
{
|
||||
return $this->clusters;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Container_ListOperationsResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'operations';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $operationsType = 'Google_Service_Container_Operation';
|
||||
protected $operationsDataType = 'array';
|
||||
|
||||
|
||||
public function setOperations($operations)
|
||||
{
|
||||
$this->operations = $operations;
|
||||
}
|
||||
public function getOperations()
|
||||
{
|
||||
return $this->operations;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Container_MasterAuth extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $clientCertificate;
|
||||
public $clientKey;
|
||||
public $clusterCaCertificate;
|
||||
public $password;
|
||||
public $username;
|
||||
|
||||
|
||||
public function setClientCertificate($clientCertificate)
|
||||
{
|
||||
$this->clientCertificate = $clientCertificate;
|
||||
}
|
||||
public function getClientCertificate()
|
||||
{
|
||||
return $this->clientCertificate;
|
||||
}
|
||||
public function setClientKey($clientKey)
|
||||
{
|
||||
$this->clientKey = $clientKey;
|
||||
}
|
||||
public function getClientKey()
|
||||
{
|
||||
return $this->clientKey;
|
||||
}
|
||||
public function setClusterCaCertificate($clusterCaCertificate)
|
||||
{
|
||||
$this->clusterCaCertificate = $clusterCaCertificate;
|
||||
}
|
||||
public function getClusterCaCertificate()
|
||||
{
|
||||
return $this->clusterCaCertificate;
|
||||
}
|
||||
public function setPassword($password)
|
||||
{
|
||||
$this->password = $password;
|
||||
}
|
||||
public function getPassword()
|
||||
{
|
||||
return $this->password;
|
||||
}
|
||||
public function setUsername($username)
|
||||
{
|
||||
$this->username = $username;
|
||||
}
|
||||
public function getUsername()
|
||||
{
|
||||
return $this->username;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Container_NodeConfig extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'oauthScopes';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $diskSizeGb;
|
||||
public $machineType;
|
||||
public $oauthScopes;
|
||||
|
||||
|
||||
public function setDiskSizeGb($diskSizeGb)
|
||||
{
|
||||
$this->diskSizeGb = $diskSizeGb;
|
||||
}
|
||||
public function getDiskSizeGb()
|
||||
{
|
||||
return $this->diskSizeGb;
|
||||
}
|
||||
public function setMachineType($machineType)
|
||||
{
|
||||
$this->machineType = $machineType;
|
||||
}
|
||||
public function getMachineType()
|
||||
{
|
||||
return $this->machineType;
|
||||
}
|
||||
public function setOauthScopes($oauthScopes)
|
||||
{
|
||||
$this->oauthScopes = $oauthScopes;
|
||||
}
|
||||
public function getOauthScopes()
|
||||
{
|
||||
return $this->oauthScopes;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Container_Operation extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $name;
|
||||
public $operationType;
|
||||
public $selfLink;
|
||||
public $status;
|
||||
public $statusMessage;
|
||||
public $targetLink;
|
||||
public $zone;
|
||||
|
||||
|
||||
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 setSelfLink($selfLink)
|
||||
{
|
||||
$this->selfLink = $selfLink;
|
||||
}
|
||||
public function getSelfLink()
|
||||
{
|
||||
return $this->selfLink;
|
||||
}
|
||||
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 setTargetLink($targetLink)
|
||||
{
|
||||
$this->targetLink = $targetLink;
|
||||
}
|
||||
public function getTargetLink()
|
||||
{
|
||||
return $this->targetLink;
|
||||
}
|
||||
public function setZone($zone)
|
||||
{
|
||||
$this->zone = $zone;
|
||||
}
|
||||
public function getZone()
|
||||
{
|
||||
return $this->zone;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Container_ServerConfig extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'validNodeVersions';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $defaultClusterVersion;
|
||||
public $validNodeVersions;
|
||||
|
||||
|
||||
public function setDefaultClusterVersion($defaultClusterVersion)
|
||||
{
|
||||
$this->defaultClusterVersion = $defaultClusterVersion;
|
||||
}
|
||||
public function getDefaultClusterVersion()
|
||||
{
|
||||
return $this->defaultClusterVersion;
|
||||
}
|
||||
public function setValidNodeVersions($validNodeVersions)
|
||||
{
|
||||
$this->validNodeVersions = $validNodeVersions;
|
||||
}
|
||||
public function getValidNodeVersions()
|
||||
{
|
||||
return $this->validNodeVersions;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Container_UpdateClusterRequest extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $updateType = 'Google_Service_Container_ClusterUpdate';
|
||||
protected $updateDataType = '';
|
||||
|
||||
|
||||
public function setUpdate(Google_Service_Container_ClusterUpdate $update)
|
||||
{
|
||||
$this->update = $update;
|
||||
}
|
||||
public function getUpdate()
|
||||
{
|
||||
return $this->update;
|
||||
}
|
||||
}
|
1570
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Coordinate.php
vendored
Normal file
1570
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Coordinate.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1277
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php
vendored
Normal file
1277
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
554
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DataTransfer.php
vendored
Normal file
554
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DataTransfer.php
vendored
Normal file
|
@ -0,0 +1,554 @@
|
|||
<?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 DataTransfer (datatransfer_v1).
|
||||
*
|
||||
* <p>
|
||||
* Admin Data Transfer API lets you transfer user data from one user to another.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://developers.google.com/admin-sdk/data-transfer/" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_DataTransfer extends Google_Service
|
||||
{
|
||||
/** View and manage data transfers between users in your organization. */
|
||||
const ADMIN_DATATRANSFER =
|
||||
"https://www.googleapis.com/auth/admin.datatransfer";
|
||||
/** View data transfers between users in your organization. */
|
||||
const ADMIN_DATATRANSFER_READONLY =
|
||||
"https://www.googleapis.com/auth/admin.datatransfer.readonly";
|
||||
|
||||
public $applications;
|
||||
public $transfers;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the DataTransfer service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://www.googleapis.com/';
|
||||
$this->servicePath = 'admin/datatransfer/v1/';
|
||||
$this->version = 'datatransfer_v1';
|
||||
$this->serviceName = 'admin';
|
||||
|
||||
$this->applications = new Google_Service_DataTransfer_Applications_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'applications',
|
||||
array(
|
||||
'methods' => array(
|
||||
'get' => array(
|
||||
'path' => 'applications/{applicationId}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'applicationId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'list' => array(
|
||||
'path' => 'applications',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'pageToken' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'customerId' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'maxResults' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
$this->transfers = new Google_Service_DataTransfer_Transfers_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'transfers',
|
||||
array(
|
||||
'methods' => array(
|
||||
'get' => array(
|
||||
'path' => 'transfers/{dataTransferId}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'dataTransferId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'insert' => array(
|
||||
'path' => 'transfers',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(),
|
||||
),'list' => array(
|
||||
'path' => 'transfers',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'status' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'maxResults' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
'newOwnerUserId' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'oldOwnerUserId' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'pageToken' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'customerId' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "applications" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $adminService = new Google_Service_DataTransfer(...);
|
||||
* $applications = $adminService->applications;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_DataTransfer_Applications_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Retrieves information about an application for the given application ID.
|
||||
* (applications.get)
|
||||
*
|
||||
* @param string $applicationId ID of the application resource to be retrieved.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_DataTransfer_Application
|
||||
*/
|
||||
public function get($applicationId, $optParams = array())
|
||||
{
|
||||
$params = array('applicationId' => $applicationId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_DataTransfer_Application");
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists the applications available for data transfer for a customer.
|
||||
* (applications.listApplications)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string pageToken Token to specify next page in the list.
|
||||
* @opt_param string customerId Immutable ID of the Google Apps account.
|
||||
* @opt_param string maxResults Maximum number of results to return. Default is
|
||||
* 100.
|
||||
* @return Google_Service_DataTransfer_ApplicationsListResponse
|
||||
*/
|
||||
public function listApplications($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_DataTransfer_ApplicationsListResponse");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "transfers" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $adminService = new Google_Service_DataTransfer(...);
|
||||
* $transfers = $adminService->transfers;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_DataTransfer_Transfers_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Retrieves a data transfer request by its resource ID. (transfers.get)
|
||||
*
|
||||
* @param string $dataTransferId ID of the resource to be retrieved. This is
|
||||
* returned in the response from the insert method.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_DataTransfer_DataTransfer
|
||||
*/
|
||||
public function get($dataTransferId, $optParams = array())
|
||||
{
|
||||
$params = array('dataTransferId' => $dataTransferId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_DataTransfer_DataTransfer");
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a data transfer request. (transfers.insert)
|
||||
*
|
||||
* @param Google_DataTransfer $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_DataTransfer_DataTransfer
|
||||
*/
|
||||
public function insert(Google_Service_DataTransfer_DataTransfer $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('insert', array($params), "Google_Service_DataTransfer_DataTransfer");
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists the transfers for a customer by source user, destination user, or
|
||||
* status. (transfers.listTransfers)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string status Status of the transfer.
|
||||
* @opt_param int maxResults Maximum number of results to return. Default is
|
||||
* 100.
|
||||
* @opt_param string newOwnerUserId Destination user's profile ID.
|
||||
* @opt_param string oldOwnerUserId Source user's profile ID.
|
||||
* @opt_param string pageToken Token to specify the next page in the list.
|
||||
* @opt_param string customerId Immutable ID of the Google Apps account.
|
||||
* @return Google_Service_DataTransfer_DataTransfersListResponse
|
||||
*/
|
||||
public function listTransfers($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_DataTransfer_DataTransfersListResponse");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_DataTransfer_Application extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'transferParams';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $etag;
|
||||
public $id;
|
||||
public $kind;
|
||||
public $name;
|
||||
protected $transferParamsType = 'Google_Service_DataTransfer_ApplicationTransferParam';
|
||||
protected $transferParamsDataType = 'array';
|
||||
|
||||
|
||||
public function setEtag($etag)
|
||||
{
|
||||
$this->etag = $etag;
|
||||
}
|
||||
public function getEtag()
|
||||
{
|
||||
return $this->etag;
|
||||
}
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
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 setTransferParams($transferParams)
|
||||
{
|
||||
$this->transferParams = $transferParams;
|
||||
}
|
||||
public function getTransferParams()
|
||||
{
|
||||
return $this->transferParams;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_DataTransfer_ApplicationDataTransfer extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'applicationTransferParams';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $applicationId;
|
||||
protected $applicationTransferParamsType = 'Google_Service_DataTransfer_ApplicationTransferParam';
|
||||
protected $applicationTransferParamsDataType = 'array';
|
||||
public $applicationTransferStatus;
|
||||
|
||||
|
||||
public function setApplicationId($applicationId)
|
||||
{
|
||||
$this->applicationId = $applicationId;
|
||||
}
|
||||
public function getApplicationId()
|
||||
{
|
||||
return $this->applicationId;
|
||||
}
|
||||
public function setApplicationTransferParams($applicationTransferParams)
|
||||
{
|
||||
$this->applicationTransferParams = $applicationTransferParams;
|
||||
}
|
||||
public function getApplicationTransferParams()
|
||||
{
|
||||
return $this->applicationTransferParams;
|
||||
}
|
||||
public function setApplicationTransferStatus($applicationTransferStatus)
|
||||
{
|
||||
$this->applicationTransferStatus = $applicationTransferStatus;
|
||||
}
|
||||
public function getApplicationTransferStatus()
|
||||
{
|
||||
return $this->applicationTransferStatus;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_DataTransfer_ApplicationTransferParam extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'value';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_DataTransfer_ApplicationsListResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'applications';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $applicationsType = 'Google_Service_DataTransfer_Application';
|
||||
protected $applicationsDataType = 'array';
|
||||
public $etag;
|
||||
public $kind;
|
||||
public $nextPageToken;
|
||||
|
||||
|
||||
public function setApplications($applications)
|
||||
{
|
||||
$this->applications = $applications;
|
||||
}
|
||||
public function getApplications()
|
||||
{
|
||||
return $this->applications;
|
||||
}
|
||||
public function setEtag($etag)
|
||||
{
|
||||
$this->etag = $etag;
|
||||
}
|
||||
public function getEtag()
|
||||
{
|
||||
return $this->etag;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_DataTransfer_DataTransfer extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'applicationDataTransfers';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $applicationDataTransfersType = 'Google_Service_DataTransfer_ApplicationDataTransfer';
|
||||
protected $applicationDataTransfersDataType = 'array';
|
||||
public $etag;
|
||||
public $id;
|
||||
public $kind;
|
||||
public $newOwnerUserId;
|
||||
public $oldOwnerUserId;
|
||||
public $overallTransferStatusCode;
|
||||
public $requestTime;
|
||||
|
||||
|
||||
public function setApplicationDataTransfers($applicationDataTransfers)
|
||||
{
|
||||
$this->applicationDataTransfers = $applicationDataTransfers;
|
||||
}
|
||||
public function getApplicationDataTransfers()
|
||||
{
|
||||
return $this->applicationDataTransfers;
|
||||
}
|
||||
public function setEtag($etag)
|
||||
{
|
||||
$this->etag = $etag;
|
||||
}
|
||||
public function getEtag()
|
||||
{
|
||||
return $this->etag;
|
||||
}
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
public function setKind($kind)
|
||||
{
|
||||
$this->kind = $kind;
|
||||
}
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
public function setNewOwnerUserId($newOwnerUserId)
|
||||
{
|
||||
$this->newOwnerUserId = $newOwnerUserId;
|
||||
}
|
||||
public function getNewOwnerUserId()
|
||||
{
|
||||
return $this->newOwnerUserId;
|
||||
}
|
||||
public function setOldOwnerUserId($oldOwnerUserId)
|
||||
{
|
||||
$this->oldOwnerUserId = $oldOwnerUserId;
|
||||
}
|
||||
public function getOldOwnerUserId()
|
||||
{
|
||||
return $this->oldOwnerUserId;
|
||||
}
|
||||
public function setOverallTransferStatusCode($overallTransferStatusCode)
|
||||
{
|
||||
$this->overallTransferStatusCode = $overallTransferStatusCode;
|
||||
}
|
||||
public function getOverallTransferStatusCode()
|
||||
{
|
||||
return $this->overallTransferStatusCode;
|
||||
}
|
||||
public function setRequestTime($requestTime)
|
||||
{
|
||||
$this->requestTime = $requestTime;
|
||||
}
|
||||
public function getRequestTime()
|
||||
{
|
||||
return $this->requestTime;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_DataTransfer_DataTransfersListResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'dataTransfers';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $dataTransfersType = 'Google_Service_DataTransfer_DataTransfer';
|
||||
protected $dataTransfersDataType = 'array';
|
||||
public $etag;
|
||||
public $kind;
|
||||
public $nextPageToken;
|
||||
|
||||
|
||||
public function setDataTransfers($dataTransfers)
|
||||
{
|
||||
$this->dataTransfers = $dataTransfers;
|
||||
}
|
||||
public function getDataTransfers()
|
||||
{
|
||||
return $this->dataTransfers;
|
||||
}
|
||||
public function setEtag($etag)
|
||||
{
|
||||
$this->etag = $etag;
|
||||
}
|
||||
public function getEtag()
|
||||
{
|
||||
return $this->etag;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
3708
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dataflow.php
vendored
Normal file
3708
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dataflow.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1525
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Datastore.php
vendored
Normal file
1525
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Datastore.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2019
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DeploymentManager.php
vendored
Normal file
2019
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DeploymentManager.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
21443
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dfareporting.php
vendored
Normal file
21443
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dfareporting.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7180
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php
vendored
Normal file
7180
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
926
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dns.php
vendored
Normal file
926
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dns.php
vendored
Normal file
|
@ -0,0 +1,926 @@
|
|||
<?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 Dns (v1).
|
||||
*
|
||||
* <p>
|
||||
* The Google Cloud DNS API provides services for configuring and serving
|
||||
* authoritative DNS records.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://developers.google.com/cloud-dns" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_Dns extends Google_Service
|
||||
{
|
||||
/** View and manage your data across Google Cloud Platform services. */
|
||||
const CLOUD_PLATFORM =
|
||||
"https://www.googleapis.com/auth/cloud-platform";
|
||||
/** View your data across Google Cloud Platform services. */
|
||||
const CLOUD_PLATFORM_READ_ONLY =
|
||||
"https://www.googleapis.com/auth/cloud-platform.read-only";
|
||||
/** View your DNS records hosted by Google Cloud DNS. */
|
||||
const NDEV_CLOUDDNS_READONLY =
|
||||
"https://www.googleapis.com/auth/ndev.clouddns.readonly";
|
||||
/** View and manage your DNS records hosted by Google Cloud DNS. */
|
||||
const NDEV_CLOUDDNS_READWRITE =
|
||||
"https://www.googleapis.com/auth/ndev.clouddns.readwrite";
|
||||
|
||||
public $changes;
|
||||
public $managedZones;
|
||||
public $projects;
|
||||
public $resourceRecordSets;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the Dns service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://www.googleapis.com/';
|
||||
$this->servicePath = 'dns/v1/projects/';
|
||||
$this->version = 'v1';
|
||||
$this->serviceName = 'dns';
|
||||
|
||||
$this->changes = new Google_Service_Dns_Changes_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'changes',
|
||||
array(
|
||||
'methods' => array(
|
||||
'create' => array(
|
||||
'path' => '{project}/managedZones/{managedZone}/changes',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'project' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'managedZone' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'get' => array(
|
||||
'path' => '{project}/managedZones/{managedZone}/changes/{changeId}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'project' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'managedZone' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'changeId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'list' => array(
|
||||
'path' => '{project}/managedZones/{managedZone}/changes',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'project' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'managedZone' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'maxResults' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
'pageToken' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'sortBy' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'sortOrder' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
$this->managedZones = new Google_Service_Dns_ManagedZones_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'managedZones',
|
||||
array(
|
||||
'methods' => array(
|
||||
'create' => array(
|
||||
'path' => '{project}/managedZones',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'project' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'delete' => array(
|
||||
'path' => '{project}/managedZones/{managedZone}',
|
||||
'httpMethod' => 'DELETE',
|
||||
'parameters' => array(
|
||||
'project' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'managedZone' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'get' => array(
|
||||
'path' => '{project}/managedZones/{managedZone}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'project' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'managedZone' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'list' => array(
|
||||
'path' => '{project}/managedZones',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'project' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'pageToken' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'dnsName' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'maxResults' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
$this->projects = new Google_Service_Dns_Projects_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'projects',
|
||||
array(
|
||||
'methods' => array(
|
||||
'get' => array(
|
||||
'path' => '{project}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'project' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
$this->resourceRecordSets = new Google_Service_Dns_ResourceRecordSets_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'resourceRecordSets',
|
||||
array(
|
||||
'methods' => array(
|
||||
'list' => array(
|
||||
'path' => '{project}/managedZones/{managedZone}/rrsets',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'project' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'managedZone' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'name' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'maxResults' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
'pageToken' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'type' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "changes" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $dnsService = new Google_Service_Dns(...);
|
||||
* $changes = $dnsService->changes;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Dns_Changes_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Atomically update the ResourceRecordSet collection. (changes.create)
|
||||
*
|
||||
* @param string $project Identifies the project addressed by this request.
|
||||
* @param string $managedZone Identifies the managed zone addressed by this
|
||||
* request. Can be the managed zone name or id.
|
||||
* @param Google_Change $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Dns_Change
|
||||
*/
|
||||
public function create($project, $managedZone, Google_Service_Dns_Change $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('project' => $project, 'managedZone' => $managedZone, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('create', array($params), "Google_Service_Dns_Change");
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch the representation of an existing Change. (changes.get)
|
||||
*
|
||||
* @param string $project Identifies the project addressed by this request.
|
||||
* @param string $managedZone Identifies the managed zone addressed by this
|
||||
* request. Can be the managed zone name or id.
|
||||
* @param string $changeId The identifier of the requested change, from a
|
||||
* previous ResourceRecordSetsChangeResponse.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Dns_Change
|
||||
*/
|
||||
public function get($project, $managedZone, $changeId, $optParams = array())
|
||||
{
|
||||
$params = array('project' => $project, 'managedZone' => $managedZone, 'changeId' => $changeId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_Dns_Change");
|
||||
}
|
||||
|
||||
/**
|
||||
* Enumerate Changes to a ResourceRecordSet collection. (changes.listChanges)
|
||||
*
|
||||
* @param string $project Identifies the project addressed by this request.
|
||||
* @param string $managedZone Identifies the managed zone addressed by this
|
||||
* request. Can be the managed zone name or id.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param int maxResults Optional. Maximum number of results to be returned.
|
||||
* If unspecified, the server will decide how many results to return.
|
||||
* @opt_param string pageToken Optional. A tag returned by a previous list
|
||||
* request that was truncated. Use this parameter to continue a previous list
|
||||
* request.
|
||||
* @opt_param string sortBy Sorting criterion. The only supported value is
|
||||
* change sequence.
|
||||
* @opt_param string sortOrder Sorting order direction: 'ascending' or
|
||||
* 'descending'.
|
||||
* @return Google_Service_Dns_ChangesListResponse
|
||||
*/
|
||||
public function listChanges($project, $managedZone, $optParams = array())
|
||||
{
|
||||
$params = array('project' => $project, 'managedZone' => $managedZone);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Dns_ChangesListResponse");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "managedZones" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $dnsService = new Google_Service_Dns(...);
|
||||
* $managedZones = $dnsService->managedZones;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Dns_ManagedZones_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Create a new ManagedZone. (managedZones.create)
|
||||
*
|
||||
* @param string $project Identifies the project addressed by this request.
|
||||
* @param Google_ManagedZone $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Dns_ManagedZone
|
||||
*/
|
||||
public function create($project, Google_Service_Dns_ManagedZone $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('project' => $project, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('create', array($params), "Google_Service_Dns_ManagedZone");
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete a previously created ManagedZone. (managedZones.delete)
|
||||
*
|
||||
* @param string $project Identifies the project addressed by this request.
|
||||
* @param string $managedZone Identifies the managed zone addressed by this
|
||||
* request. Can be the managed zone name or id.
|
||||
* @param array $optParams Optional parameters.
|
||||
*/
|
||||
public function delete($project, $managedZone, $optParams = array())
|
||||
{
|
||||
$params = array('project' => $project, 'managedZone' => $managedZone);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete', array($params));
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch the representation of an existing ManagedZone. (managedZones.get)
|
||||
*
|
||||
* @param string $project Identifies the project addressed by this request.
|
||||
* @param string $managedZone Identifies the managed zone addressed by this
|
||||
* request. Can be the managed zone name or id.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Dns_ManagedZone
|
||||
*/
|
||||
public function get($project, $managedZone, $optParams = array())
|
||||
{
|
||||
$params = array('project' => $project, 'managedZone' => $managedZone);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_Dns_ManagedZone");
|
||||
}
|
||||
|
||||
/**
|
||||
* Enumerate ManagedZones that have been created but not yet deleted.
|
||||
* (managedZones.listManagedZones)
|
||||
*
|
||||
* @param string $project Identifies the project addressed by this request.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string pageToken Optional. A tag returned by a previous list
|
||||
* request that was truncated. Use this parameter to continue a previous list
|
||||
* request.
|
||||
* @opt_param string dnsName Restricts the list to return only zones with this
|
||||
* domain name.
|
||||
* @opt_param int maxResults Optional. Maximum number of results to be returned.
|
||||
* If unspecified, the server will decide how many results to return.
|
||||
* @return Google_Service_Dns_ManagedZonesListResponse
|
||||
*/
|
||||
public function listManagedZones($project, $optParams = array())
|
||||
{
|
||||
$params = array('project' => $project);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Dns_ManagedZonesListResponse");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "projects" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $dnsService = new Google_Service_Dns(...);
|
||||
* $projects = $dnsService->projects;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Dns_Projects_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Fetch the representation of an existing Project. (projects.get)
|
||||
*
|
||||
* @param string $project Identifies the project addressed by this request.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Dns_Project
|
||||
*/
|
||||
public function get($project, $optParams = array())
|
||||
{
|
||||
$params = array('project' => $project);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_Dns_Project");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "resourceRecordSets" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $dnsService = new Google_Service_Dns(...);
|
||||
* $resourceRecordSets = $dnsService->resourceRecordSets;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Dns_ResourceRecordSets_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Enumerate ResourceRecordSets that have been created but not yet deleted.
|
||||
* (resourceRecordSets.listResourceRecordSets)
|
||||
*
|
||||
* @param string $project Identifies the project addressed by this request.
|
||||
* @param string $managedZone Identifies the managed zone addressed by this
|
||||
* request. Can be the managed zone name or id.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string name Restricts the list to return only records with this
|
||||
* fully qualified domain name.
|
||||
* @opt_param int maxResults Optional. Maximum number of results to be returned.
|
||||
* If unspecified, the server will decide how many results to return.
|
||||
* @opt_param string pageToken Optional. A tag returned by a previous list
|
||||
* request that was truncated. Use this parameter to continue a previous list
|
||||
* request.
|
||||
* @opt_param string type Restricts the list to return only records of this
|
||||
* type. If present, the "name" parameter must also be present.
|
||||
* @return Google_Service_Dns_ResourceRecordSetsListResponse
|
||||
*/
|
||||
public function listResourceRecordSets($project, $managedZone, $optParams = array())
|
||||
{
|
||||
$params = array('project' => $project, 'managedZone' => $managedZone);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Dns_ResourceRecordSetsListResponse");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_Dns_Change extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'deletions';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $additionsType = 'Google_Service_Dns_ResourceRecordSet';
|
||||
protected $additionsDataType = 'array';
|
||||
protected $deletionsType = 'Google_Service_Dns_ResourceRecordSet';
|
||||
protected $deletionsDataType = 'array';
|
||||
public $id;
|
||||
public $kind;
|
||||
public $startTime;
|
||||
public $status;
|
||||
|
||||
|
||||
public function setAdditions($additions)
|
||||
{
|
||||
$this->additions = $additions;
|
||||
}
|
||||
public function getAdditions()
|
||||
{
|
||||
return $this->additions;
|
||||
}
|
||||
public function setDeletions($deletions)
|
||||
{
|
||||
$this->deletions = $deletions;
|
||||
}
|
||||
public function getDeletions()
|
||||
{
|
||||
return $this->deletions;
|
||||
}
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
public function setKind($kind)
|
||||
{
|
||||
$this->kind = $kind;
|
||||
}
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Dns_ChangesListResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'changes';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $changesType = 'Google_Service_Dns_Change';
|
||||
protected $changesDataType = 'array';
|
||||
public $kind;
|
||||
public $nextPageToken;
|
||||
|
||||
|
||||
public function setChanges($changes)
|
||||
{
|
||||
$this->changes = $changes;
|
||||
}
|
||||
public function getChanges()
|
||||
{
|
||||
return $this->changes;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Dns_ManagedZone extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'nameServers';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $creationTime;
|
||||
public $description;
|
||||
public $dnsName;
|
||||
public $id;
|
||||
public $kind;
|
||||
public $name;
|
||||
public $nameServerSet;
|
||||
public $nameServers;
|
||||
|
||||
|
||||
public function setCreationTime($creationTime)
|
||||
{
|
||||
$this->creationTime = $creationTime;
|
||||
}
|
||||
public function getCreationTime()
|
||||
{
|
||||
return $this->creationTime;
|
||||
}
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
}
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
public function setDnsName($dnsName)
|
||||
{
|
||||
$this->dnsName = $dnsName;
|
||||
}
|
||||
public function getDnsName()
|
||||
{
|
||||
return $this->dnsName;
|
||||
}
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
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 setNameServerSet($nameServerSet)
|
||||
{
|
||||
$this->nameServerSet = $nameServerSet;
|
||||
}
|
||||
public function getNameServerSet()
|
||||
{
|
||||
return $this->nameServerSet;
|
||||
}
|
||||
public function setNameServers($nameServers)
|
||||
{
|
||||
$this->nameServers = $nameServers;
|
||||
}
|
||||
public function getNameServers()
|
||||
{
|
||||
return $this->nameServers;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Dns_ManagedZonesListResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'managedZones';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $kind;
|
||||
protected $managedZonesType = 'Google_Service_Dns_ManagedZone';
|
||||
protected $managedZonesDataType = 'array';
|
||||
public $nextPageToken;
|
||||
|
||||
|
||||
public function setKind($kind)
|
||||
{
|
||||
$this->kind = $kind;
|
||||
}
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
public function setManagedZones($managedZones)
|
||||
{
|
||||
$this->managedZones = $managedZones;
|
||||
}
|
||||
public function getManagedZones()
|
||||
{
|
||||
return $this->managedZones;
|
||||
}
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Dns_Project extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $id;
|
||||
public $kind;
|
||||
public $number;
|
||||
protected $quotaType = 'Google_Service_Dns_Quota';
|
||||
protected $quotaDataType = '';
|
||||
|
||||
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
public function setKind($kind)
|
||||
{
|
||||
$this->kind = $kind;
|
||||
}
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
public function setNumber($number)
|
||||
{
|
||||
$this->number = $number;
|
||||
}
|
||||
public function getNumber()
|
||||
{
|
||||
return $this->number;
|
||||
}
|
||||
public function setQuota(Google_Service_Dns_Quota $quota)
|
||||
{
|
||||
$this->quota = $quota;
|
||||
}
|
||||
public function getQuota()
|
||||
{
|
||||
return $this->quota;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Dns_Quota extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $kind;
|
||||
public $managedZones;
|
||||
public $resourceRecordsPerRrset;
|
||||
public $rrsetAdditionsPerChange;
|
||||
public $rrsetDeletionsPerChange;
|
||||
public $rrsetsPerManagedZone;
|
||||
public $totalRrdataSizePerChange;
|
||||
|
||||
|
||||
public function setKind($kind)
|
||||
{
|
||||
$this->kind = $kind;
|
||||
}
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
public function setManagedZones($managedZones)
|
||||
{
|
||||
$this->managedZones = $managedZones;
|
||||
}
|
||||
public function getManagedZones()
|
||||
{
|
||||
return $this->managedZones;
|
||||
}
|
||||
public function setResourceRecordsPerRrset($resourceRecordsPerRrset)
|
||||
{
|
||||
$this->resourceRecordsPerRrset = $resourceRecordsPerRrset;
|
||||
}
|
||||
public function getResourceRecordsPerRrset()
|
||||
{
|
||||
return $this->resourceRecordsPerRrset;
|
||||
}
|
||||
public function setRrsetAdditionsPerChange($rrsetAdditionsPerChange)
|
||||
{
|
||||
$this->rrsetAdditionsPerChange = $rrsetAdditionsPerChange;
|
||||
}
|
||||
public function getRrsetAdditionsPerChange()
|
||||
{
|
||||
return $this->rrsetAdditionsPerChange;
|
||||
}
|
||||
public function setRrsetDeletionsPerChange($rrsetDeletionsPerChange)
|
||||
{
|
||||
$this->rrsetDeletionsPerChange = $rrsetDeletionsPerChange;
|
||||
}
|
||||
public function getRrsetDeletionsPerChange()
|
||||
{
|
||||
return $this->rrsetDeletionsPerChange;
|
||||
}
|
||||
public function setRrsetsPerManagedZone($rrsetsPerManagedZone)
|
||||
{
|
||||
$this->rrsetsPerManagedZone = $rrsetsPerManagedZone;
|
||||
}
|
||||
public function getRrsetsPerManagedZone()
|
||||
{
|
||||
return $this->rrsetsPerManagedZone;
|
||||
}
|
||||
public function setTotalRrdataSizePerChange($totalRrdataSizePerChange)
|
||||
{
|
||||
$this->totalRrdataSizePerChange = $totalRrdataSizePerChange;
|
||||
}
|
||||
public function getTotalRrdataSizePerChange()
|
||||
{
|
||||
return $this->totalRrdataSizePerChange;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Dns_ResourceRecordSet extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'rrdatas';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $kind;
|
||||
public $name;
|
||||
public $rrdatas;
|
||||
public $ttl;
|
||||
public $type;
|
||||
|
||||
|
||||
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 setRrdatas($rrdatas)
|
||||
{
|
||||
$this->rrdatas = $rrdatas;
|
||||
}
|
||||
public function getRrdatas()
|
||||
{
|
||||
return $this->rrdatas;
|
||||
}
|
||||
public function setTtl($ttl)
|
||||
{
|
||||
$this->ttl = $ttl;
|
||||
}
|
||||
public function getTtl()
|
||||
{
|
||||
return $this->ttl;
|
||||
}
|
||||
public function setType($type)
|
||||
{
|
||||
$this->type = $type;
|
||||
}
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Dns_ResourceRecordSetsListResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'rrsets';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $kind;
|
||||
public $nextPageToken;
|
||||
protected $rrsetsType = 'Google_Service_Dns_ResourceRecordSet';
|
||||
protected $rrsetsDataType = 'array';
|
||||
|
||||
|
||||
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 setRrsets($rrsets)
|
||||
{
|
||||
$this->rrsets = $rrsets;
|
||||
}
|
||||
public function getRrsets()
|
||||
{
|
||||
return $this->rrsets;
|
||||
}
|
||||
}
|
1085
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php
vendored
Normal file
1085
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1543
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Doubleclicksearch.php
vendored
Normal file
1543
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Doubleclicksearch.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1568
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fitness.php
vendored
Normal file
1568
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fitness.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
453
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Freebase.php
vendored
Normal file
453
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Freebase.php
vendored
Normal file
|
@ -0,0 +1,453 @@
|
|||
<?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 Freebase (v1).
|
||||
*
|
||||
* <p>
|
||||
* Find Freebase entities using textual queries and other constraints.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://developers.google.com/freebase/" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_Freebase extends Google_Service
|
||||
{
|
||||
|
||||
|
||||
|
||||
private $base_methods;
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the Freebase service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://www.googleapis.com/';
|
||||
$this->servicePath = 'freebase/v1/';
|
||||
$this->version = 'v1';
|
||||
$this->serviceName = 'freebase';
|
||||
|
||||
$this->base_methods = new Google_Service_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'',
|
||||
array(
|
||||
'methods' => array(
|
||||
'reconcile' => array(
|
||||
'path' => 'reconcile',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'lang' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
'repeated' => true,
|
||||
),
|
||||
'confidence' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'number',
|
||||
),
|
||||
'name' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'kind' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
'repeated' => true,
|
||||
),
|
||||
'prop' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
'repeated' => true,
|
||||
),
|
||||
'limit' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
),
|
||||
),'search' => array(
|
||||
'path' => 'search',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'domain' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
'repeated' => true,
|
||||
),
|
||||
'help' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'query' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'scoring' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'cursor' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
'prefixed' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'boolean',
|
||||
),
|
||||
'exact' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'boolean',
|
||||
),
|
||||
'mid' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
'repeated' => true,
|
||||
),
|
||||
'encode' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'type' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
'repeated' => true,
|
||||
),
|
||||
'as_of_time' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'stemmed' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'boolean',
|
||||
),
|
||||
'format' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'spell' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'with' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
'repeated' => true,
|
||||
),
|
||||
'lang' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
'repeated' => true,
|
||||
),
|
||||
'indent' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'boolean',
|
||||
),
|
||||
'filter' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
'repeated' => true,
|
||||
),
|
||||
'callback' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'without' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
'repeated' => true,
|
||||
),
|
||||
'limit' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
'output' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'mql_output' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Reconcile entities to Freebase open data. (reconcile)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string lang Languages for names and values. First language is used
|
||||
* for display. Default is 'en'.
|
||||
* @opt_param float confidence Required confidence for a candidate to match.
|
||||
* Must be between .5 and 1.0
|
||||
* @opt_param string name Name of entity.
|
||||
* @opt_param string kind Classifications of entity e.g. type, category, title.
|
||||
* @opt_param string prop Property values for entity formatted as :
|
||||
* @opt_param int limit Maximum number of candidates to return.
|
||||
* @return Google_Service_Freebase_ReconcileGet
|
||||
*/
|
||||
public function reconcile($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->base_methods->call('reconcile', array($params), "Google_Service_Freebase_ReconcileGet");
|
||||
}
|
||||
/**
|
||||
* Search Freebase open data. (search)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string domain Restrict to topics with this Freebase domain id.
|
||||
* @opt_param string help The keyword to request help on.
|
||||
* @opt_param string query Query term to search for.
|
||||
* @opt_param string scoring Relevance scoring algorithm to use.
|
||||
* @opt_param int cursor The cursor value to use for the next page of results.
|
||||
* @opt_param bool prefixed Prefix match against names and aliases.
|
||||
* @opt_param bool exact Query on exact name and keys only.
|
||||
* @opt_param string mid A mid to use instead of a query.
|
||||
* @opt_param string encode The encoding of the response. You can use this
|
||||
* parameter to enable html encoding.
|
||||
* @opt_param string type Restrict to topics with this Freebase type id.
|
||||
* @opt_param string as_of_time A mql as_of_time value to use with mql_output
|
||||
* queries.
|
||||
* @opt_param bool stemmed Query on stemmed names and aliases. May not be used
|
||||
* with prefixed.
|
||||
* @opt_param string format Structural format of the json response.
|
||||
* @opt_param string spell Request 'did you mean' suggestions
|
||||
* @opt_param string with A rule to match against.
|
||||
* @opt_param string lang The code of the language to run the query with.
|
||||
* Default is 'en'.
|
||||
* @opt_param bool indent Whether to indent the json results or not.
|
||||
* @opt_param string filter A filter to apply to the query.
|
||||
* @opt_param string callback JS method name for JSONP callbacks.
|
||||
* @opt_param string without A rule to not match against.
|
||||
* @opt_param int limit Maximum number of results to return.
|
||||
* @opt_param string output An output expression to request data from matches.
|
||||
* @opt_param string mql_output The MQL query to run againist the results to
|
||||
* extract more data.
|
||||
*/
|
||||
public function search($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->base_methods->call('search', array($params));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_Freebase_ReconcileCandidate extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $confidence;
|
||||
public $lang;
|
||||
public $mid;
|
||||
public $name;
|
||||
protected $notableType = 'Google_Service_Freebase_ReconcileCandidateNotable';
|
||||
protected $notableDataType = '';
|
||||
|
||||
|
||||
public function setConfidence($confidence)
|
||||
{
|
||||
$this->confidence = $confidence;
|
||||
}
|
||||
public function getConfidence()
|
||||
{
|
||||
return $this->confidence;
|
||||
}
|
||||
public function setLang($lang)
|
||||
{
|
||||
$this->lang = $lang;
|
||||
}
|
||||
public function getLang()
|
||||
{
|
||||
return $this->lang;
|
||||
}
|
||||
public function setMid($mid)
|
||||
{
|
||||
$this->mid = $mid;
|
||||
}
|
||||
public function getMid()
|
||||
{
|
||||
return $this->mid;
|
||||
}
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
public function setNotable(Google_Service_Freebase_ReconcileCandidateNotable $notable)
|
||||
{
|
||||
$this->notable = $notable;
|
||||
}
|
||||
public function getNotable()
|
||||
{
|
||||
return $this->notable;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Freebase_ReconcileCandidateNotable extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $id;
|
||||
public $name;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Freebase_ReconcileGet extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'warning';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $candidateType = 'Google_Service_Freebase_ReconcileCandidate';
|
||||
protected $candidateDataType = 'array';
|
||||
protected $costsType = 'Google_Service_Freebase_ReconcileGetCosts';
|
||||
protected $costsDataType = '';
|
||||
protected $matchType = 'Google_Service_Freebase_ReconcileCandidate';
|
||||
protected $matchDataType = '';
|
||||
protected $warningType = 'Google_Service_Freebase_ReconcileGetWarning';
|
||||
protected $warningDataType = 'array';
|
||||
|
||||
|
||||
public function setCandidate($candidate)
|
||||
{
|
||||
$this->candidate = $candidate;
|
||||
}
|
||||
public function getCandidate()
|
||||
{
|
||||
return $this->candidate;
|
||||
}
|
||||
public function setCosts(Google_Service_Freebase_ReconcileGetCosts $costs)
|
||||
{
|
||||
$this->costs = $costs;
|
||||
}
|
||||
public function getCosts()
|
||||
{
|
||||
return $this->costs;
|
||||
}
|
||||
public function setMatch(Google_Service_Freebase_ReconcileCandidate $match)
|
||||
{
|
||||
$this->match = $match;
|
||||
}
|
||||
public function getMatch()
|
||||
{
|
||||
return $this->match;
|
||||
}
|
||||
public function setWarning($warning)
|
||||
{
|
||||
$this->warning = $warning;
|
||||
}
|
||||
public function getWarning()
|
||||
{
|
||||
return $this->warning;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Freebase_ReconcileGetCosts extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $hits;
|
||||
public $ms;
|
||||
|
||||
|
||||
public function setHits($hits)
|
||||
{
|
||||
$this->hits = $hits;
|
||||
}
|
||||
public function getHits()
|
||||
{
|
||||
return $this->hits;
|
||||
}
|
||||
public function setMs($ms)
|
||||
{
|
||||
$this->ms = $ms;
|
||||
}
|
||||
public function getMs()
|
||||
{
|
||||
return $this->ms;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Freebase_ReconcileGetWarning extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $location;
|
||||
public $message;
|
||||
public $reason;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
public function setReason($reason)
|
||||
{
|
||||
$this->reason = $reason;
|
||||
}
|
||||
public function getReason()
|
||||
{
|
||||
return $this->reason;
|
||||
}
|
||||
}
|
2485
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fusiontables.php
vendored
Normal file
2485
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fusiontables.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7440
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php
vendored
Normal file
7440
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1068
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesConfiguration.php
vendored
Normal file
1068
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesConfiguration.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1404
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesManagement.php
vendored
Normal file
1404
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesManagement.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3990
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php
vendored
Normal file
3990
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2215
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Gmail.php
vendored
Normal file
2215
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Gmail.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
130
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GroupsMigration.php
vendored
Normal file
130
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GroupsMigration.php
vendored
Normal file
|
@ -0,0 +1,130 @@
|
|||
<?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 GroupsMigration (v1).
|
||||
*
|
||||
* <p>
|
||||
* Groups Migration Api.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://developers.google.com/google-apps/groups-migration/" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_GroupsMigration extends Google_Service
|
||||
{
|
||||
/** Manage messages in groups on your domain. */
|
||||
const APPS_GROUPS_MIGRATION =
|
||||
"https://www.googleapis.com/auth/apps.groups.migration";
|
||||
|
||||
public $archive;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the GroupsMigration service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://www.googleapis.com/';
|
||||
$this->servicePath = 'groups/v1/groups/';
|
||||
$this->version = 'v1';
|
||||
$this->serviceName = 'groupsmigration';
|
||||
|
||||
$this->archive = new Google_Service_GroupsMigration_Archive_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'archive',
|
||||
array(
|
||||
'methods' => array(
|
||||
'insert' => array(
|
||||
'path' => '{groupId}/archive',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'groupId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "archive" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $groupsmigrationService = new Google_Service_GroupsMigration(...);
|
||||
* $archive = $groupsmigrationService->archive;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_GroupsMigration_Archive_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Inserts a new mail into the archive of the Google group. (archive.insert)
|
||||
*
|
||||
* @param string $groupId The group ID
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_GroupsMigration_Groups
|
||||
*/
|
||||
public function insert($groupId, $optParams = array())
|
||||
{
|
||||
$params = array('groupId' => $groupId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('insert', array($params), "Google_Service_GroupsMigration_Groups");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_GroupsMigration_Groups extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $kind;
|
||||
public $responseCode;
|
||||
|
||||
|
||||
public function setKind($kind)
|
||||
{
|
||||
$this->kind = $kind;
|
||||
}
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
public function setResponseCode($responseCode)
|
||||
{
|
||||
$this->responseCode = $responseCode;
|
||||
}
|
||||
public function getResponseCode()
|
||||
{
|
||||
return $this->responseCode;
|
||||
}
|
||||
}
|
415
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Groupssettings.php
vendored
Normal file
415
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Groupssettings.php
vendored
Normal file
|
@ -0,0 +1,415 @@
|
|||
<?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 Groupssettings (v1).
|
||||
*
|
||||
* <p>
|
||||
* Lets you manage permission levels and related settings of a group.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://developers.google.com/google-apps/groups-settings/get_started" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_Groupssettings extends Google_Service
|
||||
{
|
||||
/** View and manage the settings of a Google Apps Group. */
|
||||
const APPS_GROUPS_SETTINGS =
|
||||
"https://www.googleapis.com/auth/apps.groups.settings";
|
||||
|
||||
public $groups;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the Groupssettings service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://www.googleapis.com/';
|
||||
$this->servicePath = 'groups/v1/groups/';
|
||||
$this->version = 'v1';
|
||||
$this->serviceName = 'groupssettings';
|
||||
|
||||
$this->groups = new Google_Service_Groupssettings_Groups_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'groups',
|
||||
array(
|
||||
'methods' => array(
|
||||
'get' => array(
|
||||
'path' => '{groupUniqueId}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'groupUniqueId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'patch' => array(
|
||||
'path' => '{groupUniqueId}',
|
||||
'httpMethod' => 'PATCH',
|
||||
'parameters' => array(
|
||||
'groupUniqueId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'update' => array(
|
||||
'path' => '{groupUniqueId}',
|
||||
'httpMethod' => 'PUT',
|
||||
'parameters' => array(
|
||||
'groupUniqueId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "groups" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $groupssettingsService = new Google_Service_Groupssettings(...);
|
||||
* $groups = $groupssettingsService->groups;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Groupssettings_Groups_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Gets one resource by id. (groups.get)
|
||||
*
|
||||
* @param string $groupUniqueId The resource ID
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Groupssettings_Groups
|
||||
*/
|
||||
public function get($groupUniqueId, $optParams = array())
|
||||
{
|
||||
$params = array('groupUniqueId' => $groupUniqueId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_Groupssettings_Groups");
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates an existing resource. This method supports patch semantics.
|
||||
* (groups.patch)
|
||||
*
|
||||
* @param string $groupUniqueId The resource ID
|
||||
* @param Google_Groups $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Groupssettings_Groups
|
||||
*/
|
||||
public function patch($groupUniqueId, Google_Service_Groupssettings_Groups $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('groupUniqueId' => $groupUniqueId, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('patch', array($params), "Google_Service_Groupssettings_Groups");
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates an existing resource. (groups.update)
|
||||
*
|
||||
* @param string $groupUniqueId The resource ID
|
||||
* @param Google_Groups $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Groupssettings_Groups
|
||||
*/
|
||||
public function update($groupUniqueId, Google_Service_Groupssettings_Groups $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('groupUniqueId' => $groupUniqueId, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('update', array($params), "Google_Service_Groupssettings_Groups");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_Groupssettings_Groups extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $allowExternalMembers;
|
||||
public $allowGoogleCommunication;
|
||||
public $allowWebPosting;
|
||||
public $archiveOnly;
|
||||
public $customReplyTo;
|
||||
public $defaultMessageDenyNotificationText;
|
||||
public $description;
|
||||
public $email;
|
||||
public $includeInGlobalAddressList;
|
||||
public $isArchived;
|
||||
public $kind;
|
||||
public $maxMessageBytes;
|
||||
public $membersCanPostAsTheGroup;
|
||||
public $messageDisplayFont;
|
||||
public $messageModerationLevel;
|
||||
public $name;
|
||||
public $primaryLanguage;
|
||||
public $replyTo;
|
||||
public $sendMessageDenyNotification;
|
||||
public $showInGroupDirectory;
|
||||
public $spamModerationLevel;
|
||||
public $whoCanContactOwner;
|
||||
public $whoCanInvite;
|
||||
public $whoCanJoin;
|
||||
public $whoCanLeaveGroup;
|
||||
public $whoCanPostMessage;
|
||||
public $whoCanViewGroup;
|
||||
public $whoCanViewMembership;
|
||||
|
||||
|
||||
public function setAllowExternalMembers($allowExternalMembers)
|
||||
{
|
||||
$this->allowExternalMembers = $allowExternalMembers;
|
||||
}
|
||||
public function getAllowExternalMembers()
|
||||
{
|
||||
return $this->allowExternalMembers;
|
||||
}
|
||||
public function setAllowGoogleCommunication($allowGoogleCommunication)
|
||||
{
|
||||
$this->allowGoogleCommunication = $allowGoogleCommunication;
|
||||
}
|
||||
public function getAllowGoogleCommunication()
|
||||
{
|
||||
return $this->allowGoogleCommunication;
|
||||
}
|
||||
public function setAllowWebPosting($allowWebPosting)
|
||||
{
|
||||
$this->allowWebPosting = $allowWebPosting;
|
||||
}
|
||||
public function getAllowWebPosting()
|
||||
{
|
||||
return $this->allowWebPosting;
|
||||
}
|
||||
public function setArchiveOnly($archiveOnly)
|
||||
{
|
||||
$this->archiveOnly = $archiveOnly;
|
||||
}
|
||||
public function getArchiveOnly()
|
||||
{
|
||||
return $this->archiveOnly;
|
||||
}
|
||||
public function setCustomReplyTo($customReplyTo)
|
||||
{
|
||||
$this->customReplyTo = $customReplyTo;
|
||||
}
|
||||
public function getCustomReplyTo()
|
||||
{
|
||||
return $this->customReplyTo;
|
||||
}
|
||||
public function setDefaultMessageDenyNotificationText($defaultMessageDenyNotificationText)
|
||||
{
|
||||
$this->defaultMessageDenyNotificationText = $defaultMessageDenyNotificationText;
|
||||
}
|
||||
public function getDefaultMessageDenyNotificationText()
|
||||
{
|
||||
return $this->defaultMessageDenyNotificationText;
|
||||
}
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
}
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
public function setEmail($email)
|
||||
{
|
||||
$this->email = $email;
|
||||
}
|
||||
public function getEmail()
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
public function setIncludeInGlobalAddressList($includeInGlobalAddressList)
|
||||
{
|
||||
$this->includeInGlobalAddressList = $includeInGlobalAddressList;
|
||||
}
|
||||
public function getIncludeInGlobalAddressList()
|
||||
{
|
||||
return $this->includeInGlobalAddressList;
|
||||
}
|
||||
public function setIsArchived($isArchived)
|
||||
{
|
||||
$this->isArchived = $isArchived;
|
||||
}
|
||||
public function getIsArchived()
|
||||
{
|
||||
return $this->isArchived;
|
||||
}
|
||||
public function setKind($kind)
|
||||
{
|
||||
$this->kind = $kind;
|
||||
}
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
public function setMaxMessageBytes($maxMessageBytes)
|
||||
{
|
||||
$this->maxMessageBytes = $maxMessageBytes;
|
||||
}
|
||||
public function getMaxMessageBytes()
|
||||
{
|
||||
return $this->maxMessageBytes;
|
||||
}
|
||||
public function setMembersCanPostAsTheGroup($membersCanPostAsTheGroup)
|
||||
{
|
||||
$this->membersCanPostAsTheGroup = $membersCanPostAsTheGroup;
|
||||
}
|
||||
public function getMembersCanPostAsTheGroup()
|
||||
{
|
||||
return $this->membersCanPostAsTheGroup;
|
||||
}
|
||||
public function setMessageDisplayFont($messageDisplayFont)
|
||||
{
|
||||
$this->messageDisplayFont = $messageDisplayFont;
|
||||
}
|
||||
public function getMessageDisplayFont()
|
||||
{
|
||||
return $this->messageDisplayFont;
|
||||
}
|
||||
public function setMessageModerationLevel($messageModerationLevel)
|
||||
{
|
||||
$this->messageModerationLevel = $messageModerationLevel;
|
||||
}
|
||||
public function getMessageModerationLevel()
|
||||
{
|
||||
return $this->messageModerationLevel;
|
||||
}
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
public function setPrimaryLanguage($primaryLanguage)
|
||||
{
|
||||
$this->primaryLanguage = $primaryLanguage;
|
||||
}
|
||||
public function getPrimaryLanguage()
|
||||
{
|
||||
return $this->primaryLanguage;
|
||||
}
|
||||
public function setReplyTo($replyTo)
|
||||
{
|
||||
$this->replyTo = $replyTo;
|
||||
}
|
||||
public function getReplyTo()
|
||||
{
|
||||
return $this->replyTo;
|
||||
}
|
||||
public function setSendMessageDenyNotification($sendMessageDenyNotification)
|
||||
{
|
||||
$this->sendMessageDenyNotification = $sendMessageDenyNotification;
|
||||
}
|
||||
public function getSendMessageDenyNotification()
|
||||
{
|
||||
return $this->sendMessageDenyNotification;
|
||||
}
|
||||
public function setShowInGroupDirectory($showInGroupDirectory)
|
||||
{
|
||||
$this->showInGroupDirectory = $showInGroupDirectory;
|
||||
}
|
||||
public function getShowInGroupDirectory()
|
||||
{
|
||||
return $this->showInGroupDirectory;
|
||||
}
|
||||
public function setSpamModerationLevel($spamModerationLevel)
|
||||
{
|
||||
$this->spamModerationLevel = $spamModerationLevel;
|
||||
}
|
||||
public function getSpamModerationLevel()
|
||||
{
|
||||
return $this->spamModerationLevel;
|
||||
}
|
||||
public function setWhoCanContactOwner($whoCanContactOwner)
|
||||
{
|
||||
$this->whoCanContactOwner = $whoCanContactOwner;
|
||||
}
|
||||
public function getWhoCanContactOwner()
|
||||
{
|
||||
return $this->whoCanContactOwner;
|
||||
}
|
||||
public function setWhoCanInvite($whoCanInvite)
|
||||
{
|
||||
$this->whoCanInvite = $whoCanInvite;
|
||||
}
|
||||
public function getWhoCanInvite()
|
||||
{
|
||||
return $this->whoCanInvite;
|
||||
}
|
||||
public function setWhoCanJoin($whoCanJoin)
|
||||
{
|
||||
$this->whoCanJoin = $whoCanJoin;
|
||||
}
|
||||
public function getWhoCanJoin()
|
||||
{
|
||||
return $this->whoCanJoin;
|
||||
}
|
||||
public function setWhoCanLeaveGroup($whoCanLeaveGroup)
|
||||
{
|
||||
$this->whoCanLeaveGroup = $whoCanLeaveGroup;
|
||||
}
|
||||
public function getWhoCanLeaveGroup()
|
||||
{
|
||||
return $this->whoCanLeaveGroup;
|
||||
}
|
||||
public function setWhoCanPostMessage($whoCanPostMessage)
|
||||
{
|
||||
$this->whoCanPostMessage = $whoCanPostMessage;
|
||||
}
|
||||
public function getWhoCanPostMessage()
|
||||
{
|
||||
return $this->whoCanPostMessage;
|
||||
}
|
||||
public function setWhoCanViewGroup($whoCanViewGroup)
|
||||
{
|
||||
$this->whoCanViewGroup = $whoCanViewGroup;
|
||||
}
|
||||
public function getWhoCanViewGroup()
|
||||
{
|
||||
return $this->whoCanViewGroup;
|
||||
}
|
||||
public function setWhoCanViewMembership($whoCanViewMembership)
|
||||
{
|
||||
$this->whoCanViewMembership = $whoCanViewMembership;
|
||||
}
|
||||
public function getWhoCanViewMembership()
|
||||
{
|
||||
return $this->whoCanViewMembership;
|
||||
}
|
||||
}
|
1818
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php
vendored
Normal file
1818
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
479
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Licensing.php
vendored
Normal file
479
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Licensing.php
vendored
Normal file
|
@ -0,0 +1,479 @@
|
|||
<?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 Licensing (v1).
|
||||
*
|
||||
* <p>
|
||||
* Licensing API to view and manage license for your domain.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://developers.google.com/google-apps/licensing/" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_Licensing extends Google_Service
|
||||
{
|
||||
/** View and manage Google Apps licenses for your domain. */
|
||||
const APPS_LICENSING =
|
||||
"https://www.googleapis.com/auth/apps.licensing";
|
||||
|
||||
public $licenseAssignments;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the Licensing service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://www.googleapis.com/';
|
||||
$this->servicePath = 'apps/licensing/v1/product/';
|
||||
$this->version = 'v1';
|
||||
$this->serviceName = 'licensing';
|
||||
|
||||
$this->licenseAssignments = new Google_Service_Licensing_LicenseAssignments_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'licenseAssignments',
|
||||
array(
|
||||
'methods' => array(
|
||||
'delete' => array(
|
||||
'path' => '{productId}/sku/{skuId}/user/{userId}',
|
||||
'httpMethod' => 'DELETE',
|
||||
'parameters' => array(
|
||||
'productId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'skuId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'userId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'get' => array(
|
||||
'path' => '{productId}/sku/{skuId}/user/{userId}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'productId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'skuId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'userId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'insert' => array(
|
||||
'path' => '{productId}/sku/{skuId}/user',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'productId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'skuId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'listForProduct' => array(
|
||||
'path' => '{productId}/users',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'productId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'customerId' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'pageToken' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'maxResults' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
),
|
||||
),'listForProductAndSku' => array(
|
||||
'path' => '{productId}/sku/{skuId}/users',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'productId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'skuId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'customerId' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'pageToken' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'maxResults' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
),
|
||||
),'patch' => array(
|
||||
'path' => '{productId}/sku/{skuId}/user/{userId}',
|
||||
'httpMethod' => 'PATCH',
|
||||
'parameters' => array(
|
||||
'productId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'skuId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'userId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'update' => array(
|
||||
'path' => '{productId}/sku/{skuId}/user/{userId}',
|
||||
'httpMethod' => 'PUT',
|
||||
'parameters' => array(
|
||||
'productId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'skuId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'userId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "licenseAssignments" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $licensingService = new Google_Service_Licensing(...);
|
||||
* $licenseAssignments = $licensingService->licenseAssignments;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Licensing_LicenseAssignments_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Revoke License. (licenseAssignments.delete)
|
||||
*
|
||||
* @param string $productId Name for product
|
||||
* @param string $skuId Name for sku
|
||||
* @param string $userId email id or unique Id of the user
|
||||
* @param array $optParams Optional parameters.
|
||||
*/
|
||||
public function delete($productId, $skuId, $userId, $optParams = array())
|
||||
{
|
||||
$params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete', array($params));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get license assignment of a particular product and sku for a user
|
||||
* (licenseAssignments.get)
|
||||
*
|
||||
* @param string $productId Name for product
|
||||
* @param string $skuId Name for sku
|
||||
* @param string $userId email id or unique Id of the user
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Licensing_LicenseAssignment
|
||||
*/
|
||||
public function get($productId, $skuId, $userId, $optParams = array())
|
||||
{
|
||||
$params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_Licensing_LicenseAssignment");
|
||||
}
|
||||
|
||||
/**
|
||||
* Assign License. (licenseAssignments.insert)
|
||||
*
|
||||
* @param string $productId Name for product
|
||||
* @param string $skuId Name for sku
|
||||
* @param Google_LicenseAssignmentInsert $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Licensing_LicenseAssignment
|
||||
*/
|
||||
public function insert($productId, $skuId, Google_Service_Licensing_LicenseAssignmentInsert $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('productId' => $productId, 'skuId' => $skuId, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('insert', array($params), "Google_Service_Licensing_LicenseAssignment");
|
||||
}
|
||||
|
||||
/**
|
||||
* List license assignments for given product of the customer.
|
||||
* (licenseAssignments.listForProduct)
|
||||
*
|
||||
* @param string $productId Name for product
|
||||
* @param string $customerId CustomerId represents the customer for whom
|
||||
* licenseassignments are queried
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string pageToken Token to fetch the next page.Optional. By default
|
||||
* server will return first page
|
||||
* @opt_param string maxResults Maximum number of campaigns to return at one
|
||||
* time. Must be positive. Optional. Default value is 100.
|
||||
* @return Google_Service_Licensing_LicenseAssignmentList
|
||||
*/
|
||||
public function listForProduct($productId, $customerId, $optParams = array())
|
||||
{
|
||||
$params = array('productId' => $productId, 'customerId' => $customerId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('listForProduct', array($params), "Google_Service_Licensing_LicenseAssignmentList");
|
||||
}
|
||||
|
||||
/**
|
||||
* List license assignments for given product and sku of the customer.
|
||||
* (licenseAssignments.listForProductAndSku)
|
||||
*
|
||||
* @param string $productId Name for product
|
||||
* @param string $skuId Name for sku
|
||||
* @param string $customerId CustomerId represents the customer for whom
|
||||
* licenseassignments are queried
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string pageToken Token to fetch the next page.Optional. By default
|
||||
* server will return first page
|
||||
* @opt_param string maxResults Maximum number of campaigns to return at one
|
||||
* time. Must be positive. Optional. Default value is 100.
|
||||
* @return Google_Service_Licensing_LicenseAssignmentList
|
||||
*/
|
||||
public function listForProductAndSku($productId, $skuId, $customerId, $optParams = array())
|
||||
{
|
||||
$params = array('productId' => $productId, 'skuId' => $skuId, 'customerId' => $customerId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('listForProductAndSku', array($params), "Google_Service_Licensing_LicenseAssignmentList");
|
||||
}
|
||||
|
||||
/**
|
||||
* Assign License. This method supports patch semantics.
|
||||
* (licenseAssignments.patch)
|
||||
*
|
||||
* @param string $productId Name for product
|
||||
* @param string $skuId Name for sku for which license would be revoked
|
||||
* @param string $userId email id or unique Id of the user
|
||||
* @param Google_LicenseAssignment $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Licensing_LicenseAssignment
|
||||
*/
|
||||
public function patch($productId, $skuId, $userId, Google_Service_Licensing_LicenseAssignment $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('patch', array($params), "Google_Service_Licensing_LicenseAssignment");
|
||||
}
|
||||
|
||||
/**
|
||||
* Assign License. (licenseAssignments.update)
|
||||
*
|
||||
* @param string $productId Name for product
|
||||
* @param string $skuId Name for sku for which license would be revoked
|
||||
* @param string $userId email id or unique Id of the user
|
||||
* @param Google_LicenseAssignment $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Licensing_LicenseAssignment
|
||||
*/
|
||||
public function update($productId, $skuId, $userId, Google_Service_Licensing_LicenseAssignment $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('update', array($params), "Google_Service_Licensing_LicenseAssignment");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_Licensing_LicenseAssignment extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $etags;
|
||||
public $kind;
|
||||
public $productId;
|
||||
public $selfLink;
|
||||
public $skuId;
|
||||
public $userId;
|
||||
|
||||
|
||||
public function setEtags($etags)
|
||||
{
|
||||
$this->etags = $etags;
|
||||
}
|
||||
public function getEtags()
|
||||
{
|
||||
return $this->etags;
|
||||
}
|
||||
public function setKind($kind)
|
||||
{
|
||||
$this->kind = $kind;
|
||||
}
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
public function setProductId($productId)
|
||||
{
|
||||
$this->productId = $productId;
|
||||
}
|
||||
public function getProductId()
|
||||
{
|
||||
return $this->productId;
|
||||
}
|
||||
public function setSelfLink($selfLink)
|
||||
{
|
||||
$this->selfLink = $selfLink;
|
||||
}
|
||||
public function getSelfLink()
|
||||
{
|
||||
return $this->selfLink;
|
||||
}
|
||||
public function setSkuId($skuId)
|
||||
{
|
||||
$this->skuId = $skuId;
|
||||
}
|
||||
public function getSkuId()
|
||||
{
|
||||
return $this->skuId;
|
||||
}
|
||||
public function setUserId($userId)
|
||||
{
|
||||
$this->userId = $userId;
|
||||
}
|
||||
public function getUserId()
|
||||
{
|
||||
return $this->userId;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Licensing_LicenseAssignmentInsert extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $userId;
|
||||
|
||||
|
||||
public function setUserId($userId)
|
||||
{
|
||||
$this->userId = $userId;
|
||||
}
|
||||
public function getUserId()
|
||||
{
|
||||
return $this->userId;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Licensing_LicenseAssignmentList extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'items';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $etag;
|
||||
protected $itemsType = 'Google_Service_Licensing_LicenseAssignment';
|
||||
protected $itemsDataType = 'array';
|
||||
public $kind;
|
||||
public $nextPageToken;
|
||||
|
||||
|
||||
public function setEtag($etag)
|
||||
{
|
||||
$this->etag = $etag;
|
||||
}
|
||||
public function getEtag()
|
||||
{
|
||||
return $this->etag;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
453
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Logging.php
vendored
Normal file
453
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Logging.php
vendored
Normal file
|
@ -0,0 +1,453 @@
|
|||
<?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 Logging (v2beta1).
|
||||
*
|
||||
* <p>
|
||||
* Google Cloud Logging API lets you create logs, ingest log entries, and manage
|
||||
* log sinks.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://cloud.google.com/logging/docs/" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_Logging extends Google_Service
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the Logging service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://logging.googleapis.com/';
|
||||
$this->servicePath = '';
|
||||
$this->version = 'v2beta1';
|
||||
$this->serviceName = 'logging';
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_Logging_LogLine extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $logMessage;
|
||||
public $severity;
|
||||
protected $sourceLocationType = 'Google_Service_Logging_SourceLocation';
|
||||
protected $sourceLocationDataType = '';
|
||||
public $time;
|
||||
|
||||
|
||||
public function setLogMessage($logMessage)
|
||||
{
|
||||
$this->logMessage = $logMessage;
|
||||
}
|
||||
public function getLogMessage()
|
||||
{
|
||||
return $this->logMessage;
|
||||
}
|
||||
public function setSeverity($severity)
|
||||
{
|
||||
$this->severity = $severity;
|
||||
}
|
||||
public function getSeverity()
|
||||
{
|
||||
return $this->severity;
|
||||
}
|
||||
public function setSourceLocation(Google_Service_Logging_SourceLocation $sourceLocation)
|
||||
{
|
||||
$this->sourceLocation = $sourceLocation;
|
||||
}
|
||||
public function getSourceLocation()
|
||||
{
|
||||
return $this->sourceLocation;
|
||||
}
|
||||
public function setTime($time)
|
||||
{
|
||||
$this->time = $time;
|
||||
}
|
||||
public function getTime()
|
||||
{
|
||||
return $this->time;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Logging_RequestLog extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'sourceReference';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $appEngineRelease;
|
||||
public $appId;
|
||||
public $cost;
|
||||
public $endTime;
|
||||
public $finished;
|
||||
public $host;
|
||||
public $httpVersion;
|
||||
public $instanceId;
|
||||
public $instanceIndex;
|
||||
public $ip;
|
||||
public $latency;
|
||||
protected $lineType = 'Google_Service_Logging_LogLine';
|
||||
protected $lineDataType = 'array';
|
||||
public $megaCycles;
|
||||
public $method;
|
||||
public $moduleId;
|
||||
public $nickname;
|
||||
public $pendingTime;
|
||||
public $referrer;
|
||||
public $requestId;
|
||||
public $resource;
|
||||
public $responseSize;
|
||||
protected $sourceReferenceType = 'Google_Service_Logging_SourceReference';
|
||||
protected $sourceReferenceDataType = 'array';
|
||||
public $startTime;
|
||||
public $status;
|
||||
public $taskName;
|
||||
public $taskQueueName;
|
||||
public $traceId;
|
||||
public $urlMapEntry;
|
||||
public $userAgent;
|
||||
public $versionId;
|
||||
public $wasLoadingRequest;
|
||||
|
||||
|
||||
public function setAppEngineRelease($appEngineRelease)
|
||||
{
|
||||
$this->appEngineRelease = $appEngineRelease;
|
||||
}
|
||||
public function getAppEngineRelease()
|
||||
{
|
||||
return $this->appEngineRelease;
|
||||
}
|
||||
public function setAppId($appId)
|
||||
{
|
||||
$this->appId = $appId;
|
||||
}
|
||||
public function getAppId()
|
||||
{
|
||||
return $this->appId;
|
||||
}
|
||||
public function setCost($cost)
|
||||
{
|
||||
$this->cost = $cost;
|
||||
}
|
||||
public function getCost()
|
||||
{
|
||||
return $this->cost;
|
||||
}
|
||||
public function setEndTime($endTime)
|
||||
{
|
||||
$this->endTime = $endTime;
|
||||
}
|
||||
public function getEndTime()
|
||||
{
|
||||
return $this->endTime;
|
||||
}
|
||||
public function setFinished($finished)
|
||||
{
|
||||
$this->finished = $finished;
|
||||
}
|
||||
public function getFinished()
|
||||
{
|
||||
return $this->finished;
|
||||
}
|
||||
public function setHost($host)
|
||||
{
|
||||
$this->host = $host;
|
||||
}
|
||||
public function getHost()
|
||||
{
|
||||
return $this->host;
|
||||
}
|
||||
public function setHttpVersion($httpVersion)
|
||||
{
|
||||
$this->httpVersion = $httpVersion;
|
||||
}
|
||||
public function getHttpVersion()
|
||||
{
|
||||
return $this->httpVersion;
|
||||
}
|
||||
public function setInstanceId($instanceId)
|
||||
{
|
||||
$this->instanceId = $instanceId;
|
||||
}
|
||||
public function getInstanceId()
|
||||
{
|
||||
return $this->instanceId;
|
||||
}
|
||||
public function setInstanceIndex($instanceIndex)
|
||||
{
|
||||
$this->instanceIndex = $instanceIndex;
|
||||
}
|
||||
public function getInstanceIndex()
|
||||
{
|
||||
return $this->instanceIndex;
|
||||
}
|
||||
public function setIp($ip)
|
||||
{
|
||||
$this->ip = $ip;
|
||||
}
|
||||
public function getIp()
|
||||
{
|
||||
return $this->ip;
|
||||
}
|
||||
public function setLatency($latency)
|
||||
{
|
||||
$this->latency = $latency;
|
||||
}
|
||||
public function getLatency()
|
||||
{
|
||||
return $this->latency;
|
||||
}
|
||||
public function setLine($line)
|
||||
{
|
||||
$this->line = $line;
|
||||
}
|
||||
public function getLine()
|
||||
{
|
||||
return $this->line;
|
||||
}
|
||||
public function setMegaCycles($megaCycles)
|
||||
{
|
||||
$this->megaCycles = $megaCycles;
|
||||
}
|
||||
public function getMegaCycles()
|
||||
{
|
||||
return $this->megaCycles;
|
||||
}
|
||||
public function setMethod($method)
|
||||
{
|
||||
$this->method = $method;
|
||||
}
|
||||
public function getMethod()
|
||||
{
|
||||
return $this->method;
|
||||
}
|
||||
public function setModuleId($moduleId)
|
||||
{
|
||||
$this->moduleId = $moduleId;
|
||||
}
|
||||
public function getModuleId()
|
||||
{
|
||||
return $this->moduleId;
|
||||
}
|
||||
public function setNickname($nickname)
|
||||
{
|
||||
$this->nickname = $nickname;
|
||||
}
|
||||
public function getNickname()
|
||||
{
|
||||
return $this->nickname;
|
||||
}
|
||||
public function setPendingTime($pendingTime)
|
||||
{
|
||||
$this->pendingTime = $pendingTime;
|
||||
}
|
||||
public function getPendingTime()
|
||||
{
|
||||
return $this->pendingTime;
|
||||
}
|
||||
public function setReferrer($referrer)
|
||||
{
|
||||
$this->referrer = $referrer;
|
||||
}
|
||||
public function getReferrer()
|
||||
{
|
||||
return $this->referrer;
|
||||
}
|
||||
public function setRequestId($requestId)
|
||||
{
|
||||
$this->requestId = $requestId;
|
||||
}
|
||||
public function getRequestId()
|
||||
{
|
||||
return $this->requestId;
|
||||
}
|
||||
public function setResource($resource)
|
||||
{
|
||||
$this->resource = $resource;
|
||||
}
|
||||
public function getResource()
|
||||
{
|
||||
return $this->resource;
|
||||
}
|
||||
public function setResponseSize($responseSize)
|
||||
{
|
||||
$this->responseSize = $responseSize;
|
||||
}
|
||||
public function getResponseSize()
|
||||
{
|
||||
return $this->responseSize;
|
||||
}
|
||||
public function setSourceReference($sourceReference)
|
||||
{
|
||||
$this->sourceReference = $sourceReference;
|
||||
}
|
||||
public function getSourceReference()
|
||||
{
|
||||
return $this->sourceReference;
|
||||
}
|
||||
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 setTaskName($taskName)
|
||||
{
|
||||
$this->taskName = $taskName;
|
||||
}
|
||||
public function getTaskName()
|
||||
{
|
||||
return $this->taskName;
|
||||
}
|
||||
public function setTaskQueueName($taskQueueName)
|
||||
{
|
||||
$this->taskQueueName = $taskQueueName;
|
||||
}
|
||||
public function getTaskQueueName()
|
||||
{
|
||||
return $this->taskQueueName;
|
||||
}
|
||||
public function setTraceId($traceId)
|
||||
{
|
||||
$this->traceId = $traceId;
|
||||
}
|
||||
public function getTraceId()
|
||||
{
|
||||
return $this->traceId;
|
||||
}
|
||||
public function setUrlMapEntry($urlMapEntry)
|
||||
{
|
||||
$this->urlMapEntry = $urlMapEntry;
|
||||
}
|
||||
public function getUrlMapEntry()
|
||||
{
|
||||
return $this->urlMapEntry;
|
||||
}
|
||||
public function setUserAgent($userAgent)
|
||||
{
|
||||
$this->userAgent = $userAgent;
|
||||
}
|
||||
public function getUserAgent()
|
||||
{
|
||||
return $this->userAgent;
|
||||
}
|
||||
public function setVersionId($versionId)
|
||||
{
|
||||
$this->versionId = $versionId;
|
||||
}
|
||||
public function getVersionId()
|
||||
{
|
||||
return $this->versionId;
|
||||
}
|
||||
public function setWasLoadingRequest($wasLoadingRequest)
|
||||
{
|
||||
$this->wasLoadingRequest = $wasLoadingRequest;
|
||||
}
|
||||
public function getWasLoadingRequest()
|
||||
{
|
||||
return $this->wasLoadingRequest;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Logging_SourceLocation extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $file;
|
||||
public $functionName;
|
||||
public $line;
|
||||
|
||||
|
||||
public function setFile($file)
|
||||
{
|
||||
$this->file = $file;
|
||||
}
|
||||
public function getFile()
|
||||
{
|
||||
return $this->file;
|
||||
}
|
||||
public function setFunctionName($functionName)
|
||||
{
|
||||
$this->functionName = $functionName;
|
||||
}
|
||||
public function getFunctionName()
|
||||
{
|
||||
return $this->functionName;
|
||||
}
|
||||
public function setLine($line)
|
||||
{
|
||||
$this->line = $line;
|
||||
}
|
||||
public function getLine()
|
||||
{
|
||||
return $this->line;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Logging_SourceReference extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $repository;
|
||||
public $revisionId;
|
||||
|
||||
|
||||
public function setRepository($repository)
|
||||
{
|
||||
$this->repository = $repository;
|
||||
}
|
||||
public function getRepository()
|
||||
{
|
||||
return $this->repository;
|
||||
}
|
||||
public function setRevisionId($revisionId)
|
||||
{
|
||||
$this->revisionId = $revisionId;
|
||||
}
|
||||
public function getRevisionId()
|
||||
{
|
||||
return $this->revisionId;
|
||||
}
|
||||
}
|
1861
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Manager.php
vendored
Normal file
1861
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Manager.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
6421
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/MapsEngine.php
vendored
Normal file
6421
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/MapsEngine.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1932
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Mirror.php
vendored
Normal file
1932
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Mirror.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
503
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Oauth2.php
vendored
Normal file
503
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Oauth2.php
vendored
Normal file
|
@ -0,0 +1,503 @@
|
|||
<?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 Oauth2 (v2).
|
||||
*
|
||||
* <p>
|
||||
* Lets you access OAuth2 protocol related APIs.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://developers.google.com/accounts/docs/OAuth2" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_Oauth2 extends Google_Service
|
||||
{
|
||||
/** Know your basic profile info and list of people in your circles.. */
|
||||
const PLUS_LOGIN =
|
||||
"https://www.googleapis.com/auth/plus.login";
|
||||
/** Know who you are on Google. */
|
||||
const PLUS_ME =
|
||||
"https://www.googleapis.com/auth/plus.me";
|
||||
/** View your email address. */
|
||||
const USERINFO_EMAIL =
|
||||
"https://www.googleapis.com/auth/userinfo.email";
|
||||
/** View your basic profile info. */
|
||||
const USERINFO_PROFILE =
|
||||
"https://www.googleapis.com/auth/userinfo.profile";
|
||||
|
||||
public $userinfo;
|
||||
public $userinfo_v2_me;
|
||||
private $base_methods;
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the Oauth2 service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://www.googleapis.com/';
|
||||
$this->servicePath = '';
|
||||
$this->version = 'v2';
|
||||
$this->serviceName = 'oauth2';
|
||||
|
||||
$this->userinfo = new Google_Service_Oauth2_Userinfo_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'userinfo',
|
||||
array(
|
||||
'methods' => array(
|
||||
'get' => array(
|
||||
'path' => 'oauth2/v2/userinfo',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
$this->userinfo_v2_me = new Google_Service_Oauth2_UserinfoV2Me_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'me',
|
||||
array(
|
||||
'methods' => array(
|
||||
'get' => array(
|
||||
'path' => 'userinfo/v2/me',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
$this->base_methods = new Google_Service_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'',
|
||||
array(
|
||||
'methods' => array(
|
||||
'getCertForOpenIdConnect' => array(
|
||||
'path' => 'oauth2/v2/certs',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(),
|
||||
),'tokeninfo' => array(
|
||||
'path' => 'oauth2/v2/tokeninfo',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'access_token' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'id_token' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'token_handle' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
/**
|
||||
* (getCertForOpenIdConnect)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Oauth2_Jwk
|
||||
*/
|
||||
public function getCertForOpenIdConnect($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->base_methods->call('getCertForOpenIdConnect', array($params), "Google_Service_Oauth2_Jwk");
|
||||
}
|
||||
/**
|
||||
* (tokeninfo)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string access_token
|
||||
* @opt_param string id_token
|
||||
* @opt_param string token_handle
|
||||
* @return Google_Service_Oauth2_Tokeninfo
|
||||
*/
|
||||
public function tokeninfo($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->base_methods->call('tokeninfo', array($params), "Google_Service_Oauth2_Tokeninfo");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "userinfo" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $oauth2Service = new Google_Service_Oauth2(...);
|
||||
* $userinfo = $oauth2Service->userinfo;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Oauth2_Userinfo_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* (userinfo.get)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Oauth2_Userinfoplus
|
||||
*/
|
||||
public function get($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_Oauth2_Userinfoplus");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "v2" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $oauth2Service = new Google_Service_Oauth2(...);
|
||||
* $v2 = $oauth2Service->v2;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Oauth2_UserinfoV2_Resource extends Google_Service_Resource
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* The "me" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $oauth2Service = new Google_Service_Oauth2(...);
|
||||
* $me = $oauth2Service->me;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Oauth2_UserinfoV2Me_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* (me.get)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Oauth2_Userinfoplus
|
||||
*/
|
||||
public function get($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_Oauth2_Userinfoplus");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_Oauth2_Jwk extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'keys';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $keysType = 'Google_Service_Oauth2_JwkKeys';
|
||||
protected $keysDataType = 'array';
|
||||
|
||||
|
||||
public function setKeys($keys)
|
||||
{
|
||||
$this->keys = $keys;
|
||||
}
|
||||
public function getKeys()
|
||||
{
|
||||
return $this->keys;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Oauth2_JwkKeys extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $alg;
|
||||
public $e;
|
||||
public $kid;
|
||||
public $kty;
|
||||
public $n;
|
||||
public $use;
|
||||
|
||||
|
||||
public function setAlg($alg)
|
||||
{
|
||||
$this->alg = $alg;
|
||||
}
|
||||
public function getAlg()
|
||||
{
|
||||
return $this->alg;
|
||||
}
|
||||
public function setE($e)
|
||||
{
|
||||
$this->e = $e;
|
||||
}
|
||||
public function getE()
|
||||
{
|
||||
return $this->e;
|
||||
}
|
||||
public function setKid($kid)
|
||||
{
|
||||
$this->kid = $kid;
|
||||
}
|
||||
public function getKid()
|
||||
{
|
||||
return $this->kid;
|
||||
}
|
||||
public function setKty($kty)
|
||||
{
|
||||
$this->kty = $kty;
|
||||
}
|
||||
public function getKty()
|
||||
{
|
||||
return $this->kty;
|
||||
}
|
||||
public function setN($n)
|
||||
{
|
||||
$this->n = $n;
|
||||
}
|
||||
public function getN()
|
||||
{
|
||||
return $this->n;
|
||||
}
|
||||
public function setUse($use)
|
||||
{
|
||||
$this->use = $use;
|
||||
}
|
||||
public function getUse()
|
||||
{
|
||||
return $this->use;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Oauth2_Tokeninfo extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
"accessType" => "access_type",
|
||||
"expiresIn" => "expires_in",
|
||||
"issuedTo" => "issued_to",
|
||||
"tokenHandle" => "token_handle",
|
||||
"userId" => "user_id",
|
||||
"verifiedEmail" => "verified_email",
|
||||
);
|
||||
public $accessType;
|
||||
public $audience;
|
||||
public $email;
|
||||
public $expiresIn;
|
||||
public $issuedTo;
|
||||
public $scope;
|
||||
public $tokenHandle;
|
||||
public $userId;
|
||||
public $verifiedEmail;
|
||||
|
||||
|
||||
public function setAccessType($accessType)
|
||||
{
|
||||
$this->accessType = $accessType;
|
||||
}
|
||||
public function getAccessType()
|
||||
{
|
||||
return $this->accessType;
|
||||
}
|
||||
public function setAudience($audience)
|
||||
{
|
||||
$this->audience = $audience;
|
||||
}
|
||||
public function getAudience()
|
||||
{
|
||||
return $this->audience;
|
||||
}
|
||||
public function setEmail($email)
|
||||
{
|
||||
$this->email = $email;
|
||||
}
|
||||
public function getEmail()
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
public function setExpiresIn($expiresIn)
|
||||
{
|
||||
$this->expiresIn = $expiresIn;
|
||||
}
|
||||
public function getExpiresIn()
|
||||
{
|
||||
return $this->expiresIn;
|
||||
}
|
||||
public function setIssuedTo($issuedTo)
|
||||
{
|
||||
$this->issuedTo = $issuedTo;
|
||||
}
|
||||
public function getIssuedTo()
|
||||
{
|
||||
return $this->issuedTo;
|
||||
}
|
||||
public function setScope($scope)
|
||||
{
|
||||
$this->scope = $scope;
|
||||
}
|
||||
public function getScope()
|
||||
{
|
||||
return $this->scope;
|
||||
}
|
||||
public function setTokenHandle($tokenHandle)
|
||||
{
|
||||
$this->tokenHandle = $tokenHandle;
|
||||
}
|
||||
public function getTokenHandle()
|
||||
{
|
||||
return $this->tokenHandle;
|
||||
}
|
||||
public function setUserId($userId)
|
||||
{
|
||||
$this->userId = $userId;
|
||||
}
|
||||
public function getUserId()
|
||||
{
|
||||
return $this->userId;
|
||||
}
|
||||
public function setVerifiedEmail($verifiedEmail)
|
||||
{
|
||||
$this->verifiedEmail = $verifiedEmail;
|
||||
}
|
||||
public function getVerifiedEmail()
|
||||
{
|
||||
return $this->verifiedEmail;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Oauth2_Userinfoplus extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
"familyName" => "family_name",
|
||||
"givenName" => "given_name",
|
||||
"verifiedEmail" => "verified_email",
|
||||
);
|
||||
public $email;
|
||||
public $familyName;
|
||||
public $gender;
|
||||
public $givenName;
|
||||
public $hd;
|
||||
public $id;
|
||||
public $link;
|
||||
public $locale;
|
||||
public $name;
|
||||
public $picture;
|
||||
public $verifiedEmail;
|
||||
|
||||
|
||||
public function setEmail($email)
|
||||
{
|
||||
$this->email = $email;
|
||||
}
|
||||
public function getEmail()
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
public function setFamilyName($familyName)
|
||||
{
|
||||
$this->familyName = $familyName;
|
||||
}
|
||||
public function getFamilyName()
|
||||
{
|
||||
return $this->familyName;
|
||||
}
|
||||
public function setGender($gender)
|
||||
{
|
||||
$this->gender = $gender;
|
||||
}
|
||||
public function getGender()
|
||||
{
|
||||
return $this->gender;
|
||||
}
|
||||
public function setGivenName($givenName)
|
||||
{
|
||||
$this->givenName = $givenName;
|
||||
}
|
||||
public function getGivenName()
|
||||
{
|
||||
return $this->givenName;
|
||||
}
|
||||
public function setHd($hd)
|
||||
{
|
||||
$this->hd = $hd;
|
||||
}
|
||||
public function getHd()
|
||||
{
|
||||
return $this->hd;
|
||||
}
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
public function setLink($link)
|
||||
{
|
||||
$this->link = $link;
|
||||
}
|
||||
public function getLink()
|
||||
{
|
||||
return $this->link;
|
||||
}
|
||||
public function setLocale($locale)
|
||||
{
|
||||
$this->locale = $locale;
|
||||
}
|
||||
public function getLocale()
|
||||
{
|
||||
return $this->locale;
|
||||
}
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
public function setPicture($picture)
|
||||
{
|
||||
$this->picture = $picture;
|
||||
}
|
||||
public function getPicture()
|
||||
{
|
||||
return $this->picture;
|
||||
}
|
||||
public function setVerifiedEmail($verifiedEmail)
|
||||
{
|
||||
$this->verifiedEmail = $verifiedEmail;
|
||||
}
|
||||
public function getVerifiedEmail()
|
||||
{
|
||||
return $this->verifiedEmail;
|
||||
}
|
||||
}
|
838
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php
vendored
Normal file
838
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php
vendored
Normal file
|
@ -0,0 +1,838 @@
|
|||
<?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 Pagespeedonline (v2).
|
||||
*
|
||||
* <p>
|
||||
* Lets you analyze the performance of a web page and get tailored suggestions
|
||||
* to make that page faster.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://developers.google.com/speed/docs/insights/v2/getting-started" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_Pagespeedonline extends Google_Service
|
||||
{
|
||||
|
||||
|
||||
public $pagespeedapi;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the Pagespeedonline service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://www.googleapis.com/';
|
||||
$this->servicePath = 'pagespeedonline/v2/';
|
||||
$this->version = 'v2';
|
||||
$this->serviceName = 'pagespeedonline';
|
||||
|
||||
$this->pagespeedapi = new Google_Service_Pagespeedonline_Pagespeedapi_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'pagespeedapi',
|
||||
array(
|
||||
'methods' => array(
|
||||
'runpagespeed' => array(
|
||||
'path' => 'runPagespeed',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'url' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'screenshot' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'boolean',
|
||||
),
|
||||
'locale' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'rule' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
'repeated' => true,
|
||||
),
|
||||
'strategy' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'filter_third_party_resources' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'boolean',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "pagespeedapi" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $pagespeedonlineService = new Google_Service_Pagespeedonline(...);
|
||||
* $pagespeedapi = $pagespeedonlineService->pagespeedapi;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Pagespeedonline_Pagespeedapi_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Runs PageSpeed analysis on the page at the specified URL, and returns
|
||||
* PageSpeed scores, a list of suggestions to make that page faster, and other
|
||||
* information. (pagespeedapi.runpagespeed)
|
||||
*
|
||||
* @param string $url The URL to fetch and analyze
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param bool screenshot Indicates if binary data containing a screenshot
|
||||
* should be included
|
||||
* @opt_param string locale The locale used to localize formatted results
|
||||
* @opt_param string rule A PageSpeed rule to run; if none are given, all rules
|
||||
* are run
|
||||
* @opt_param string strategy The analysis strategy to use
|
||||
* @opt_param bool filter_third_party_resources Indicates if third party
|
||||
* resources should be filtered out before PageSpeed analysis.
|
||||
* @return Google_Service_Pagespeedonline_Result
|
||||
*/
|
||||
public function runpagespeed($url, $optParams = array())
|
||||
{
|
||||
$params = array('url' => $url);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('runpagespeed', array($params), "Google_Service_Pagespeedonline_Result");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'args';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $argsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2Args';
|
||||
protected $argsDataType = 'array';
|
||||
public $format;
|
||||
|
||||
|
||||
public function setArgs($args)
|
||||
{
|
||||
$this->args = $args;
|
||||
}
|
||||
public function getArgs()
|
||||
{
|
||||
return $this->args;
|
||||
}
|
||||
public function setFormat($format)
|
||||
{
|
||||
$this->format = $format;
|
||||
}
|
||||
public function getFormat()
|
||||
{
|
||||
return $this->format;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2Args extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'secondary_rects';
|
||||
protected $internal_gapi_mappings = array(
|
||||
"secondaryRects" => "secondary_rects",
|
||||
);
|
||||
public $key;
|
||||
protected $rectsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsRects';
|
||||
protected $rectsDataType = 'array';
|
||||
protected $secondaryRectsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsSecondaryRects';
|
||||
protected $secondaryRectsDataType = 'array';
|
||||
public $type;
|
||||
public $value;
|
||||
|
||||
|
||||
public function setKey($key)
|
||||
{
|
||||
$this->key = $key;
|
||||
}
|
||||
public function getKey()
|
||||
{
|
||||
return $this->key;
|
||||
}
|
||||
public function setRects($rects)
|
||||
{
|
||||
$this->rects = $rects;
|
||||
}
|
||||
public function getRects()
|
||||
{
|
||||
return $this->rects;
|
||||
}
|
||||
public function setSecondaryRects($secondaryRects)
|
||||
{
|
||||
$this->secondaryRects = $secondaryRects;
|
||||
}
|
||||
public function getSecondaryRects()
|
||||
{
|
||||
return $this->secondaryRects;
|
||||
}
|
||||
public function setType($type)
|
||||
{
|
||||
$this->type = $type;
|
||||
}
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
public function setValue($value)
|
||||
{
|
||||
$this->value = $value;
|
||||
}
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsRects extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $height;
|
||||
public $left;
|
||||
public $top;
|
||||
public $width;
|
||||
|
||||
|
||||
public function setHeight($height)
|
||||
{
|
||||
$this->height = $height;
|
||||
}
|
||||
public function getHeight()
|
||||
{
|
||||
return $this->height;
|
||||
}
|
||||
public function setLeft($left)
|
||||
{
|
||||
$this->left = $left;
|
||||
}
|
||||
public function getLeft()
|
||||
{
|
||||
return $this->left;
|
||||
}
|
||||
public function setTop($top)
|
||||
{
|
||||
$this->top = $top;
|
||||
}
|
||||
public function getTop()
|
||||
{
|
||||
return $this->top;
|
||||
}
|
||||
public function setWidth($width)
|
||||
{
|
||||
$this->width = $width;
|
||||
}
|
||||
public function getWidth()
|
||||
{
|
||||
return $this->width;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsSecondaryRects extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $height;
|
||||
public $left;
|
||||
public $top;
|
||||
public $width;
|
||||
|
||||
|
||||
public function setHeight($height)
|
||||
{
|
||||
$this->height = $height;
|
||||
}
|
||||
public function getHeight()
|
||||
{
|
||||
return $this->height;
|
||||
}
|
||||
public function setLeft($left)
|
||||
{
|
||||
$this->left = $left;
|
||||
}
|
||||
public function getLeft()
|
||||
{
|
||||
return $this->left;
|
||||
}
|
||||
public function setTop($top)
|
||||
{
|
||||
$this->top = $top;
|
||||
}
|
||||
public function getTop()
|
||||
{
|
||||
return $this->top;
|
||||
}
|
||||
public function setWidth($width)
|
||||
{
|
||||
$this->width = $width;
|
||||
}
|
||||
public function getWidth()
|
||||
{
|
||||
return $this->width;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pagespeedonline_PagespeedApiImageV2 extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
"mimeType" => "mime_type",
|
||||
"pageRect" => "page_rect",
|
||||
);
|
||||
public $data;
|
||||
public $height;
|
||||
public $key;
|
||||
public $mimeType;
|
||||
protected $pageRectType = 'Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect';
|
||||
protected $pageRectDataType = '';
|
||||
public $width;
|
||||
|
||||
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
public function setHeight($height)
|
||||
{
|
||||
$this->height = $height;
|
||||
}
|
||||
public function getHeight()
|
||||
{
|
||||
return $this->height;
|
||||
}
|
||||
public function setKey($key)
|
||||
{
|
||||
$this->key = $key;
|
||||
}
|
||||
public function getKey()
|
||||
{
|
||||
return $this->key;
|
||||
}
|
||||
public function setMimeType($mimeType)
|
||||
{
|
||||
$this->mimeType = $mimeType;
|
||||
}
|
||||
public function getMimeType()
|
||||
{
|
||||
return $this->mimeType;
|
||||
}
|
||||
public function setPageRect(Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect $pageRect)
|
||||
{
|
||||
$this->pageRect = $pageRect;
|
||||
}
|
||||
public function getPageRect()
|
||||
{
|
||||
return $this->pageRect;
|
||||
}
|
||||
public function setWidth($width)
|
||||
{
|
||||
$this->width = $width;
|
||||
}
|
||||
public function getWidth()
|
||||
{
|
||||
return $this->width;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $height;
|
||||
public $left;
|
||||
public $top;
|
||||
public $width;
|
||||
|
||||
|
||||
public function setHeight($height)
|
||||
{
|
||||
$this->height = $height;
|
||||
}
|
||||
public function getHeight()
|
||||
{
|
||||
return $this->height;
|
||||
}
|
||||
public function setLeft($left)
|
||||
{
|
||||
$this->left = $left;
|
||||
}
|
||||
public function getLeft()
|
||||
{
|
||||
return $this->left;
|
||||
}
|
||||
public function setTop($top)
|
||||
{
|
||||
$this->top = $top;
|
||||
}
|
||||
public function getTop()
|
||||
{
|
||||
return $this->top;
|
||||
}
|
||||
public function setWidth($width)
|
||||
{
|
||||
$this->width = $width;
|
||||
}
|
||||
public function getWidth()
|
||||
{
|
||||
return $this->width;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pagespeedonline_Result extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'invalidRules';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $formattedResultsType = 'Google_Service_Pagespeedonline_ResultFormattedResults';
|
||||
protected $formattedResultsDataType = '';
|
||||
public $id;
|
||||
public $invalidRules;
|
||||
public $kind;
|
||||
protected $pageStatsType = 'Google_Service_Pagespeedonline_ResultPageStats';
|
||||
protected $pageStatsDataType = '';
|
||||
public $responseCode;
|
||||
protected $ruleGroupsType = 'Google_Service_Pagespeedonline_ResultRuleGroupsElement';
|
||||
protected $ruleGroupsDataType = 'map';
|
||||
protected $screenshotType = 'Google_Service_Pagespeedonline_PagespeedApiImageV2';
|
||||
protected $screenshotDataType = '';
|
||||
public $title;
|
||||
protected $versionType = 'Google_Service_Pagespeedonline_ResultVersion';
|
||||
protected $versionDataType = '';
|
||||
|
||||
|
||||
public function setFormattedResults(Google_Service_Pagespeedonline_ResultFormattedResults $formattedResults)
|
||||
{
|
||||
$this->formattedResults = $formattedResults;
|
||||
}
|
||||
public function getFormattedResults()
|
||||
{
|
||||
return $this->formattedResults;
|
||||
}
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
public function setInvalidRules($invalidRules)
|
||||
{
|
||||
$this->invalidRules = $invalidRules;
|
||||
}
|
||||
public function getInvalidRules()
|
||||
{
|
||||
return $this->invalidRules;
|
||||
}
|
||||
public function setKind($kind)
|
||||
{
|
||||
$this->kind = $kind;
|
||||
}
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
public function setPageStats(Google_Service_Pagespeedonline_ResultPageStats $pageStats)
|
||||
{
|
||||
$this->pageStats = $pageStats;
|
||||
}
|
||||
public function getPageStats()
|
||||
{
|
||||
return $this->pageStats;
|
||||
}
|
||||
public function setResponseCode($responseCode)
|
||||
{
|
||||
$this->responseCode = $responseCode;
|
||||
}
|
||||
public function getResponseCode()
|
||||
{
|
||||
return $this->responseCode;
|
||||
}
|
||||
public function setRuleGroups($ruleGroups)
|
||||
{
|
||||
$this->ruleGroups = $ruleGroups;
|
||||
}
|
||||
public function getRuleGroups()
|
||||
{
|
||||
return $this->ruleGroups;
|
||||
}
|
||||
public function setScreenshot(Google_Service_Pagespeedonline_PagespeedApiImageV2 $screenshot)
|
||||
{
|
||||
$this->screenshot = $screenshot;
|
||||
}
|
||||
public function getScreenshot()
|
||||
{
|
||||
return $this->screenshot;
|
||||
}
|
||||
public function setTitle($title)
|
||||
{
|
||||
$this->title = $title;
|
||||
}
|
||||
public function getTitle()
|
||||
{
|
||||
return $this->title;
|
||||
}
|
||||
public function setVersion(Google_Service_Pagespeedonline_ResultVersion $version)
|
||||
{
|
||||
$this->version = $version;
|
||||
}
|
||||
public function getVersion()
|
||||
{
|
||||
return $this->version;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pagespeedonline_ResultFormattedResults extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $locale;
|
||||
protected $ruleResultsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement';
|
||||
protected $ruleResultsDataType = 'map';
|
||||
|
||||
|
||||
public function setLocale($locale)
|
||||
{
|
||||
$this->locale = $locale;
|
||||
}
|
||||
public function getLocale()
|
||||
{
|
||||
return $this->locale;
|
||||
}
|
||||
public function setRuleResults($ruleResults)
|
||||
{
|
||||
$this->ruleResults = $ruleResults;
|
||||
}
|
||||
public function getRuleResults()
|
||||
{
|
||||
return $this->ruleResults;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResults extends Google_Model
|
||||
{
|
||||
}
|
||||
|
||||
class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'urlBlocks';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $groups;
|
||||
public $localizedRuleName;
|
||||
public $ruleImpact;
|
||||
protected $summaryType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2';
|
||||
protected $summaryDataType = '';
|
||||
protected $urlBlocksType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks';
|
||||
protected $urlBlocksDataType = 'array';
|
||||
|
||||
|
||||
public function setGroups($groups)
|
||||
{
|
||||
$this->groups = $groups;
|
||||
}
|
||||
public function getGroups()
|
||||
{
|
||||
return $this->groups;
|
||||
}
|
||||
public function setLocalizedRuleName($localizedRuleName)
|
||||
{
|
||||
$this->localizedRuleName = $localizedRuleName;
|
||||
}
|
||||
public function getLocalizedRuleName()
|
||||
{
|
||||
return $this->localizedRuleName;
|
||||
}
|
||||
public function setRuleImpact($ruleImpact)
|
||||
{
|
||||
$this->ruleImpact = $ruleImpact;
|
||||
}
|
||||
public function getRuleImpact()
|
||||
{
|
||||
return $this->ruleImpact;
|
||||
}
|
||||
public function setSummary(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $summary)
|
||||
{
|
||||
$this->summary = $summary;
|
||||
}
|
||||
public function getSummary()
|
||||
{
|
||||
return $this->summary;
|
||||
}
|
||||
public function setUrlBlocks($urlBlocks)
|
||||
{
|
||||
$this->urlBlocks = $urlBlocks;
|
||||
}
|
||||
public function getUrlBlocks()
|
||||
{
|
||||
return $this->urlBlocks;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'urls';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $headerType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2';
|
||||
protected $headerDataType = '';
|
||||
protected $urlsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls';
|
||||
protected $urlsDataType = 'array';
|
||||
|
||||
|
||||
public function setHeader(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $header)
|
||||
{
|
||||
$this->header = $header;
|
||||
}
|
||||
public function getHeader()
|
||||
{
|
||||
return $this->header;
|
||||
}
|
||||
public function setUrls($urls)
|
||||
{
|
||||
$this->urls = $urls;
|
||||
}
|
||||
public function getUrls()
|
||||
{
|
||||
return $this->urls;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'details';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $detailsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2';
|
||||
protected $detailsDataType = 'array';
|
||||
protected $resultType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2';
|
||||
protected $resultDataType = '';
|
||||
|
||||
|
||||
public function setDetails($details)
|
||||
{
|
||||
$this->details = $details;
|
||||
}
|
||||
public function getDetails()
|
||||
{
|
||||
return $this->details;
|
||||
}
|
||||
public function setResult(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
public function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pagespeedonline_ResultPageStats extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $cssResponseBytes;
|
||||
public $flashResponseBytes;
|
||||
public $htmlResponseBytes;
|
||||
public $imageResponseBytes;
|
||||
public $javascriptResponseBytes;
|
||||
public $numberCssResources;
|
||||
public $numberHosts;
|
||||
public $numberJsResources;
|
||||
public $numberResources;
|
||||
public $numberStaticResources;
|
||||
public $otherResponseBytes;
|
||||
public $textResponseBytes;
|
||||
public $totalRequestBytes;
|
||||
|
||||
|
||||
public function setCssResponseBytes($cssResponseBytes)
|
||||
{
|
||||
$this->cssResponseBytes = $cssResponseBytes;
|
||||
}
|
||||
public function getCssResponseBytes()
|
||||
{
|
||||
return $this->cssResponseBytes;
|
||||
}
|
||||
public function setFlashResponseBytes($flashResponseBytes)
|
||||
{
|
||||
$this->flashResponseBytes = $flashResponseBytes;
|
||||
}
|
||||
public function getFlashResponseBytes()
|
||||
{
|
||||
return $this->flashResponseBytes;
|
||||
}
|
||||
public function setHtmlResponseBytes($htmlResponseBytes)
|
||||
{
|
||||
$this->htmlResponseBytes = $htmlResponseBytes;
|
||||
}
|
||||
public function getHtmlResponseBytes()
|
||||
{
|
||||
return $this->htmlResponseBytes;
|
||||
}
|
||||
public function setImageResponseBytes($imageResponseBytes)
|
||||
{
|
||||
$this->imageResponseBytes = $imageResponseBytes;
|
||||
}
|
||||
public function getImageResponseBytes()
|
||||
{
|
||||
return $this->imageResponseBytes;
|
||||
}
|
||||
public function setJavascriptResponseBytes($javascriptResponseBytes)
|
||||
{
|
||||
$this->javascriptResponseBytes = $javascriptResponseBytes;
|
||||
}
|
||||
public function getJavascriptResponseBytes()
|
||||
{
|
||||
return $this->javascriptResponseBytes;
|
||||
}
|
||||
public function setNumberCssResources($numberCssResources)
|
||||
{
|
||||
$this->numberCssResources = $numberCssResources;
|
||||
}
|
||||
public function getNumberCssResources()
|
||||
{
|
||||
return $this->numberCssResources;
|
||||
}
|
||||
public function setNumberHosts($numberHosts)
|
||||
{
|
||||
$this->numberHosts = $numberHosts;
|
||||
}
|
||||
public function getNumberHosts()
|
||||
{
|
||||
return $this->numberHosts;
|
||||
}
|
||||
public function setNumberJsResources($numberJsResources)
|
||||
{
|
||||
$this->numberJsResources = $numberJsResources;
|
||||
}
|
||||
public function getNumberJsResources()
|
||||
{
|
||||
return $this->numberJsResources;
|
||||
}
|
||||
public function setNumberResources($numberResources)
|
||||
{
|
||||
$this->numberResources = $numberResources;
|
||||
}
|
||||
public function getNumberResources()
|
||||
{
|
||||
return $this->numberResources;
|
||||
}
|
||||
public function setNumberStaticResources($numberStaticResources)
|
||||
{
|
||||
$this->numberStaticResources = $numberStaticResources;
|
||||
}
|
||||
public function getNumberStaticResources()
|
||||
{
|
||||
return $this->numberStaticResources;
|
||||
}
|
||||
public function setOtherResponseBytes($otherResponseBytes)
|
||||
{
|
||||
$this->otherResponseBytes = $otherResponseBytes;
|
||||
}
|
||||
public function getOtherResponseBytes()
|
||||
{
|
||||
return $this->otherResponseBytes;
|
||||
}
|
||||
public function setTextResponseBytes($textResponseBytes)
|
||||
{
|
||||
$this->textResponseBytes = $textResponseBytes;
|
||||
}
|
||||
public function getTextResponseBytes()
|
||||
{
|
||||
return $this->textResponseBytes;
|
||||
}
|
||||
public function setTotalRequestBytes($totalRequestBytes)
|
||||
{
|
||||
$this->totalRequestBytes = $totalRequestBytes;
|
||||
}
|
||||
public function getTotalRequestBytes()
|
||||
{
|
||||
return $this->totalRequestBytes;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pagespeedonline_ResultRuleGroups extends Google_Model
|
||||
{
|
||||
}
|
||||
|
||||
class Google_Service_Pagespeedonline_ResultRuleGroupsElement extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $score;
|
||||
|
||||
|
||||
public function setScore($score)
|
||||
{
|
||||
$this->score = $score;
|
||||
}
|
||||
public function getScore()
|
||||
{
|
||||
return $this->score;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pagespeedonline_ResultVersion extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $major;
|
||||
public $minor;
|
||||
|
||||
|
||||
public function setMajor($major)
|
||||
{
|
||||
$this->major = $major;
|
||||
}
|
||||
public function getMajor()
|
||||
{
|
||||
return $this->major;
|
||||
}
|
||||
public function setMinor($minor)
|
||||
{
|
||||
$this->minor = $minor;
|
||||
}
|
||||
public function getMinor()
|
||||
{
|
||||
return $this->minor;
|
||||
}
|
||||
}
|
1610
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Partners.php
vendored
Normal file
1610
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Partners.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1676
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Playmoviespartner.php
vendored
Normal file
1676
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Playmoviespartner.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3692
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php
vendored
Normal file
3692
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3929
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php
vendored
Normal file
3929
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1228
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Prediction.php
vendored
Normal file
1228
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Prediction.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1208
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Proximitybeacon.php
vendored
Normal file
1208
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Proximitybeacon.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
991
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pubsub.php
vendored
Normal file
991
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pubsub.php
vendored
Normal file
|
@ -0,0 +1,991 @@
|
|||
<?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 Pubsub (v1beta1).
|
||||
*
|
||||
* <p>
|
||||
* Provides reliable, many-to-many, asynchronous messaging between applications.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://developers.google.com/pubsub/v1beta1" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_Pubsub extends Google_Service
|
||||
{
|
||||
/** View and manage your data across Google Cloud Platform services. */
|
||||
const CLOUD_PLATFORM =
|
||||
"https://www.googleapis.com/auth/cloud-platform";
|
||||
/** View and manage Pub/Sub topics and subscriptions. */
|
||||
const PUBSUB =
|
||||
"https://www.googleapis.com/auth/pubsub";
|
||||
|
||||
public $subscriptions;
|
||||
public $topics;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the Pubsub service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://www.googleapis.com/';
|
||||
$this->servicePath = 'pubsub/v1beta1/';
|
||||
$this->version = 'v1beta1';
|
||||
$this->serviceName = 'pubsub';
|
||||
|
||||
$this->subscriptions = new Google_Service_Pubsub_Subscriptions_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'subscriptions',
|
||||
array(
|
||||
'methods' => array(
|
||||
'acknowledge' => array(
|
||||
'path' => 'subscriptions/acknowledge',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(),
|
||||
),'create' => array(
|
||||
'path' => 'subscriptions',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(),
|
||||
),'delete' => array(
|
||||
'path' => 'subscriptions/{+subscription}',
|
||||
'httpMethod' => 'DELETE',
|
||||
'parameters' => array(
|
||||
'subscription' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'get' => array(
|
||||
'path' => 'subscriptions/{+subscription}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'subscription' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'list' => array(
|
||||
'path' => 'subscriptions',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'pageToken' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'maxResults' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
'query' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),'modifyAckDeadline' => array(
|
||||
'path' => 'subscriptions/modifyAckDeadline',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(),
|
||||
),'modifyPushConfig' => array(
|
||||
'path' => 'subscriptions/modifyPushConfig',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(),
|
||||
),'pull' => array(
|
||||
'path' => 'subscriptions/pull',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(),
|
||||
),'pullBatch' => array(
|
||||
'path' => 'subscriptions/pullBatch',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
$this->topics = new Google_Service_Pubsub_Topics_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'topics',
|
||||
array(
|
||||
'methods' => array(
|
||||
'create' => array(
|
||||
'path' => 'topics',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(),
|
||||
),'delete' => array(
|
||||
'path' => 'topics/{+topic}',
|
||||
'httpMethod' => 'DELETE',
|
||||
'parameters' => array(
|
||||
'topic' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'get' => array(
|
||||
'path' => 'topics/{+topic}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'topic' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'list' => array(
|
||||
'path' => 'topics',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'pageToken' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'maxResults' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
'query' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),'publish' => array(
|
||||
'path' => 'topics/publish',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(),
|
||||
),'publishBatch' => array(
|
||||
'path' => 'topics/publishBatch',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "subscriptions" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $pubsubService = new Google_Service_Pubsub(...);
|
||||
* $subscriptions = $pubsubService->subscriptions;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Pubsub_Subscriptions_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Acknowledges a particular received message: the Pub/Sub system can remove the
|
||||
* given message from the subscription. Acknowledging a message whose Ack
|
||||
* deadline has expired may succeed, but the message could have been already
|
||||
* redelivered. Acknowledging a message more than once will not result in an
|
||||
* error. This is only used for messages received via pull.
|
||||
* (subscriptions.acknowledge)
|
||||
*
|
||||
* @param Google_AcknowledgeRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*/
|
||||
public function acknowledge(Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('acknowledge', array($params));
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a subscription on a given topic for a given subscriber. If the
|
||||
* subscription already exists, returns ALREADY_EXISTS. If the corresponding
|
||||
* topic doesn't exist, returns NOT_FOUND.
|
||||
*
|
||||
* If the name is not provided in the request, the server will assign a random
|
||||
* name for this subscription on the same project as the topic.
|
||||
* (subscriptions.create)
|
||||
*
|
||||
* @param Google_Subscription $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Pubsub_Subscription
|
||||
*/
|
||||
public function create(Google_Service_Pubsub_Subscription $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('create', array($params), "Google_Service_Pubsub_Subscription");
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes an existing subscription. All pending messages in the subscription
|
||||
* are immediately dropped. Calls to Pull after deletion will return NOT_FOUND.
|
||||
* (subscriptions.delete)
|
||||
*
|
||||
* @param string $subscription The subscription to delete.
|
||||
* @param array $optParams Optional parameters.
|
||||
*/
|
||||
public function delete($subscription, $optParams = array())
|
||||
{
|
||||
$params = array('subscription' => $subscription);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete', array($params));
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the configuration details of a subscription. (subscriptions.get)
|
||||
*
|
||||
* @param string $subscription The name of the subscription to get.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Pubsub_Subscription
|
||||
*/
|
||||
public function get($subscription, $optParams = array())
|
||||
{
|
||||
$params = array('subscription' => $subscription);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_Pubsub_Subscription");
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists matching subscriptions. (subscriptions.listSubscriptions)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string pageToken The value obtained in the last
|
||||
* ListSubscriptionsResponse for continuation.
|
||||
* @opt_param int maxResults Maximum number of subscriptions to return.
|
||||
* @opt_param string query A valid label query expression.
|
||||
* @return Google_Service_Pubsub_ListSubscriptionsResponse
|
||||
*/
|
||||
public function listSubscriptions($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Pubsub_ListSubscriptionsResponse");
|
||||
}
|
||||
|
||||
/**
|
||||
* Modifies the Ack deadline for a message received from a pull request.
|
||||
* (subscriptions.modifyAckDeadline)
|
||||
*
|
||||
* @param Google_ModifyAckDeadlineRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*/
|
||||
public function modifyAckDeadline(Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('modifyAckDeadline', array($params));
|
||||
}
|
||||
|
||||
/**
|
||||
* Modifies the PushConfig for a specified subscription. This method can be used
|
||||
* to suspend the flow of messages to an endpoint by clearing the PushConfig
|
||||
* field in the request. Messages will be accumulated for delivery even if no
|
||||
* push configuration is defined or while the configuration is modified.
|
||||
* (subscriptions.modifyPushConfig)
|
||||
*
|
||||
* @param Google_ModifyPushConfigRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*/
|
||||
public function modifyPushConfig(Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('modifyPushConfig', array($params));
|
||||
}
|
||||
|
||||
/**
|
||||
* Pulls a single message from the server. If return_immediately is true, and no
|
||||
* messages are available in the subscription, this method returns
|
||||
* FAILED_PRECONDITION. The system is free to return an UNAVAILABLE error if no
|
||||
* messages are available in a reasonable amount of time (to reduce system
|
||||
* load). (subscriptions.pull)
|
||||
*
|
||||
* @param Google_PullRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Pubsub_PullResponse
|
||||
*/
|
||||
public function pull(Google_Service_Pubsub_PullRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('pull', array($params), "Google_Service_Pubsub_PullResponse");
|
||||
}
|
||||
|
||||
/**
|
||||
* Pulls messages from the server. Returns an empty list if there are no
|
||||
* messages available in the backlog. The system is free to return UNAVAILABLE
|
||||
* if there are too many pull requests outstanding for the given subscription.
|
||||
* (subscriptions.pullBatch)
|
||||
*
|
||||
* @param Google_PullBatchRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Pubsub_PullBatchResponse
|
||||
*/
|
||||
public function pullBatch(Google_Service_Pubsub_PullBatchRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('pullBatch', array($params), "Google_Service_Pubsub_PullBatchResponse");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "topics" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $pubsubService = new Google_Service_Pubsub(...);
|
||||
* $topics = $pubsubService->topics;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Pubsub_Topics_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Creates the given topic with the given name. (topics.create)
|
||||
*
|
||||
* @param Google_Topic $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Pubsub_Topic
|
||||
*/
|
||||
public function create(Google_Service_Pubsub_Topic $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('create', array($params), "Google_Service_Pubsub_Topic");
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes the topic with the given name. Returns NOT_FOUND if the topic does
|
||||
* not exist. After a topic is deleted, a new topic may be created with the same
|
||||
* name. (topics.delete)
|
||||
*
|
||||
* @param string $topic Name of the topic to delete.
|
||||
* @param array $optParams Optional parameters.
|
||||
*/
|
||||
public function delete($topic, $optParams = array())
|
||||
{
|
||||
$params = array('topic' => $topic);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete', array($params));
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the configuration of a topic. Since the topic only has the name
|
||||
* attribute, this method is only useful to check the existence of a topic. If
|
||||
* other attributes are added in the future, they will be returned here.
|
||||
* (topics.get)
|
||||
*
|
||||
* @param string $topic The name of the topic to get.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Pubsub_Topic
|
||||
*/
|
||||
public function get($topic, $optParams = array())
|
||||
{
|
||||
$params = array('topic' => $topic);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_Pubsub_Topic");
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists matching topics. (topics.listTopics)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string pageToken The value obtained in the last ListTopicsResponse
|
||||
* for continuation.
|
||||
* @opt_param int maxResults Maximum number of topics to return.
|
||||
* @opt_param string query A valid label query expression.
|
||||
* @return Google_Service_Pubsub_ListTopicsResponse
|
||||
*/
|
||||
public function listTopics($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicsResponse");
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a message to the topic. Returns NOT_FOUND if the topic does not exist.
|
||||
* (topics.publish)
|
||||
*
|
||||
* @param Google_PublishRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*/
|
||||
public function publish(Google_Service_Pubsub_PublishRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('publish', array($params));
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds one or more messages to the topic. Returns NOT_FOUND if the topic does
|
||||
* not exist. (topics.publishBatch)
|
||||
*
|
||||
* @param Google_PublishBatchRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Pubsub_PublishBatchResponse
|
||||
*/
|
||||
public function publishBatch(Google_Service_Pubsub_PublishBatchRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('publishBatch', array($params), "Google_Service_Pubsub_PublishBatchResponse");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_Pubsub_AcknowledgeRequest extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'ackId';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $ackId;
|
||||
public $subscription;
|
||||
|
||||
|
||||
public function setAckId($ackId)
|
||||
{
|
||||
$this->ackId = $ackId;
|
||||
}
|
||||
public function getAckId()
|
||||
{
|
||||
return $this->ackId;
|
||||
}
|
||||
public function setSubscription($subscription)
|
||||
{
|
||||
$this->subscription = $subscription;
|
||||
}
|
||||
public function getSubscription()
|
||||
{
|
||||
return $this->subscription;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pubsub_Label extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $key;
|
||||
public $numValue;
|
||||
public $strValue;
|
||||
|
||||
|
||||
public function setKey($key)
|
||||
{
|
||||
$this->key = $key;
|
||||
}
|
||||
public function getKey()
|
||||
{
|
||||
return $this->key;
|
||||
}
|
||||
public function setNumValue($numValue)
|
||||
{
|
||||
$this->numValue = $numValue;
|
||||
}
|
||||
public function getNumValue()
|
||||
{
|
||||
return $this->numValue;
|
||||
}
|
||||
public function setStrValue($strValue)
|
||||
{
|
||||
$this->strValue = $strValue;
|
||||
}
|
||||
public function getStrValue()
|
||||
{
|
||||
return $this->strValue;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'subscription';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $nextPageToken;
|
||||
protected $subscriptionType = 'Google_Service_Pubsub_Subscription';
|
||||
protected $subscriptionDataType = 'array';
|
||||
|
||||
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
public function setSubscription($subscription)
|
||||
{
|
||||
$this->subscription = $subscription;
|
||||
}
|
||||
public function getSubscription()
|
||||
{
|
||||
return $this->subscription;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pubsub_ListTopicsResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'topic';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $nextPageToken;
|
||||
protected $topicType = 'Google_Service_Pubsub_Topic';
|
||||
protected $topicDataType = 'array';
|
||||
|
||||
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
public function setTopic($topic)
|
||||
{
|
||||
$this->topic = $topic;
|
||||
}
|
||||
public function getTopic()
|
||||
{
|
||||
return $this->topic;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'ackIds';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $ackDeadlineSeconds;
|
||||
public $ackId;
|
||||
public $ackIds;
|
||||
public $subscription;
|
||||
|
||||
|
||||
public function setAckDeadlineSeconds($ackDeadlineSeconds)
|
||||
{
|
||||
$this->ackDeadlineSeconds = $ackDeadlineSeconds;
|
||||
}
|
||||
public function getAckDeadlineSeconds()
|
||||
{
|
||||
return $this->ackDeadlineSeconds;
|
||||
}
|
||||
public function setAckId($ackId)
|
||||
{
|
||||
$this->ackId = $ackId;
|
||||
}
|
||||
public function getAckId()
|
||||
{
|
||||
return $this->ackId;
|
||||
}
|
||||
public function setAckIds($ackIds)
|
||||
{
|
||||
$this->ackIds = $ackIds;
|
||||
}
|
||||
public function getAckIds()
|
||||
{
|
||||
return $this->ackIds;
|
||||
}
|
||||
public function setSubscription($subscription)
|
||||
{
|
||||
$this->subscription = $subscription;
|
||||
}
|
||||
public function getSubscription()
|
||||
{
|
||||
return $this->subscription;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $pushConfigType = 'Google_Service_Pubsub_PushConfig';
|
||||
protected $pushConfigDataType = '';
|
||||
public $subscription;
|
||||
|
||||
|
||||
public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig)
|
||||
{
|
||||
$this->pushConfig = $pushConfig;
|
||||
}
|
||||
public function getPushConfig()
|
||||
{
|
||||
return $this->pushConfig;
|
||||
}
|
||||
public function setSubscription($subscription)
|
||||
{
|
||||
$this->subscription = $subscription;
|
||||
}
|
||||
public function getSubscription()
|
||||
{
|
||||
return $this->subscription;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pubsub_PublishBatchRequest extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'messages';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $messagesType = 'Google_Service_Pubsub_PubsubMessage';
|
||||
protected $messagesDataType = 'array';
|
||||
public $topic;
|
||||
|
||||
|
||||
public function setMessages($messages)
|
||||
{
|
||||
$this->messages = $messages;
|
||||
}
|
||||
public function getMessages()
|
||||
{
|
||||
return $this->messages;
|
||||
}
|
||||
public function setTopic($topic)
|
||||
{
|
||||
$this->topic = $topic;
|
||||
}
|
||||
public function getTopic()
|
||||
{
|
||||
return $this->topic;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pubsub_PublishBatchResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'messageIds';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $messageIds;
|
||||
|
||||
|
||||
public function setMessageIds($messageIds)
|
||||
{
|
||||
$this->messageIds = $messageIds;
|
||||
}
|
||||
public function getMessageIds()
|
||||
{
|
||||
return $this->messageIds;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pubsub_PublishRequest extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $messageType = 'Google_Service_Pubsub_PubsubMessage';
|
||||
protected $messageDataType = '';
|
||||
public $topic;
|
||||
|
||||
|
||||
public function setMessage(Google_Service_Pubsub_PubsubMessage $message)
|
||||
{
|
||||
$this->message = $message;
|
||||
}
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->message;
|
||||
}
|
||||
public function setTopic($topic)
|
||||
{
|
||||
$this->topic = $topic;
|
||||
}
|
||||
public function getTopic()
|
||||
{
|
||||
return $this->topic;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pubsub_PubsubEvent extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $deleted;
|
||||
protected $messageType = 'Google_Service_Pubsub_PubsubMessage';
|
||||
protected $messageDataType = '';
|
||||
public $subscription;
|
||||
public $truncated;
|
||||
|
||||
|
||||
public function setDeleted($deleted)
|
||||
{
|
||||
$this->deleted = $deleted;
|
||||
}
|
||||
public function getDeleted()
|
||||
{
|
||||
return $this->deleted;
|
||||
}
|
||||
public function setMessage(Google_Service_Pubsub_PubsubMessage $message)
|
||||
{
|
||||
$this->message = $message;
|
||||
}
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->message;
|
||||
}
|
||||
public function setSubscription($subscription)
|
||||
{
|
||||
$this->subscription = $subscription;
|
||||
}
|
||||
public function getSubscription()
|
||||
{
|
||||
return $this->subscription;
|
||||
}
|
||||
public function setTruncated($truncated)
|
||||
{
|
||||
$this->truncated = $truncated;
|
||||
}
|
||||
public function getTruncated()
|
||||
{
|
||||
return $this->truncated;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pubsub_PubsubMessage extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'label';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $data;
|
||||
protected $labelType = 'Google_Service_Pubsub_Label';
|
||||
protected $labelDataType = 'array';
|
||||
public $messageId;
|
||||
|
||||
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
public function setLabel($label)
|
||||
{
|
||||
$this->label = $label;
|
||||
}
|
||||
public function getLabel()
|
||||
{
|
||||
return $this->label;
|
||||
}
|
||||
public function setMessageId($messageId)
|
||||
{
|
||||
$this->messageId = $messageId;
|
||||
}
|
||||
public function getMessageId()
|
||||
{
|
||||
return $this->messageId;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pubsub_PullBatchRequest extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $maxEvents;
|
||||
public $returnImmediately;
|
||||
public $subscription;
|
||||
|
||||
|
||||
public function setMaxEvents($maxEvents)
|
||||
{
|
||||
$this->maxEvents = $maxEvents;
|
||||
}
|
||||
public function getMaxEvents()
|
||||
{
|
||||
return $this->maxEvents;
|
||||
}
|
||||
public function setReturnImmediately($returnImmediately)
|
||||
{
|
||||
$this->returnImmediately = $returnImmediately;
|
||||
}
|
||||
public function getReturnImmediately()
|
||||
{
|
||||
return $this->returnImmediately;
|
||||
}
|
||||
public function setSubscription($subscription)
|
||||
{
|
||||
$this->subscription = $subscription;
|
||||
}
|
||||
public function getSubscription()
|
||||
{
|
||||
return $this->subscription;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pubsub_PullBatchResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'pullResponses';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $pullResponsesType = 'Google_Service_Pubsub_PullResponse';
|
||||
protected $pullResponsesDataType = 'array';
|
||||
|
||||
|
||||
public function setPullResponses($pullResponses)
|
||||
{
|
||||
$this->pullResponses = $pullResponses;
|
||||
}
|
||||
public function getPullResponses()
|
||||
{
|
||||
return $this->pullResponses;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pubsub_PullRequest extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $returnImmediately;
|
||||
public $subscription;
|
||||
|
||||
|
||||
public function setReturnImmediately($returnImmediately)
|
||||
{
|
||||
$this->returnImmediately = $returnImmediately;
|
||||
}
|
||||
public function getReturnImmediately()
|
||||
{
|
||||
return $this->returnImmediately;
|
||||
}
|
||||
public function setSubscription($subscription)
|
||||
{
|
||||
$this->subscription = $subscription;
|
||||
}
|
||||
public function getSubscription()
|
||||
{
|
||||
return $this->subscription;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pubsub_PullResponse extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $ackId;
|
||||
protected $pubsubEventType = 'Google_Service_Pubsub_PubsubEvent';
|
||||
protected $pubsubEventDataType = '';
|
||||
|
||||
|
||||
public function setAckId($ackId)
|
||||
{
|
||||
$this->ackId = $ackId;
|
||||
}
|
||||
public function getAckId()
|
||||
{
|
||||
return $this->ackId;
|
||||
}
|
||||
public function setPubsubEvent(Google_Service_Pubsub_PubsubEvent $pubsubEvent)
|
||||
{
|
||||
$this->pubsubEvent = $pubsubEvent;
|
||||
}
|
||||
public function getPubsubEvent()
|
||||
{
|
||||
return $this->pubsubEvent;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pubsub_PushConfig extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $pushEndpoint;
|
||||
|
||||
|
||||
public function setPushEndpoint($pushEndpoint)
|
||||
{
|
||||
$this->pushEndpoint = $pushEndpoint;
|
||||
}
|
||||
public function getPushEndpoint()
|
||||
{
|
||||
return $this->pushEndpoint;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pubsub_Subscription extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $ackDeadlineSeconds;
|
||||
public $name;
|
||||
protected $pushConfigType = 'Google_Service_Pubsub_PushConfig';
|
||||
protected $pushConfigDataType = '';
|
||||
public $topic;
|
||||
|
||||
|
||||
public function setAckDeadlineSeconds($ackDeadlineSeconds)
|
||||
{
|
||||
$this->ackDeadlineSeconds = $ackDeadlineSeconds;
|
||||
}
|
||||
public function getAckDeadlineSeconds()
|
||||
{
|
||||
return $this->ackDeadlineSeconds;
|
||||
}
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig)
|
||||
{
|
||||
$this->pushConfig = $pushConfig;
|
||||
}
|
||||
public function getPushConfig()
|
||||
{
|
||||
return $this->pushConfig;
|
||||
}
|
||||
public function setTopic($topic)
|
||||
{
|
||||
$this->topic = $topic;
|
||||
}
|
||||
public function getTopic()
|
||||
{
|
||||
return $this->topic;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Pubsub_Topic extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $name;
|
||||
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
}
|
1538
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php
vendored
Normal file
1538
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1313
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Replicapool.php
vendored
Normal file
1313
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Replicapool.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1355
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Replicapoolupdater.php
vendored
Normal file
1355
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Replicapoolupdater.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1136
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php
vendored
Normal file
1136
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1144
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reseller.php
vendored
Normal file
1144
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reseller.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1345
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Resourceviews.php
vendored
Normal file
1345
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Resourceviews.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3716
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php
vendored
Normal file
3716
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
368
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Script.php
vendored
Normal file
368
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Script.php
vendored
Normal file
|
@ -0,0 +1,368 @@
|
|||
<?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 Script (v1).
|
||||
*
|
||||
* <p>
|
||||
* An API for executing Google Apps Script projects.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://developers.google.com/apps-script/execution/rest/v1/run" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_Script extends Google_Service
|
||||
{
|
||||
/** View and manage your mail. */
|
||||
const MAIL_GOOGLE_COM =
|
||||
"https://mail.google.com/";
|
||||
/** Manage your calendars. */
|
||||
const WWW_GOOGLE_COM_CALENDAR_FEEDS =
|
||||
"https://www.google.com/calendar/feeds";
|
||||
/** Manage your contacts. */
|
||||
const WWW_GOOGLE_COM_M8_FEEDS =
|
||||
"https://www.google.com/m8/feeds";
|
||||
/** View and manage the provisioning of groups on your domain. */
|
||||
const ADMIN_DIRECTORY_GROUP =
|
||||
"https://www.googleapis.com/auth/admin.directory.group";
|
||||
/** View and manage the provisioning of users on your domain. */
|
||||
const ADMIN_DIRECTORY_USER =
|
||||
"https://www.googleapis.com/auth/admin.directory.user";
|
||||
/** View and manage the files in your Google Drive. */
|
||||
const DRIVE =
|
||||
"https://www.googleapis.com/auth/drive";
|
||||
/** View and manage your forms in Google Drive. */
|
||||
const FORMS =
|
||||
"https://www.googleapis.com/auth/forms";
|
||||
/** View and manage forms that this application has been installed in. */
|
||||
const FORMS_CURRENTONLY =
|
||||
"https://www.googleapis.com/auth/forms.currentonly";
|
||||
/** View and manage your Google Groups. */
|
||||
const GROUPS =
|
||||
"https://www.googleapis.com/auth/groups";
|
||||
/** View your email address. */
|
||||
const USERINFO_EMAIL =
|
||||
"https://www.googleapis.com/auth/userinfo.email";
|
||||
|
||||
public $scripts;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the Script service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://script.googleapis.com/';
|
||||
$this->servicePath = '';
|
||||
$this->version = 'v1';
|
||||
$this->serviceName = 'script';
|
||||
|
||||
$this->scripts = new Google_Service_Script_Scripts_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'scripts',
|
||||
array(
|
||||
'methods' => array(
|
||||
'run' => array(
|
||||
'path' => 'v1/scripts/{scriptId}:run',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'scriptId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "scripts" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $scriptService = new Google_Service_Script(...);
|
||||
* $scripts = $scriptService->scripts;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Script_Scripts_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Runs a function in an Apps Script project that has been deployed for use with
|
||||
* the Apps Script Execution API. This method requires authorization with an
|
||||
* OAuth 2.0 token that includes at least one of the scopes listed in the
|
||||
* [Authentication](#authentication) section; script projects that do not
|
||||
* require authorization cannot be executed through this API. To find the
|
||||
* correct scopes to include in the authentication token, open the project in
|
||||
* the script editor, then select **File > Project properties** and click the
|
||||
* **Scopes** tab. (scripts.run)
|
||||
*
|
||||
* @param string $scriptId The project key of the script to be executed. To find
|
||||
* the project key, open the project in the script editor, then select **File >
|
||||
* Project properties**.
|
||||
* @param Google_ExecutionRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Script_Operation
|
||||
*/
|
||||
public function run($scriptId, Google_Service_Script_ExecutionRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('scriptId' => $scriptId, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('run', array($params), "Google_Service_Script_Operation");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_Script_ExecutionError extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'scriptStackTraceElements';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $errorMessage;
|
||||
public $errorType;
|
||||
protected $scriptStackTraceElementsType = 'Google_Service_Script_ScriptStackTraceElement';
|
||||
protected $scriptStackTraceElementsDataType = 'array';
|
||||
|
||||
|
||||
public function setErrorMessage($errorMessage)
|
||||
{
|
||||
$this->errorMessage = $errorMessage;
|
||||
}
|
||||
public function getErrorMessage()
|
||||
{
|
||||
return $this->errorMessage;
|
||||
}
|
||||
public function setErrorType($errorType)
|
||||
{
|
||||
$this->errorType = $errorType;
|
||||
}
|
||||
public function getErrorType()
|
||||
{
|
||||
return $this->errorType;
|
||||
}
|
||||
public function setScriptStackTraceElements($scriptStackTraceElements)
|
||||
{
|
||||
$this->scriptStackTraceElements = $scriptStackTraceElements;
|
||||
}
|
||||
public function getScriptStackTraceElements()
|
||||
{
|
||||
return $this->scriptStackTraceElements;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Script_ExecutionRequest extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'parameters';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $devMode;
|
||||
public $function;
|
||||
public $parameters;
|
||||
public $sessionState;
|
||||
|
||||
|
||||
public function setDevMode($devMode)
|
||||
{
|
||||
$this->devMode = $devMode;
|
||||
}
|
||||
public function getDevMode()
|
||||
{
|
||||
return $this->devMode;
|
||||
}
|
||||
public function setFunction($function)
|
||||
{
|
||||
$this->function = $function;
|
||||
}
|
||||
public function getFunction()
|
||||
{
|
||||
return $this->function;
|
||||
}
|
||||
public function setParameters($parameters)
|
||||
{
|
||||
$this->parameters = $parameters;
|
||||
}
|
||||
public function getParameters()
|
||||
{
|
||||
return $this->parameters;
|
||||
}
|
||||
public function setSessionState($sessionState)
|
||||
{
|
||||
$this->sessionState = $sessionState;
|
||||
}
|
||||
public function getSessionState()
|
||||
{
|
||||
return $this->sessionState;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Script_ExecutionResponse extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $result;
|
||||
|
||||
|
||||
public function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
public function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Script_Operation extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $done;
|
||||
protected $errorType = 'Google_Service_Script_Status';
|
||||
protected $errorDataType = '';
|
||||
public $metadata;
|
||||
public $name;
|
||||
public $response;
|
||||
|
||||
|
||||
public function setDone($done)
|
||||
{
|
||||
$this->done = $done;
|
||||
}
|
||||
public function getDone()
|
||||
{
|
||||
return $this->done;
|
||||
}
|
||||
public function setError(Google_Service_Script_Status $error)
|
||||
{
|
||||
$this->error = $error;
|
||||
}
|
||||
public function getError()
|
||||
{
|
||||
return $this->error;
|
||||
}
|
||||
public function setMetadata($metadata)
|
||||
{
|
||||
$this->metadata = $metadata;
|
||||
}
|
||||
public function getMetadata()
|
||||
{
|
||||
return $this->metadata;
|
||||
}
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
public function setResponse($response)
|
||||
{
|
||||
$this->response = $response;
|
||||
}
|
||||
public function getResponse()
|
||||
{
|
||||
return $this->response;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Script_OperationMetadata extends Google_Model
|
||||
{
|
||||
}
|
||||
|
||||
class Google_Service_Script_OperationResponse extends Google_Model
|
||||
{
|
||||
}
|
||||
|
||||
class Google_Service_Script_ScriptStackTraceElement extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $function;
|
||||
public $lineNumber;
|
||||
|
||||
|
||||
public function setFunction($function)
|
||||
{
|
||||
$this->function = $function;
|
||||
}
|
||||
public function getFunction()
|
||||
{
|
||||
return $this->function;
|
||||
}
|
||||
public function setLineNumber($lineNumber)
|
||||
{
|
||||
$this->lineNumber = $lineNumber;
|
||||
}
|
||||
public function getLineNumber()
|
||||
{
|
||||
return $this->lineNumber;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Script_Status extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'details';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $code;
|
||||
public $details;
|
||||
public $message;
|
||||
|
||||
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->code = $code;
|
||||
}
|
||||
public function getCode()
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
public function setDetails($details)
|
||||
{
|
||||
$this->details = $details;
|
||||
}
|
||||
public function getDetails()
|
||||
{
|
||||
return $this->details;
|
||||
}
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->message = $message;
|
||||
}
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->message;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Script_StatusDetails extends Google_Model
|
||||
{
|
||||
}
|
9176
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php
vendored
Normal file
9176
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
405
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SiteVerification.php
vendored
Normal file
405
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SiteVerification.php
vendored
Normal file
|
@ -0,0 +1,405 @@
|
|||
<?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 SiteVerification (v1).
|
||||
*
|
||||
* <p>
|
||||
* Lets you programatically verify ownership of websites or domains with Google.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://developers.google.com/site-verification/" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_SiteVerification extends Google_Service
|
||||
{
|
||||
/** Manage the list of sites and domains you control. */
|
||||
const SITEVERIFICATION =
|
||||
"https://www.googleapis.com/auth/siteverification";
|
||||
/** Manage your new site verifications with Google. */
|
||||
const SITEVERIFICATION_VERIFY_ONLY =
|
||||
"https://www.googleapis.com/auth/siteverification.verify_only";
|
||||
|
||||
public $webResource;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the SiteVerification service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://www.googleapis.com/';
|
||||
$this->servicePath = 'siteVerification/v1/';
|
||||
$this->version = 'v1';
|
||||
$this->serviceName = 'siteVerification';
|
||||
|
||||
$this->webResource = new Google_Service_SiteVerification_WebResource_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'webResource',
|
||||
array(
|
||||
'methods' => array(
|
||||
'delete' => array(
|
||||
'path' => 'webResource/{id}',
|
||||
'httpMethod' => 'DELETE',
|
||||
'parameters' => array(
|
||||
'id' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'get' => array(
|
||||
'path' => 'webResource/{id}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'id' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'getToken' => array(
|
||||
'path' => 'token',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(),
|
||||
),'insert' => array(
|
||||
'path' => 'webResource',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'verificationMethod' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'list' => array(
|
||||
'path' => 'webResource',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(),
|
||||
),'patch' => array(
|
||||
'path' => 'webResource/{id}',
|
||||
'httpMethod' => 'PATCH',
|
||||
'parameters' => array(
|
||||
'id' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'update' => array(
|
||||
'path' => 'webResource/{id}',
|
||||
'httpMethod' => 'PUT',
|
||||
'parameters' => array(
|
||||
'id' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "webResource" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $siteVerificationService = new Google_Service_SiteVerification(...);
|
||||
* $webResource = $siteVerificationService->webResource;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_SiteVerification_WebResource_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Relinquish ownership of a website or domain. (webResource.delete)
|
||||
*
|
||||
* @param string $id The id of a verified site or domain.
|
||||
* @param array $optParams Optional parameters.
|
||||
*/
|
||||
public function delete($id, $optParams = array())
|
||||
{
|
||||
$params = array('id' => $id);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete', array($params));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the most current data for a website or domain. (webResource.get)
|
||||
*
|
||||
* @param string $id The id of a verified site or domain.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_SiteVerification_SiteVerificationWebResourceResource
|
||||
*/
|
||||
public function get($id, $optParams = array())
|
||||
{
|
||||
$params = array('id' => $id);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource");
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a verification token for placing on a website or domain.
|
||||
* (webResource.getToken)
|
||||
*
|
||||
* @param Google_SiteVerificationWebResourceGettokenRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse
|
||||
*/
|
||||
public function getToken(Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('getToken', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse");
|
||||
}
|
||||
|
||||
/**
|
||||
* Attempt verification of a website or domain. (webResource.insert)
|
||||
*
|
||||
* @param string $verificationMethod The method to use for verifying a site or
|
||||
* domain.
|
||||
* @param Google_SiteVerificationWebResourceResource $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_SiteVerification_SiteVerificationWebResourceResource
|
||||
*/
|
||||
public function insert($verificationMethod, Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('verificationMethod' => $verificationMethod, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('insert', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource");
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the list of your verified websites and domains.
|
||||
* (webResource.listWebResource)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_SiteVerification_SiteVerificationWebResourceListResponse
|
||||
*/
|
||||
public function listWebResource($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceListResponse");
|
||||
}
|
||||
|
||||
/**
|
||||
* Modify the list of owners for your website or domain. This method supports
|
||||
* patch semantics. (webResource.patch)
|
||||
*
|
||||
* @param string $id The id of a verified site or domain.
|
||||
* @param Google_SiteVerificationWebResourceResource $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_SiteVerification_SiteVerificationWebResourceResource
|
||||
*/
|
||||
public function patch($id, Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('id' => $id, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('patch', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource");
|
||||
}
|
||||
|
||||
/**
|
||||
* Modify the list of owners for your website or domain. (webResource.update)
|
||||
*
|
||||
* @param string $id The id of a verified site or domain.
|
||||
* @param Google_SiteVerificationWebResourceResource $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_SiteVerification_SiteVerificationWebResourceResource
|
||||
*/
|
||||
public function update($id, Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('id' => $id, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('update', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $siteType = 'Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite';
|
||||
protected $siteDataType = '';
|
||||
public $verificationMethod;
|
||||
|
||||
|
||||
public function setSite(Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite $site)
|
||||
{
|
||||
$this->site = $site;
|
||||
}
|
||||
public function getSite()
|
||||
{
|
||||
return $this->site;
|
||||
}
|
||||
public function setVerificationMethod($verificationMethod)
|
||||
{
|
||||
$this->verificationMethod = $verificationMethod;
|
||||
}
|
||||
public function getVerificationMethod()
|
||||
{
|
||||
return $this->verificationMethod;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $identifier;
|
||||
public $type;
|
||||
|
||||
|
||||
public function setIdentifier($identifier)
|
||||
{
|
||||
$this->identifier = $identifier;
|
||||
}
|
||||
public function getIdentifier()
|
||||
{
|
||||
return $this->identifier;
|
||||
}
|
||||
public function setType($type)
|
||||
{
|
||||
$this->type = $type;
|
||||
}
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $method;
|
||||
public $token;
|
||||
|
||||
|
||||
public function setMethod($method)
|
||||
{
|
||||
$this->method = $method;
|
||||
}
|
||||
public function getMethod()
|
||||
{
|
||||
return $this->method;
|
||||
}
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->token = $token;
|
||||
}
|
||||
public function getToken()
|
||||
{
|
||||
return $this->token;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_SiteVerification_SiteVerificationWebResourceListResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'items';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $itemsType = 'Google_Service_SiteVerification_SiteVerificationWebResourceResource';
|
||||
protected $itemsDataType = 'array';
|
||||
|
||||
|
||||
public function setItems($items)
|
||||
{
|
||||
$this->items = $items;
|
||||
}
|
||||
public function getItems()
|
||||
{
|
||||
return $this->items;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_SiteVerification_SiteVerificationWebResourceResource extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'owners';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $id;
|
||||
public $owners;
|
||||
protected $siteType = 'Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite';
|
||||
protected $siteDataType = '';
|
||||
|
||||
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
public function setOwners($owners)
|
||||
{
|
||||
$this->owners = $owners;
|
||||
}
|
||||
public function getOwners()
|
||||
{
|
||||
return $this->owners;
|
||||
}
|
||||
public function setSite(Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite $site)
|
||||
{
|
||||
$this->site = $site;
|
||||
}
|
||||
public function getSite()
|
||||
{
|
||||
return $this->site;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $identifier;
|
||||
public $type;
|
||||
|
||||
|
||||
public function setIdentifier($identifier)
|
||||
{
|
||||
$this->identifier = $identifier;
|
||||
}
|
||||
public function getIdentifier()
|
||||
{
|
||||
return $this->identifier;
|
||||
}
|
||||
public function setType($type)
|
||||
{
|
||||
$this->type = $type;
|
||||
}
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
}
|
1752
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Spectrum.php
vendored
Normal file
1752
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Spectrum.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3350
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storage.php
vendored
Normal file
3350
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storage.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1475
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storagetransfer.php
vendored
Normal file
1475
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storagetransfer.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3445
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/TagManager.php
vendored
Normal file
3445
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/TagManager.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Taskqueue.php
vendored
Normal file
690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Taskqueue.php
vendored
Normal file
|
@ -0,0 +1,690 @@
|
|||
<?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 Taskqueue (v1beta2).
|
||||
*
|
||||
* <p>
|
||||
* Lets you access a Google App Engine Pull Task Queue over REST.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://developers.google.com/appengine/docs/python/taskqueue/rest" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_Taskqueue extends Google_Service
|
||||
{
|
||||
/** Manage your Tasks and Taskqueues. */
|
||||
const TASKQUEUE =
|
||||
"https://www.googleapis.com/auth/taskqueue";
|
||||
/** Consume Tasks from your Taskqueues. */
|
||||
const TASKQUEUE_CONSUMER =
|
||||
"https://www.googleapis.com/auth/taskqueue.consumer";
|
||||
|
||||
public $taskqueues;
|
||||
public $tasks;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the Taskqueue service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://www.googleapis.com/';
|
||||
$this->servicePath = 'taskqueue/v1beta2/projects/';
|
||||
$this->version = 'v1beta2';
|
||||
$this->serviceName = 'taskqueue';
|
||||
|
||||
$this->taskqueues = new Google_Service_Taskqueue_Taskqueues_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'taskqueues',
|
||||
array(
|
||||
'methods' => array(
|
||||
'get' => array(
|
||||
'path' => '{project}/taskqueues/{taskqueue}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'project' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'taskqueue' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'getStats' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'boolean',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
$this->tasks = new Google_Service_Taskqueue_Tasks_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'tasks',
|
||||
array(
|
||||
'methods' => array(
|
||||
'delete' => array(
|
||||
'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}',
|
||||
'httpMethod' => 'DELETE',
|
||||
'parameters' => array(
|
||||
'project' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'taskqueue' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'task' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'get' => array(
|
||||
'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'project' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'taskqueue' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'task' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'insert' => array(
|
||||
'path' => '{project}/taskqueues/{taskqueue}/tasks',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'project' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'taskqueue' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'lease' => array(
|
||||
'path' => '{project}/taskqueues/{taskqueue}/tasks/lease',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'project' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'taskqueue' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'numTasks' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
'required' => true,
|
||||
),
|
||||
'leaseSecs' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
'required' => true,
|
||||
),
|
||||
'groupByTag' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'boolean',
|
||||
),
|
||||
'tag' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),'list' => array(
|
||||
'path' => '{project}/taskqueues/{taskqueue}/tasks',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'project' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'taskqueue' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'patch' => array(
|
||||
'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}',
|
||||
'httpMethod' => 'PATCH',
|
||||
'parameters' => array(
|
||||
'project' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'taskqueue' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'task' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'newLeaseSeconds' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'update' => array(
|
||||
'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'project' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'taskqueue' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'task' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'newLeaseSeconds' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "taskqueues" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $taskqueueService = new Google_Service_Taskqueue(...);
|
||||
* $taskqueues = $taskqueueService->taskqueues;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Taskqueue_Taskqueues_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Get detailed information about a TaskQueue. (taskqueues.get)
|
||||
*
|
||||
* @param string $project The project under which the queue lies.
|
||||
* @param string $taskqueue The id of the taskqueue to get the properties of.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param bool getStats Whether to get stats. Optional.
|
||||
* @return Google_Service_Taskqueue_TaskQueue
|
||||
*/
|
||||
public function get($project, $taskqueue, $optParams = array())
|
||||
{
|
||||
$params = array('project' => $project, 'taskqueue' => $taskqueue);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_Taskqueue_TaskQueue");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "tasks" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $taskqueueService = new Google_Service_Taskqueue(...);
|
||||
* $tasks = $taskqueueService->tasks;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Taskqueue_Tasks_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Delete a task from a TaskQueue. (tasks.delete)
|
||||
*
|
||||
* @param string $project The project under which the queue lies.
|
||||
* @param string $taskqueue The taskqueue to delete a task from.
|
||||
* @param string $task The id of the task to delete.
|
||||
* @param array $optParams Optional parameters.
|
||||
*/
|
||||
public function delete($project, $taskqueue, $task, $optParams = array())
|
||||
{
|
||||
$params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete', array($params));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a particular task from a TaskQueue. (tasks.get)
|
||||
*
|
||||
* @param string $project The project under which the queue lies.
|
||||
* @param string $taskqueue The taskqueue in which the task belongs.
|
||||
* @param string $task The task to get properties of.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Taskqueue_Task
|
||||
*/
|
||||
public function get($project, $taskqueue, $task, $optParams = array())
|
||||
{
|
||||
$params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_Taskqueue_Task");
|
||||
}
|
||||
|
||||
/**
|
||||
* Insert a new task in a TaskQueue (tasks.insert)
|
||||
*
|
||||
* @param string $project The project under which the queue lies
|
||||
* @param string $taskqueue The taskqueue to insert the task into
|
||||
* @param Google_Task $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Taskqueue_Task
|
||||
*/
|
||||
public function insert($project, $taskqueue, Google_Service_Taskqueue_Task $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('project' => $project, 'taskqueue' => $taskqueue, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('insert', array($params), "Google_Service_Taskqueue_Task");
|
||||
}
|
||||
|
||||
/**
|
||||
* Lease 1 or more tasks from a TaskQueue. (tasks.lease)
|
||||
*
|
||||
* @param string $project The project under which the queue lies.
|
||||
* @param string $taskqueue The taskqueue to lease a task from.
|
||||
* @param int $numTasks The number of tasks to lease.
|
||||
* @param int $leaseSecs The lease in seconds.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param bool groupByTag When true, all returned tasks will have the same
|
||||
* tag
|
||||
* @opt_param string tag The tag allowed for tasks in the response. Must only be
|
||||
* specified if group_by_tag is true. If group_by_tag is true and tag is not
|
||||
* specified the tag will be that of the oldest task by eta, i.e. the first
|
||||
* available tag
|
||||
* @return Google_Service_Taskqueue_Tasks
|
||||
*/
|
||||
public function lease($project, $taskqueue, $numTasks, $leaseSecs, $optParams = array())
|
||||
{
|
||||
$params = array('project' => $project, 'taskqueue' => $taskqueue, 'numTasks' => $numTasks, 'leaseSecs' => $leaseSecs);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('lease', array($params), "Google_Service_Taskqueue_Tasks");
|
||||
}
|
||||
|
||||
/**
|
||||
* List Tasks in a TaskQueue (tasks.listTasks)
|
||||
*
|
||||
* @param string $project The project under which the queue lies.
|
||||
* @param string $taskqueue The id of the taskqueue to list tasks from.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Taskqueue_Tasks2
|
||||
*/
|
||||
public function listTasks($project, $taskqueue, $optParams = array())
|
||||
{
|
||||
$params = array('project' => $project, 'taskqueue' => $taskqueue);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Taskqueue_Tasks2");
|
||||
}
|
||||
|
||||
/**
|
||||
* Update tasks that are leased out of a TaskQueue. This method supports patch
|
||||
* semantics. (tasks.patch)
|
||||
*
|
||||
* @param string $project The project under which the queue lies.
|
||||
* @param string $taskqueue
|
||||
* @param string $task
|
||||
* @param int $newLeaseSeconds The new lease in seconds.
|
||||
* @param Google_Task $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Taskqueue_Task
|
||||
*/
|
||||
public function patch($project, $taskqueue, $task, $newLeaseSeconds, Google_Service_Taskqueue_Task $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task, 'newLeaseSeconds' => $newLeaseSeconds, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('patch', array($params), "Google_Service_Taskqueue_Task");
|
||||
}
|
||||
|
||||
/**
|
||||
* Update tasks that are leased out of a TaskQueue. (tasks.update)
|
||||
*
|
||||
* @param string $project The project under which the queue lies.
|
||||
* @param string $taskqueue
|
||||
* @param string $task
|
||||
* @param int $newLeaseSeconds The new lease in seconds.
|
||||
* @param Google_Task $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Taskqueue_Task
|
||||
*/
|
||||
public function update($project, $taskqueue, $task, $newLeaseSeconds, Google_Service_Taskqueue_Task $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task, 'newLeaseSeconds' => $newLeaseSeconds, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('update', array($params), "Google_Service_Taskqueue_Task");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_Taskqueue_Task extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
"retryCount" => "retry_count",
|
||||
);
|
||||
public $enqueueTimestamp;
|
||||
public $id;
|
||||
public $kind;
|
||||
public $leaseTimestamp;
|
||||
public $payloadBase64;
|
||||
public $queueName;
|
||||
public $retryCount;
|
||||
public $tag;
|
||||
|
||||
|
||||
public function setEnqueueTimestamp($enqueueTimestamp)
|
||||
{
|
||||
$this->enqueueTimestamp = $enqueueTimestamp;
|
||||
}
|
||||
public function getEnqueueTimestamp()
|
||||
{
|
||||
return $this->enqueueTimestamp;
|
||||
}
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
public function setKind($kind)
|
||||
{
|
||||
$this->kind = $kind;
|
||||
}
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
public function setLeaseTimestamp($leaseTimestamp)
|
||||
{
|
||||
$this->leaseTimestamp = $leaseTimestamp;
|
||||
}
|
||||
public function getLeaseTimestamp()
|
||||
{
|
||||
return $this->leaseTimestamp;
|
||||
}
|
||||
public function setPayloadBase64($payloadBase64)
|
||||
{
|
||||
$this->payloadBase64 = $payloadBase64;
|
||||
}
|
||||
public function getPayloadBase64()
|
||||
{
|
||||
return $this->payloadBase64;
|
||||
}
|
||||
public function setQueueName($queueName)
|
||||
{
|
||||
$this->queueName = $queueName;
|
||||
}
|
||||
public function getQueueName()
|
||||
{
|
||||
return $this->queueName;
|
||||
}
|
||||
public function setRetryCount($retryCount)
|
||||
{
|
||||
$this->retryCount = $retryCount;
|
||||
}
|
||||
public function getRetryCount()
|
||||
{
|
||||
return $this->retryCount;
|
||||
}
|
||||
public function setTag($tag)
|
||||
{
|
||||
$this->tag = $tag;
|
||||
}
|
||||
public function getTag()
|
||||
{
|
||||
return $this->tag;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Taskqueue_TaskQueue extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $aclType = 'Google_Service_Taskqueue_TaskQueueAcl';
|
||||
protected $aclDataType = '';
|
||||
public $id;
|
||||
public $kind;
|
||||
public $maxLeases;
|
||||
protected $statsType = 'Google_Service_Taskqueue_TaskQueueStats';
|
||||
protected $statsDataType = '';
|
||||
|
||||
|
||||
public function setAcl(Google_Service_Taskqueue_TaskQueueAcl $acl)
|
||||
{
|
||||
$this->acl = $acl;
|
||||
}
|
||||
public function getAcl()
|
||||
{
|
||||
return $this->acl;
|
||||
}
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
public function setKind($kind)
|
||||
{
|
||||
$this->kind = $kind;
|
||||
}
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
public function setMaxLeases($maxLeases)
|
||||
{
|
||||
$this->maxLeases = $maxLeases;
|
||||
}
|
||||
public function getMaxLeases()
|
||||
{
|
||||
return $this->maxLeases;
|
||||
}
|
||||
public function setStats(Google_Service_Taskqueue_TaskQueueStats $stats)
|
||||
{
|
||||
$this->stats = $stats;
|
||||
}
|
||||
public function getStats()
|
||||
{
|
||||
return $this->stats;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Taskqueue_TaskQueueAcl extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'producerEmails';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $adminEmails;
|
||||
public $consumerEmails;
|
||||
public $producerEmails;
|
||||
|
||||
|
||||
public function setAdminEmails($adminEmails)
|
||||
{
|
||||
$this->adminEmails = $adminEmails;
|
||||
}
|
||||
public function getAdminEmails()
|
||||
{
|
||||
return $this->adminEmails;
|
||||
}
|
||||
public function setConsumerEmails($consumerEmails)
|
||||
{
|
||||
$this->consumerEmails = $consumerEmails;
|
||||
}
|
||||
public function getConsumerEmails()
|
||||
{
|
||||
return $this->consumerEmails;
|
||||
}
|
||||
public function setProducerEmails($producerEmails)
|
||||
{
|
||||
$this->producerEmails = $producerEmails;
|
||||
}
|
||||
public function getProducerEmails()
|
||||
{
|
||||
return $this->producerEmails;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Taskqueue_TaskQueueStats extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $leasedLastHour;
|
||||
public $leasedLastMinute;
|
||||
public $oldestTask;
|
||||
public $totalTasks;
|
||||
|
||||
|
||||
public function setLeasedLastHour($leasedLastHour)
|
||||
{
|
||||
$this->leasedLastHour = $leasedLastHour;
|
||||
}
|
||||
public function getLeasedLastHour()
|
||||
{
|
||||
return $this->leasedLastHour;
|
||||
}
|
||||
public function setLeasedLastMinute($leasedLastMinute)
|
||||
{
|
||||
$this->leasedLastMinute = $leasedLastMinute;
|
||||
}
|
||||
public function getLeasedLastMinute()
|
||||
{
|
||||
return $this->leasedLastMinute;
|
||||
}
|
||||
public function setOldestTask($oldestTask)
|
||||
{
|
||||
$this->oldestTask = $oldestTask;
|
||||
}
|
||||
public function getOldestTask()
|
||||
{
|
||||
return $this->oldestTask;
|
||||
}
|
||||
public function setTotalTasks($totalTasks)
|
||||
{
|
||||
$this->totalTasks = $totalTasks;
|
||||
}
|
||||
public function getTotalTasks()
|
||||
{
|
||||
return $this->totalTasks;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Taskqueue_Tasks extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'items';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $itemsType = 'Google_Service_Taskqueue_Task';
|
||||
protected $itemsDataType = 'array';
|
||||
public $kind;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Taskqueue_Tasks2 extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'items';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $itemsType = 'Google_Service_Taskqueue_Task';
|
||||
protected $itemsDataType = 'array';
|
||||
public $kind;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
908
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Tasks.php
vendored
Normal file
908
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Tasks.php
vendored
Normal file
|
@ -0,0 +1,908 @@
|
|||
<?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 Tasks (v1).
|
||||
*
|
||||
* <p>
|
||||
* Lets you manage your tasks and task lists.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://developers.google.com/google-apps/tasks/firstapp" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_Tasks extends Google_Service
|
||||
{
|
||||
/** Manage your tasks. */
|
||||
const TASKS =
|
||||
"https://www.googleapis.com/auth/tasks";
|
||||
/** View your tasks. */
|
||||
const TASKS_READONLY =
|
||||
"https://www.googleapis.com/auth/tasks.readonly";
|
||||
|
||||
public $tasklists;
|
||||
public $tasks;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the Tasks service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://www.googleapis.com/';
|
||||
$this->servicePath = 'tasks/v1/';
|
||||
$this->version = 'v1';
|
||||
$this->serviceName = 'tasks';
|
||||
|
||||
$this->tasklists = new Google_Service_Tasks_Tasklists_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'tasklists',
|
||||
array(
|
||||
'methods' => array(
|
||||
'delete' => array(
|
||||
'path' => 'users/@me/lists/{tasklist}',
|
||||
'httpMethod' => 'DELETE',
|
||||
'parameters' => array(
|
||||
'tasklist' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'get' => array(
|
||||
'path' => 'users/@me/lists/{tasklist}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'tasklist' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'insert' => array(
|
||||
'path' => 'users/@me/lists',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(),
|
||||
),'list' => array(
|
||||
'path' => 'users/@me/lists',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'pageToken' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'maxResults' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),'patch' => array(
|
||||
'path' => 'users/@me/lists/{tasklist}',
|
||||
'httpMethod' => 'PATCH',
|
||||
'parameters' => array(
|
||||
'tasklist' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'update' => array(
|
||||
'path' => 'users/@me/lists/{tasklist}',
|
||||
'httpMethod' => 'PUT',
|
||||
'parameters' => array(
|
||||
'tasklist' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
$this->tasks = new Google_Service_Tasks_Tasks_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'tasks',
|
||||
array(
|
||||
'methods' => array(
|
||||
'clear' => array(
|
||||
'path' => 'lists/{tasklist}/clear',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'tasklist' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'delete' => array(
|
||||
'path' => 'lists/{tasklist}/tasks/{task}',
|
||||
'httpMethod' => 'DELETE',
|
||||
'parameters' => array(
|
||||
'tasklist' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'task' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'get' => array(
|
||||
'path' => 'lists/{tasklist}/tasks/{task}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'tasklist' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'task' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'insert' => array(
|
||||
'path' => 'lists/{tasklist}/tasks',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'tasklist' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'parent' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'previous' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),'list' => array(
|
||||
'path' => 'lists/{tasklist}/tasks',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'tasklist' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'dueMax' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'showDeleted' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'boolean',
|
||||
),
|
||||
'updatedMin' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'completedMin' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'maxResults' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'showCompleted' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'boolean',
|
||||
),
|
||||
'pageToken' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'completedMax' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'showHidden' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'boolean',
|
||||
),
|
||||
'dueMin' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),'move' => array(
|
||||
'path' => 'lists/{tasklist}/tasks/{task}/move',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'tasklist' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'task' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'parent' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'previous' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),'patch' => array(
|
||||
'path' => 'lists/{tasklist}/tasks/{task}',
|
||||
'httpMethod' => 'PATCH',
|
||||
'parameters' => array(
|
||||
'tasklist' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'task' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),'update' => array(
|
||||
'path' => 'lists/{tasklist}/tasks/{task}',
|
||||
'httpMethod' => 'PUT',
|
||||
'parameters' => array(
|
||||
'tasklist' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'task' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "tasklists" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $tasksService = new Google_Service_Tasks(...);
|
||||
* $tasklists = $tasksService->tasklists;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Tasks_Tasklists_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Deletes the authenticated user's specified task list. (tasklists.delete)
|
||||
*
|
||||
* @param string $tasklist Task list identifier.
|
||||
* @param array $optParams Optional parameters.
|
||||
*/
|
||||
public function delete($tasklist, $optParams = array())
|
||||
{
|
||||
$params = array('tasklist' => $tasklist);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete', array($params));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the authenticated user's specified task list. (tasklists.get)
|
||||
*
|
||||
* @param string $tasklist Task list identifier.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Tasks_TaskList
|
||||
*/
|
||||
public function get($tasklist, $optParams = array())
|
||||
{
|
||||
$params = array('tasklist' => $tasklist);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_Tasks_TaskList");
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new task list and adds it to the authenticated user's task lists.
|
||||
* (tasklists.insert)
|
||||
*
|
||||
* @param Google_TaskList $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Tasks_TaskList
|
||||
*/
|
||||
public function insert(Google_Service_Tasks_TaskList $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('insert', array($params), "Google_Service_Tasks_TaskList");
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all the authenticated user's task lists. (tasklists.listTasklists)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string pageToken Token specifying the result page to return.
|
||||
* Optional.
|
||||
* @opt_param string maxResults Maximum number of task lists returned on one
|
||||
* page. Optional. The default is 100.
|
||||
* @return Google_Service_Tasks_TaskLists
|
||||
*/
|
||||
public function listTasklists($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Tasks_TaskLists");
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the authenticated user's specified task list. This method supports
|
||||
* patch semantics. (tasklists.patch)
|
||||
*
|
||||
* @param string $tasklist Task list identifier.
|
||||
* @param Google_TaskList $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Tasks_TaskList
|
||||
*/
|
||||
public function patch($tasklist, Google_Service_Tasks_TaskList $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('tasklist' => $tasklist, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('patch', array($params), "Google_Service_Tasks_TaskList");
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the authenticated user's specified task list. (tasklists.update)
|
||||
*
|
||||
* @param string $tasklist Task list identifier.
|
||||
* @param Google_TaskList $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Tasks_TaskList
|
||||
*/
|
||||
public function update($tasklist, Google_Service_Tasks_TaskList $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('tasklist' => $tasklist, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('update', array($params), "Google_Service_Tasks_TaskList");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "tasks" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $tasksService = new Google_Service_Tasks(...);
|
||||
* $tasks = $tasksService->tasks;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Tasks_Tasks_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Clears all completed tasks from the specified task list. The affected tasks
|
||||
* will be marked as 'hidden' and no longer be returned by default when
|
||||
* retrieving all tasks for a task list. (tasks.clear)
|
||||
*
|
||||
* @param string $tasklist Task list identifier.
|
||||
* @param array $optParams Optional parameters.
|
||||
*/
|
||||
public function clear($tasklist, $optParams = array())
|
||||
{
|
||||
$params = array('tasklist' => $tasklist);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('clear', array($params));
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes the specified task from the task list. (tasks.delete)
|
||||
*
|
||||
* @param string $tasklist Task list identifier.
|
||||
* @param string $task Task identifier.
|
||||
* @param array $optParams Optional parameters.
|
||||
*/
|
||||
public function delete($tasklist, $task, $optParams = array())
|
||||
{
|
||||
$params = array('tasklist' => $tasklist, 'task' => $task);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete', array($params));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the specified task. (tasks.get)
|
||||
*
|
||||
* @param string $tasklist Task list identifier.
|
||||
* @param string $task Task identifier.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Tasks_Task
|
||||
*/
|
||||
public function get($tasklist, $task, $optParams = array())
|
||||
{
|
||||
$params = array('tasklist' => $tasklist, 'task' => $task);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_Tasks_Task");
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new task on the specified task list. (tasks.insert)
|
||||
*
|
||||
* @param string $tasklist Task list identifier.
|
||||
* @param Google_Task $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string parent Parent task identifier. If the task is created at
|
||||
* the top level, this parameter is omitted. Optional.
|
||||
* @opt_param string previous Previous sibling task identifier. If the task is
|
||||
* created at the first position among its siblings, this parameter is omitted.
|
||||
* Optional.
|
||||
* @return Google_Service_Tasks_Task
|
||||
*/
|
||||
public function insert($tasklist, Google_Service_Tasks_Task $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('tasklist' => $tasklist, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('insert', array($params), "Google_Service_Tasks_Task");
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all tasks in the specified task list. (tasks.listTasks)
|
||||
*
|
||||
* @param string $tasklist Task list identifier.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string dueMax Upper bound for a task's due date (as a RFC 3339
|
||||
* timestamp) to filter by. Optional. The default is not to filter by due date.
|
||||
* @opt_param bool showDeleted Flag indicating whether deleted tasks are
|
||||
* returned in the result. Optional. The default is False.
|
||||
* @opt_param string updatedMin Lower bound for a task's last modification time
|
||||
* (as a RFC 3339 timestamp) to filter by. Optional. The default is not to
|
||||
* filter by last modification time.
|
||||
* @opt_param string completedMin Lower bound for a task's completion date (as a
|
||||
* RFC 3339 timestamp) to filter by. Optional. The default is not to filter by
|
||||
* completion date.
|
||||
* @opt_param string maxResults Maximum number of task lists returned on one
|
||||
* page. Optional. The default is 100.
|
||||
* @opt_param bool showCompleted Flag indicating whether completed tasks are
|
||||
* returned in the result. Optional. The default is True.
|
||||
* @opt_param string pageToken Token specifying the result page to return.
|
||||
* Optional.
|
||||
* @opt_param string completedMax Upper bound for a task's completion date (as a
|
||||
* RFC 3339 timestamp) to filter by. Optional. The default is not to filter by
|
||||
* completion date.
|
||||
* @opt_param bool showHidden Flag indicating whether hidden tasks are returned
|
||||
* in the result. Optional. The default is False.
|
||||
* @opt_param string dueMin Lower bound for a task's due date (as a RFC 3339
|
||||
* timestamp) to filter by. Optional. The default is not to filter by due date.
|
||||
* @return Google_Service_Tasks_Tasks
|
||||
*/
|
||||
public function listTasks($tasklist, $optParams = array())
|
||||
{
|
||||
$params = array('tasklist' => $tasklist);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Tasks_Tasks");
|
||||
}
|
||||
|
||||
/**
|
||||
* Moves the specified task to another position in the task list. This can
|
||||
* include putting it as a child task under a new parent and/or move it to a
|
||||
* different position among its sibling tasks. (tasks.move)
|
||||
*
|
||||
* @param string $tasklist Task list identifier.
|
||||
* @param string $task Task identifier.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string parent New parent task identifier. If the task is moved to
|
||||
* the top level, this parameter is omitted. Optional.
|
||||
* @opt_param string previous New previous sibling task identifier. If the task
|
||||
* is moved to the first position among its siblings, this parameter is omitted.
|
||||
* Optional.
|
||||
* @return Google_Service_Tasks_Task
|
||||
*/
|
||||
public function move($tasklist, $task, $optParams = array())
|
||||
{
|
||||
$params = array('tasklist' => $tasklist, 'task' => $task);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('move', array($params), "Google_Service_Tasks_Task");
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the specified task. This method supports patch semantics.
|
||||
* (tasks.patch)
|
||||
*
|
||||
* @param string $tasklist Task list identifier.
|
||||
* @param string $task Task identifier.
|
||||
* @param Google_Task $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Tasks_Task
|
||||
*/
|
||||
public function patch($tasklist, $task, Google_Service_Tasks_Task $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('patch', array($params), "Google_Service_Tasks_Task");
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the specified task. (tasks.update)
|
||||
*
|
||||
* @param string $tasklist Task list identifier.
|
||||
* @param string $task Task identifier.
|
||||
* @param Google_Task $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Tasks_Task
|
||||
*/
|
||||
public function update($tasklist, $task, Google_Service_Tasks_Task $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('update', array($params), "Google_Service_Tasks_Task");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_Tasks_Task extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'links';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $completed;
|
||||
public $deleted;
|
||||
public $due;
|
||||
public $etag;
|
||||
public $hidden;
|
||||
public $id;
|
||||
public $kind;
|
||||
protected $linksType = 'Google_Service_Tasks_TaskLinks';
|
||||
protected $linksDataType = 'array';
|
||||
public $notes;
|
||||
public $parent;
|
||||
public $position;
|
||||
public $selfLink;
|
||||
public $status;
|
||||
public $title;
|
||||
public $updated;
|
||||
|
||||
|
||||
public function setCompleted($completed)
|
||||
{
|
||||
$this->completed = $completed;
|
||||
}
|
||||
public function getCompleted()
|
||||
{
|
||||
return $this->completed;
|
||||
}
|
||||
public function setDeleted($deleted)
|
||||
{
|
||||
$this->deleted = $deleted;
|
||||
}
|
||||
public function getDeleted()
|
||||
{
|
||||
return $this->deleted;
|
||||
}
|
||||
public function setDue($due)
|
||||
{
|
||||
$this->due = $due;
|
||||
}
|
||||
public function getDue()
|
||||
{
|
||||
return $this->due;
|
||||
}
|
||||
public function setEtag($etag)
|
||||
{
|
||||
$this->etag = $etag;
|
||||
}
|
||||
public function getEtag()
|
||||
{
|
||||
return $this->etag;
|
||||
}
|
||||
public function setHidden($hidden)
|
||||
{
|
||||
$this->hidden = $hidden;
|
||||
}
|
||||
public function getHidden()
|
||||
{
|
||||
return $this->hidden;
|
||||
}
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
public function setKind($kind)
|
||||
{
|
||||
$this->kind = $kind;
|
||||
}
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
public function setLinks($links)
|
||||
{
|
||||
$this->links = $links;
|
||||
}
|
||||
public function getLinks()
|
||||
{
|
||||
return $this->links;
|
||||
}
|
||||
public function setNotes($notes)
|
||||
{
|
||||
$this->notes = $notes;
|
||||
}
|
||||
public function getNotes()
|
||||
{
|
||||
return $this->notes;
|
||||
}
|
||||
public function setParent($parent)
|
||||
{
|
||||
$this->parent = $parent;
|
||||
}
|
||||
public function getParent()
|
||||
{
|
||||
return $this->parent;
|
||||
}
|
||||
public function setPosition($position)
|
||||
{
|
||||
$this->position = $position;
|
||||
}
|
||||
public function getPosition()
|
||||
{
|
||||
return $this->position;
|
||||
}
|
||||
public function setSelfLink($selfLink)
|
||||
{
|
||||
$this->selfLink = $selfLink;
|
||||
}
|
||||
public function getSelfLink()
|
||||
{
|
||||
return $this->selfLink;
|
||||
}
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
public function setTitle($title)
|
||||
{
|
||||
$this->title = $title;
|
||||
}
|
||||
public function getTitle()
|
||||
{
|
||||
return $this->title;
|
||||
}
|
||||
public function setUpdated($updated)
|
||||
{
|
||||
$this->updated = $updated;
|
||||
}
|
||||
public function getUpdated()
|
||||
{
|
||||
return $this->updated;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Tasks_TaskLinks extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $description;
|
||||
public $link;
|
||||
public $type;
|
||||
|
||||
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
}
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
public function setLink($link)
|
||||
{
|
||||
$this->link = $link;
|
||||
}
|
||||
public function getLink()
|
||||
{
|
||||
return $this->link;
|
||||
}
|
||||
public function setType($type)
|
||||
{
|
||||
$this->type = $type;
|
||||
}
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Tasks_TaskList extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $etag;
|
||||
public $id;
|
||||
public $kind;
|
||||
public $selfLink;
|
||||
public $title;
|
||||
public $updated;
|
||||
|
||||
|
||||
public function setEtag($etag)
|
||||
{
|
||||
$this->etag = $etag;
|
||||
}
|
||||
public function getEtag()
|
||||
{
|
||||
return $this->etag;
|
||||
}
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
public function setKind($kind)
|
||||
{
|
||||
$this->kind = $kind;
|
||||
}
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
public function setSelfLink($selfLink)
|
||||
{
|
||||
$this->selfLink = $selfLink;
|
||||
}
|
||||
public function getSelfLink()
|
||||
{
|
||||
return $this->selfLink;
|
||||
}
|
||||
public function setTitle($title)
|
||||
{
|
||||
$this->title = $title;
|
||||
}
|
||||
public function getTitle()
|
||||
{
|
||||
return $this->title;
|
||||
}
|
||||
public function setUpdated($updated)
|
||||
{
|
||||
$this->updated = $updated;
|
||||
}
|
||||
public function getUpdated()
|
||||
{
|
||||
return $this->updated;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Tasks_TaskLists extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'items';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $etag;
|
||||
protected $itemsType = 'Google_Service_Tasks_TaskList';
|
||||
protected $itemsDataType = 'array';
|
||||
public $kind;
|
||||
public $nextPageToken;
|
||||
|
||||
|
||||
public function setEtag($etag)
|
||||
{
|
||||
$this->etag = $etag;
|
||||
}
|
||||
public function getEtag()
|
||||
{
|
||||
return $this->etag;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Tasks_Tasks extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'items';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $etag;
|
||||
protected $itemsType = 'Google_Service_Tasks_Task';
|
||||
protected $itemsDataType = 'array';
|
||||
public $kind;
|
||||
public $nextPageToken;
|
||||
|
||||
|
||||
public function setEtag($etag)
|
||||
{
|
||||
$this->etag = $etag;
|
||||
}
|
||||
public function getEtag()
|
||||
{
|
||||
return $this->etag;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
369
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Translate.php
vendored
Normal file
369
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Translate.php
vendored
Normal file
|
@ -0,0 +1,369 @@
|
|||
<?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 Translate (v2).
|
||||
*
|
||||
* <p>
|
||||
* Lets you translate text from one language to another</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://developers.google.com/translate/v2/using_rest" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_Translate extends Google_Service
|
||||
{
|
||||
|
||||
|
||||
public $detections;
|
||||
public $languages;
|
||||
public $translations;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the Translate service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://www.googleapis.com/';
|
||||
$this->servicePath = 'language/translate/';
|
||||
$this->version = 'v2';
|
||||
$this->serviceName = 'translate';
|
||||
|
||||
$this->detections = new Google_Service_Translate_Detections_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'detections',
|
||||
array(
|
||||
'methods' => array(
|
||||
'list' => array(
|
||||
'path' => 'v2/detect',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'q' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
'repeated' => true,
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
$this->languages = new Google_Service_Translate_Languages_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'languages',
|
||||
array(
|
||||
'methods' => array(
|
||||
'list' => array(
|
||||
'path' => 'v2/languages',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'target' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
$this->translations = new Google_Service_Translate_Translations_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'translations',
|
||||
array(
|
||||
'methods' => array(
|
||||
'list' => array(
|
||||
'path' => 'v2',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'q' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
'repeated' => true,
|
||||
'required' => true,
|
||||
),
|
||||
'target' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'source' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'format' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'cid' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
'repeated' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "detections" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $translateService = new Google_Service_Translate(...);
|
||||
* $detections = $translateService->detections;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Translate_Detections_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Detect the language of text. (detections.listDetections)
|
||||
*
|
||||
* @param string $q The text to detect
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Translate_DetectionsListResponse
|
||||
*/
|
||||
public function listDetections($q, $optParams = array())
|
||||
{
|
||||
$params = array('q' => $q);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Translate_DetectionsListResponse");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "languages" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $translateService = new Google_Service_Translate(...);
|
||||
* $languages = $translateService->languages;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Translate_Languages_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* List the source/target languages supported by the API
|
||||
* (languages.listLanguages)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string target the language and collation in which the localized
|
||||
* results should be returned
|
||||
* @return Google_Service_Translate_LanguagesListResponse
|
||||
*/
|
||||
public function listLanguages($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Translate_LanguagesListResponse");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "translations" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $translateService = new Google_Service_Translate(...);
|
||||
* $translations = $translateService->translations;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Translate_Translations_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Returns text translations from one language to another.
|
||||
* (translations.listTranslations)
|
||||
*
|
||||
* @param string $q The text to translate
|
||||
* @param string $target The target language into which the text should be
|
||||
* translated
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string source The source language of the text
|
||||
* @opt_param string format The format of the text
|
||||
* @opt_param string cid The customization id for translate
|
||||
* @return Google_Service_Translate_TranslationsListResponse
|
||||
*/
|
||||
public function listTranslations($q, $target, $optParams = array())
|
||||
{
|
||||
$params = array('q' => $q, 'target' => $target);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Translate_TranslationsListResponse");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_Translate_DetectionsListResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'detections';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $detectionsType = 'Google_Service_Translate_DetectionsResourceItems';
|
||||
protected $detectionsDataType = 'array';
|
||||
|
||||
|
||||
public function setDetections($detections)
|
||||
{
|
||||
$this->detections = $detections;
|
||||
}
|
||||
public function getDetections()
|
||||
{
|
||||
return $this->detections;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Translate_DetectionsResourceItems extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $confidence;
|
||||
public $isReliable;
|
||||
public $language;
|
||||
|
||||
|
||||
public function setConfidence($confidence)
|
||||
{
|
||||
$this->confidence = $confidence;
|
||||
}
|
||||
public function getConfidence()
|
||||
{
|
||||
return $this->confidence;
|
||||
}
|
||||
public function setIsReliable($isReliable)
|
||||
{
|
||||
$this->isReliable = $isReliable;
|
||||
}
|
||||
public function getIsReliable()
|
||||
{
|
||||
return $this->isReliable;
|
||||
}
|
||||
public function setLanguage($language)
|
||||
{
|
||||
$this->language = $language;
|
||||
}
|
||||
public function getLanguage()
|
||||
{
|
||||
return $this->language;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Translate_LanguagesListResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'languages';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $languagesType = 'Google_Service_Translate_LanguagesResource';
|
||||
protected $languagesDataType = 'array';
|
||||
|
||||
|
||||
public function setLanguages($languages)
|
||||
{
|
||||
$this->languages = $languages;
|
||||
}
|
||||
public function getLanguages()
|
||||
{
|
||||
return $this->languages;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Translate_LanguagesResource extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $language;
|
||||
public $name;
|
||||
|
||||
|
||||
public function setLanguage($language)
|
||||
{
|
||||
$this->language = $language;
|
||||
}
|
||||
public function getLanguage()
|
||||
{
|
||||
return $this->language;
|
||||
}
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Translate_TranslationsListResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'translations';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $translationsType = 'Google_Service_Translate_TranslationsResource';
|
||||
protected $translationsDataType = 'array';
|
||||
|
||||
|
||||
public function setTranslations($translations)
|
||||
{
|
||||
$this->translations = $translations;
|
||||
}
|
||||
public function getTranslations()
|
||||
{
|
||||
return $this->translations;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Translate_TranslationsResource extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $detectedSourceLanguage;
|
||||
public $translatedText;
|
||||
|
||||
|
||||
public function setDetectedSourceLanguage($detectedSourceLanguage)
|
||||
{
|
||||
$this->detectedSourceLanguage = $detectedSourceLanguage;
|
||||
}
|
||||
public function getDetectedSourceLanguage()
|
||||
{
|
||||
return $this->detectedSourceLanguage;
|
||||
}
|
||||
public function setTranslatedText($translatedText)
|
||||
{
|
||||
$this->translatedText = $translatedText;
|
||||
}
|
||||
public function getTranslatedText()
|
||||
{
|
||||
return $this->translatedText;
|
||||
}
|
||||
}
|
427
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Urlshortener.php
vendored
Normal file
427
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Urlshortener.php
vendored
Normal file
|
@ -0,0 +1,427 @@
|
|||
<?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 Urlshortener (v1).
|
||||
*
|
||||
* <p>
|
||||
* Lets you create, inspect, and manage goo.gl short URLs</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://developers.google.com/url-shortener/v1/getting_started" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_Urlshortener extends Google_Service
|
||||
{
|
||||
/** Manage your goo.gl short URLs. */
|
||||
const URLSHORTENER =
|
||||
"https://www.googleapis.com/auth/urlshortener";
|
||||
|
||||
public $url;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the Urlshortener service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://www.googleapis.com/';
|
||||
$this->servicePath = 'urlshortener/v1/';
|
||||
$this->version = 'v1';
|
||||
$this->serviceName = 'urlshortener';
|
||||
|
||||
$this->url = new Google_Service_Urlshortener_Url_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'url',
|
||||
array(
|
||||
'methods' => array(
|
||||
'get' => array(
|
||||
'path' => 'url',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'shortUrl' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'projection' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),'insert' => array(
|
||||
'path' => 'url',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(),
|
||||
),'list' => array(
|
||||
'path' => 'url/history',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'start-token' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'projection' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "url" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $urlshortenerService = new Google_Service_Urlshortener(...);
|
||||
* $url = $urlshortenerService->url;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Urlshortener_Url_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Expands a short URL or gets creation time and analytics. (url.get)
|
||||
*
|
||||
* @param string $shortUrl The short URL, including the protocol.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string projection Additional information to return.
|
||||
* @return Google_Service_Urlshortener_Url
|
||||
*/
|
||||
public function get($shortUrl, $optParams = array())
|
||||
{
|
||||
$params = array('shortUrl' => $shortUrl);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_Urlshortener_Url");
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new short URL. (url.insert)
|
||||
*
|
||||
* @param Google_Url $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Urlshortener_Url
|
||||
*/
|
||||
public function insert(Google_Service_Urlshortener_Url $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('insert', array($params), "Google_Service_Urlshortener_Url");
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a list of URLs shortened by a user. (url.listUrl)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string start-token Token for requesting successive pages of
|
||||
* results.
|
||||
* @opt_param string projection Additional information to return.
|
||||
* @return Google_Service_Urlshortener_UrlHistory
|
||||
*/
|
||||
public function listUrl($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Urlshortener_UrlHistory");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_Urlshortener_AnalyticsSnapshot extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'referrers';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $browsersType = 'Google_Service_Urlshortener_StringCount';
|
||||
protected $browsersDataType = 'array';
|
||||
protected $countriesType = 'Google_Service_Urlshortener_StringCount';
|
||||
protected $countriesDataType = 'array';
|
||||
public $longUrlClicks;
|
||||
protected $platformsType = 'Google_Service_Urlshortener_StringCount';
|
||||
protected $platformsDataType = 'array';
|
||||
protected $referrersType = 'Google_Service_Urlshortener_StringCount';
|
||||
protected $referrersDataType = 'array';
|
||||
public $shortUrlClicks;
|
||||
|
||||
|
||||
public function setBrowsers($browsers)
|
||||
{
|
||||
$this->browsers = $browsers;
|
||||
}
|
||||
public function getBrowsers()
|
||||
{
|
||||
return $this->browsers;
|
||||
}
|
||||
public function setCountries($countries)
|
||||
{
|
||||
$this->countries = $countries;
|
||||
}
|
||||
public function getCountries()
|
||||
{
|
||||
return $this->countries;
|
||||
}
|
||||
public function setLongUrlClicks($longUrlClicks)
|
||||
{
|
||||
$this->longUrlClicks = $longUrlClicks;
|
||||
}
|
||||
public function getLongUrlClicks()
|
||||
{
|
||||
return $this->longUrlClicks;
|
||||
}
|
||||
public function setPlatforms($platforms)
|
||||
{
|
||||
$this->platforms = $platforms;
|
||||
}
|
||||
public function getPlatforms()
|
||||
{
|
||||
return $this->platforms;
|
||||
}
|
||||
public function setReferrers($referrers)
|
||||
{
|
||||
$this->referrers = $referrers;
|
||||
}
|
||||
public function getReferrers()
|
||||
{
|
||||
return $this->referrers;
|
||||
}
|
||||
public function setShortUrlClicks($shortUrlClicks)
|
||||
{
|
||||
$this->shortUrlClicks = $shortUrlClicks;
|
||||
}
|
||||
public function getShortUrlClicks()
|
||||
{
|
||||
return $this->shortUrlClicks;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Urlshortener_AnalyticsSummary extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $allTimeType = 'Google_Service_Urlshortener_AnalyticsSnapshot';
|
||||
protected $allTimeDataType = '';
|
||||
protected $dayType = 'Google_Service_Urlshortener_AnalyticsSnapshot';
|
||||
protected $dayDataType = '';
|
||||
protected $monthType = 'Google_Service_Urlshortener_AnalyticsSnapshot';
|
||||
protected $monthDataType = '';
|
||||
protected $twoHoursType = 'Google_Service_Urlshortener_AnalyticsSnapshot';
|
||||
protected $twoHoursDataType = '';
|
||||
protected $weekType = 'Google_Service_Urlshortener_AnalyticsSnapshot';
|
||||
protected $weekDataType = '';
|
||||
|
||||
|
||||
public function setAllTime(Google_Service_Urlshortener_AnalyticsSnapshot $allTime)
|
||||
{
|
||||
$this->allTime = $allTime;
|
||||
}
|
||||
public function getAllTime()
|
||||
{
|
||||
return $this->allTime;
|
||||
}
|
||||
public function setDay(Google_Service_Urlshortener_AnalyticsSnapshot $day)
|
||||
{
|
||||
$this->day = $day;
|
||||
}
|
||||
public function getDay()
|
||||
{
|
||||
return $this->day;
|
||||
}
|
||||
public function setMonth(Google_Service_Urlshortener_AnalyticsSnapshot $month)
|
||||
{
|
||||
$this->month = $month;
|
||||
}
|
||||
public function getMonth()
|
||||
{
|
||||
return $this->month;
|
||||
}
|
||||
public function setTwoHours(Google_Service_Urlshortener_AnalyticsSnapshot $twoHours)
|
||||
{
|
||||
$this->twoHours = $twoHours;
|
||||
}
|
||||
public function getTwoHours()
|
||||
{
|
||||
return $this->twoHours;
|
||||
}
|
||||
public function setWeek(Google_Service_Urlshortener_AnalyticsSnapshot $week)
|
||||
{
|
||||
$this->week = $week;
|
||||
}
|
||||
public function getWeek()
|
||||
{
|
||||
return $this->week;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Urlshortener_StringCount extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $count;
|
||||
public $id;
|
||||
|
||||
|
||||
public function setCount($count)
|
||||
{
|
||||
$this->count = $count;
|
||||
}
|
||||
public function getCount()
|
||||
{
|
||||
return $this->count;
|
||||
}
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Urlshortener_Url extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $analyticsType = 'Google_Service_Urlshortener_AnalyticsSummary';
|
||||
protected $analyticsDataType = '';
|
||||
public $created;
|
||||
public $id;
|
||||
public $kind;
|
||||
public $longUrl;
|
||||
public $status;
|
||||
|
||||
|
||||
public function setAnalytics(Google_Service_Urlshortener_AnalyticsSummary $analytics)
|
||||
{
|
||||
$this->analytics = $analytics;
|
||||
}
|
||||
public function getAnalytics()
|
||||
{
|
||||
return $this->analytics;
|
||||
}
|
||||
public function setCreated($created)
|
||||
{
|
||||
$this->created = $created;
|
||||
}
|
||||
public function getCreated()
|
||||
{
|
||||
return $this->created;
|
||||
}
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
public function setKind($kind)
|
||||
{
|
||||
$this->kind = $kind;
|
||||
}
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
public function setLongUrl($longUrl)
|
||||
{
|
||||
$this->longUrl = $longUrl;
|
||||
}
|
||||
public function getLongUrl()
|
||||
{
|
||||
return $this->longUrl;
|
||||
}
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Urlshortener_UrlHistory extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'items';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $itemsType = 'Google_Service_Urlshortener_Url';
|
||||
protected $itemsDataType = 'array';
|
||||
public $itemsPerPage;
|
||||
public $kind;
|
||||
public $nextPageToken;
|
||||
public $totalItems;
|
||||
|
||||
|
||||
public function setItems($items)
|
||||
{
|
||||
$this->items = $items;
|
||||
}
|
||||
public function getItems()
|
||||
{
|
||||
return $this->items;
|
||||
}
|
||||
public function setItemsPerPage($itemsPerPage)
|
||||
{
|
||||
$this->itemsPerPage = $itemsPerPage;
|
||||
}
|
||||
public function getItemsPerPage()
|
||||
{
|
||||
return $this->itemsPerPage;
|
||||
}
|
||||
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 setTotalItems($totalItems)
|
||||
{
|
||||
$this->totalItems = $totalItems;
|
||||
}
|
||||
public function getTotalItems()
|
||||
{
|
||||
return $this->totalItems;
|
||||
}
|
||||
}
|
216
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Webfonts.php
vendored
Normal file
216
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Webfonts.php
vendored
Normal file
|
@ -0,0 +1,216 @@
|
|||
<?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 Webfonts (v1).
|
||||
*
|
||||
* <p>
|
||||
* The Google Fonts Developer API.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://developers.google.com/fonts/docs/developer_api" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_Webfonts extends Google_Service
|
||||
{
|
||||
|
||||
|
||||
public $webfonts;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the Webfonts service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://www.googleapis.com/';
|
||||
$this->servicePath = 'webfonts/v1/';
|
||||
$this->version = 'v1';
|
||||
$this->serviceName = 'webfonts';
|
||||
|
||||
$this->webfonts = new Google_Service_Webfonts_Webfonts_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'webfonts',
|
||||
array(
|
||||
'methods' => array(
|
||||
'list' => array(
|
||||
'path' => 'webfonts',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'sort' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "webfonts" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $webfontsService = new Google_Service_Webfonts(...);
|
||||
* $webfonts = $webfontsService->webfonts;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_Webfonts_Webfonts_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Retrieves the list of fonts currently served by the Google Fonts Developer
|
||||
* API (webfonts.listWebfonts)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string sort Enables sorting of the list
|
||||
* @return Google_Service_Webfonts_WebfontList
|
||||
*/
|
||||
public function listWebfonts($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Webfonts_WebfontList");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_Webfonts_Webfont extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'variants';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $category;
|
||||
public $family;
|
||||
public $files;
|
||||
public $kind;
|
||||
public $lastModified;
|
||||
public $subsets;
|
||||
public $variants;
|
||||
public $version;
|
||||
|
||||
|
||||
public function setCategory($category)
|
||||
{
|
||||
$this->category = $category;
|
||||
}
|
||||
public function getCategory()
|
||||
{
|
||||
return $this->category;
|
||||
}
|
||||
public function setFamily($family)
|
||||
{
|
||||
$this->family = $family;
|
||||
}
|
||||
public function getFamily()
|
||||
{
|
||||
return $this->family;
|
||||
}
|
||||
public function setFiles($files)
|
||||
{
|
||||
$this->files = $files;
|
||||
}
|
||||
public function getFiles()
|
||||
{
|
||||
return $this->files;
|
||||
}
|
||||
public function setKind($kind)
|
||||
{
|
||||
$this->kind = $kind;
|
||||
}
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
public function setLastModified($lastModified)
|
||||
{
|
||||
$this->lastModified = $lastModified;
|
||||
}
|
||||
public function getLastModified()
|
||||
{
|
||||
return $this->lastModified;
|
||||
}
|
||||
public function setSubsets($subsets)
|
||||
{
|
||||
$this->subsets = $subsets;
|
||||
}
|
||||
public function getSubsets()
|
||||
{
|
||||
return $this->subsets;
|
||||
}
|
||||
public function setVariants($variants)
|
||||
{
|
||||
$this->variants = $variants;
|
||||
}
|
||||
public function getVariants()
|
||||
{
|
||||
return $this->variants;
|
||||
}
|
||||
public function setVersion($version)
|
||||
{
|
||||
$this->version = $version;
|
||||
}
|
||||
public function getVersion()
|
||||
{
|
||||
return $this->version;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_Webfonts_WebfontFiles extends Google_Model
|
||||
{
|
||||
}
|
||||
|
||||
class Google_Service_Webfonts_WebfontList extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'items';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $itemsType = 'Google_Service_Webfonts_Webfont';
|
||||
protected $itemsDataType = 'array';
|
||||
public $kind;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
1201
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Webmasters.php
vendored
Normal file
1201
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Webmasters.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
12992
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php
vendored
Normal file
12992
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1197
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeAnalytics.php
vendored
Normal file
1197
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeAnalytics.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
674
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeReporting.php
vendored
Normal file
674
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeReporting.php
vendored
Normal file
|
@ -0,0 +1,674 @@
|
|||
<?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 YouTubeReporting (v1).
|
||||
*
|
||||
* <p>
|
||||
* An API to schedule reporting jobs and download the resulting bulk data
|
||||
* reports about YouTube channels, videos etc. in the form of CSV files.</p>
|
||||
*
|
||||
* <p>
|
||||
* For more information about this service, see the API
|
||||
* <a href="https://developers.google.com/youtube/reporting/v1/reports/" target="_blank">Documentation</a>
|
||||
* </p>
|
||||
*
|
||||
* @author Google, Inc.
|
||||
*/
|
||||
class Google_Service_YouTubeReporting extends Google_Service
|
||||
{
|
||||
/** View monetary and non-monetary YouTube Analytics reports for your YouTube content. */
|
||||
const YT_ANALYTICS_MONETARY_READONLY =
|
||||
"https://www.googleapis.com/auth/yt-analytics-monetary.readonly";
|
||||
/** View YouTube Analytics reports for your YouTube content. */
|
||||
const YT_ANALYTICS_READONLY =
|
||||
"https://www.googleapis.com/auth/yt-analytics.readonly";
|
||||
|
||||
public $jobs;
|
||||
public $jobs_reports;
|
||||
public $media;
|
||||
public $reportTypes;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs the internal representation of the YouTubeReporting service.
|
||||
*
|
||||
* @param Google_Client $client
|
||||
*/
|
||||
public function __construct(Google_Client $client)
|
||||
{
|
||||
parent::__construct($client);
|
||||
$this->rootUrl = 'https://youtubereporting.googleapis.com/';
|
||||
$this->servicePath = '';
|
||||
$this->version = 'v1';
|
||||
$this->serviceName = 'youtubereporting';
|
||||
|
||||
$this->jobs = new Google_Service_YouTubeReporting_Jobs_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'jobs',
|
||||
array(
|
||||
'methods' => array(
|
||||
'create' => array(
|
||||
'path' => 'v1/jobs',
|
||||
'httpMethod' => 'POST',
|
||||
'parameters' => array(
|
||||
'onBehalfOfContentOwner' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),'delete' => array(
|
||||
'path' => 'v1/jobs/{jobId}',
|
||||
'httpMethod' => 'DELETE',
|
||||
'parameters' => array(
|
||||
'jobId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'onBehalfOfContentOwner' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),'get' => array(
|
||||
'path' => 'v1/jobs/{jobId}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'jobId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'onBehalfOfContentOwner' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),'list' => array(
|
||||
'path' => 'v1/jobs',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'pageToken' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'onBehalfOfContentOwner' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'pageSize' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
$this->jobs_reports = new Google_Service_YouTubeReporting_JobsReports_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'reports',
|
||||
array(
|
||||
'methods' => array(
|
||||
'get' => array(
|
||||
'path' => 'v1/jobs/{jobId}/reports/{reportId}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'jobId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'reportId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'onBehalfOfContentOwner' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
),'list' => array(
|
||||
'path' => 'v1/jobs/{jobId}/reports',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'jobId' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'pageToken' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'onBehalfOfContentOwner' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'pageSize' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
$this->media = new Google_Service_YouTubeReporting_Media_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'media',
|
||||
array(
|
||||
'methods' => array(
|
||||
'download' => array(
|
||||
'path' => 'v1/media/{+resourceName}',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'resourceName' => array(
|
||||
'location' => 'path',
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
$this->reportTypes = new Google_Service_YouTubeReporting_ReportTypes_Resource(
|
||||
$this,
|
||||
$this->serviceName,
|
||||
'reportTypes',
|
||||
array(
|
||||
'methods' => array(
|
||||
'list' => array(
|
||||
'path' => 'v1/reportTypes',
|
||||
'httpMethod' => 'GET',
|
||||
'parameters' => array(
|
||||
'pageToken' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'onBehalfOfContentOwner' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'string',
|
||||
),
|
||||
'pageSize' => array(
|
||||
'location' => 'query',
|
||||
'type' => 'integer',
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The "jobs" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $youtubereportingService = new Google_Service_YouTubeReporting(...);
|
||||
* $jobs = $youtubereportingService->jobs;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_YouTubeReporting_Jobs_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Creates a job and returns it. (jobs.create)
|
||||
*
|
||||
* @param Google_Job $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string onBehalfOfContentOwner The content owner's external ID on
|
||||
* which behalf the user is acting on. If not set, the user is acting for
|
||||
* himself (his own channel).
|
||||
* @return Google_Service_YouTubeReporting_Job
|
||||
*/
|
||||
public function create(Google_Service_YouTubeReporting_Job $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('create', array($params), "Google_Service_YouTubeReporting_Job");
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes a job. (jobs.delete)
|
||||
*
|
||||
* @param string $jobId The ID of the job to delete.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string onBehalfOfContentOwner The content owner's external ID on
|
||||
* which behalf the user is acting on. If not set, the user is acting for
|
||||
* himself (his own channel).
|
||||
* @return Google_Service_YouTubeReporting_Empty
|
||||
*/
|
||||
public function delete($jobId, $optParams = array())
|
||||
{
|
||||
$params = array('jobId' => $jobId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete', array($params), "Google_Service_YouTubeReporting_Empty");
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a job. (jobs.get)
|
||||
*
|
||||
* @param string $jobId The ID of the job to retrieve.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string onBehalfOfContentOwner The content owner's external ID on
|
||||
* which behalf the user is acting on. If not set, the user is acting for
|
||||
* himself (his own channel).
|
||||
* @return Google_Service_YouTubeReporting_Job
|
||||
*/
|
||||
public function get($jobId, $optParams = array())
|
||||
{
|
||||
$params = array('jobId' => $jobId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_YouTubeReporting_Job");
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists jobs. (jobs.listJobs)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string pageToken A token identifying a page of results the server
|
||||
* should return. Typically, this is the value of
|
||||
* ListReportTypesResponse.next_page_token returned in response to the previous
|
||||
* call to the `ListJobs` method.
|
||||
* @opt_param string onBehalfOfContentOwner The content owner's external ID on
|
||||
* which behalf the user is acting on. If not set, the user is acting for
|
||||
* himself (his own channel).
|
||||
* @opt_param int pageSize Requested page size. Server may return fewer jobs
|
||||
* than requested. If unspecified, server will pick an appropriate default.
|
||||
* @return Google_Service_YouTubeReporting_ListJobsResponse
|
||||
*/
|
||||
public function listJobs($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_YouTubeReporting_ListJobsResponse");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "reports" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $youtubereportingService = new Google_Service_YouTubeReporting(...);
|
||||
* $reports = $youtubereportingService->reports;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_YouTubeReporting_JobsReports_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Gets the metadata of a specific report. (reports.get)
|
||||
*
|
||||
* @param string $jobId The ID of the job.
|
||||
* @param string $reportId The ID of the report to retrieve.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string onBehalfOfContentOwner The content owner's external ID on
|
||||
* which behalf the user is acting on. If not set, the user is acting for
|
||||
* himself (his own channel).
|
||||
* @return Google_Service_YouTubeReporting_Report
|
||||
*/
|
||||
public function get($jobId, $reportId, $optParams = array())
|
||||
{
|
||||
$params = array('jobId' => $jobId, 'reportId' => $reportId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_YouTubeReporting_Report");
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists reports created by a specific job. Returns NOT_FOUND if the job does
|
||||
* not exist. (reports.listJobsReports)
|
||||
*
|
||||
* @param string $jobId The ID of the job.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string pageToken A token identifying a page of results the server
|
||||
* should return. Typically, this is the value of
|
||||
* ListReportsResponse.next_page_token returned in response to the previous call
|
||||
* to the `ListReports` method.
|
||||
* @opt_param string onBehalfOfContentOwner The content owner's external ID on
|
||||
* which behalf the user is acting on. If not set, the user is acting for
|
||||
* himself (his own channel).
|
||||
* @opt_param int pageSize Requested page size. Server may return fewer report
|
||||
* types than requested. If unspecified, server will pick an appropriate
|
||||
* default.
|
||||
* @return Google_Service_YouTubeReporting_ListReportsResponse
|
||||
*/
|
||||
public function listJobsReports($jobId, $optParams = array())
|
||||
{
|
||||
$params = array('jobId' => $jobId);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_YouTubeReporting_ListReportsResponse");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "media" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $youtubereportingService = new Google_Service_YouTubeReporting(...);
|
||||
* $media = $youtubereportingService->media;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_YouTubeReporting_Media_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Method for media download. Download is supported on the URI
|
||||
* `/v1/media/{+name}?alt=media`. (media.download)
|
||||
*
|
||||
* @param string $resourceName Name of the media that is being downloaded. See
|
||||
* [][ByteStream.ReadRequest.resource_name].
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_YouTubeReporting_Media
|
||||
*/
|
||||
public function download($resourceName, $optParams = array())
|
||||
{
|
||||
$params = array('resourceName' => $resourceName);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('download', array($params), "Google_Service_YouTubeReporting_Media");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "reportTypes" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $youtubereportingService = new Google_Service_YouTubeReporting(...);
|
||||
* $reportTypes = $youtubereportingService->reportTypes;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_YouTubeReporting_ReportTypes_Resource extends Google_Service_Resource
|
||||
{
|
||||
|
||||
/**
|
||||
* Lists report types. (reportTypes.listReportTypes)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string pageToken A token identifying a page of results the server
|
||||
* should return. Typically, this is the value of
|
||||
* ListReportTypesResponse.next_page_token returned in response to the previous
|
||||
* call to the `ListReportTypes` method.
|
||||
* @opt_param string onBehalfOfContentOwner The content owner's external ID on
|
||||
* which behalf the user is acting on. If not set, the user is acting for
|
||||
* himself (his own channel).
|
||||
* @opt_param int pageSize Requested page size. Server may return fewer report
|
||||
* types than requested. If unspecified, server will pick an appropriate
|
||||
* default.
|
||||
* @return Google_Service_YouTubeReporting_ListReportTypesResponse
|
||||
*/
|
||||
public function listReportTypes($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_YouTubeReporting_ListReportTypesResponse");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class Google_Service_YouTubeReporting_Empty extends Google_Model
|
||||
{
|
||||
}
|
||||
|
||||
class Google_Service_YouTubeReporting_Job extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $createTime;
|
||||
public $id;
|
||||
public $name;
|
||||
public $reportTypeId;
|
||||
|
||||
|
||||
public function setCreateTime($createTime)
|
||||
{
|
||||
$this->createTime = $createTime;
|
||||
}
|
||||
public function getCreateTime()
|
||||
{
|
||||
return $this->createTime;
|
||||
}
|
||||
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 setReportTypeId($reportTypeId)
|
||||
{
|
||||
$this->reportTypeId = $reportTypeId;
|
||||
}
|
||||
public function getReportTypeId()
|
||||
{
|
||||
return $this->reportTypeId;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_YouTubeReporting_ListJobsResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'jobs';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
protected $jobsType = 'Google_Service_YouTubeReporting_Job';
|
||||
protected $jobsDataType = 'array';
|
||||
public $nextPageToken;
|
||||
|
||||
|
||||
public function setJobs($jobs)
|
||||
{
|
||||
$this->jobs = $jobs;
|
||||
}
|
||||
public function getJobs()
|
||||
{
|
||||
return $this->jobs;
|
||||
}
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_YouTubeReporting_ListReportTypesResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'reportTypes';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $nextPageToken;
|
||||
protected $reportTypesType = 'Google_Service_YouTubeReporting_ReportType';
|
||||
protected $reportTypesDataType = 'array';
|
||||
|
||||
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
public function setReportTypes($reportTypes)
|
||||
{
|
||||
$this->reportTypes = $reportTypes;
|
||||
}
|
||||
public function getReportTypes()
|
||||
{
|
||||
return $this->reportTypes;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_YouTubeReporting_ListReportsResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'reports';
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $nextPageToken;
|
||||
protected $reportsType = 'Google_Service_YouTubeReporting_Report';
|
||||
protected $reportsDataType = 'array';
|
||||
|
||||
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
public function setReports($reports)
|
||||
{
|
||||
$this->reports = $reports;
|
||||
}
|
||||
public function getReports()
|
||||
{
|
||||
return $this->reports;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_YouTubeReporting_Media extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $resourceName;
|
||||
|
||||
|
||||
public function setResourceName($resourceName)
|
||||
{
|
||||
$this->resourceName = $resourceName;
|
||||
}
|
||||
public function getResourceName()
|
||||
{
|
||||
return $this->resourceName;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_YouTubeReporting_Report extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $createTime;
|
||||
public $downloadUrl;
|
||||
public $endTime;
|
||||
public $id;
|
||||
public $jobId;
|
||||
public $startTime;
|
||||
|
||||
|
||||
public function setCreateTime($createTime)
|
||||
{
|
||||
$this->createTime = $createTime;
|
||||
}
|
||||
public function getCreateTime()
|
||||
{
|
||||
return $this->createTime;
|
||||
}
|
||||
public function setDownloadUrl($downloadUrl)
|
||||
{
|
||||
$this->downloadUrl = $downloadUrl;
|
||||
}
|
||||
public function getDownloadUrl()
|
||||
{
|
||||
return $this->downloadUrl;
|
||||
}
|
||||
public function setEndTime($endTime)
|
||||
{
|
||||
$this->endTime = $endTime;
|
||||
}
|
||||
public function getEndTime()
|
||||
{
|
||||
return $this->endTime;
|
||||
}
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
public function setJobId($jobId)
|
||||
{
|
||||
$this->jobId = $jobId;
|
||||
}
|
||||
public function getJobId()
|
||||
{
|
||||
return $this->jobId;
|
||||
}
|
||||
public function setStartTime($startTime)
|
||||
{
|
||||
$this->startTime = $startTime;
|
||||
}
|
||||
public function getStartTime()
|
||||
{
|
||||
return $this->startTime;
|
||||
}
|
||||
}
|
||||
|
||||
class Google_Service_YouTubeReporting_ReportType extends Google_Model
|
||||
{
|
||||
protected $internal_gapi_mappings = array(
|
||||
);
|
||||
public $id;
|
||||
public $name;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
24
apps/files_external/3rdparty/google-api-php-client/src/Google/Task/Exception.php
vendored
Normal file
24
apps/files_external/3rdparty/google-api-php-client/src/Google/Task/Exception.php
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 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.
|
||||
*/
|
||||
|
||||
if (!class_exists('Google_Client')) {
|
||||
require_once dirname(__FILE__) . '/../autoload.php';
|
||||
}
|
||||
|
||||
class Google_Task_Exception extends Google_Exception
|
||||
{
|
||||
}
|
36
apps/files_external/3rdparty/google-api-php-client/src/Google/Task/Retryable.php
vendored
Normal file
36
apps/files_external/3rdparty/google-api-php-client/src/Google/Task/Retryable.php
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 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.
|
||||
*/
|
||||
|
||||
if (!class_exists('Google_Client')) {
|
||||
require_once dirname(__FILE__) . '/../autoload.php';
|
||||
}
|
||||
|
||||
/**
|
||||
* Interface for checking how many times a given task can be retried following
|
||||
* a failure.
|
||||
*/
|
||||
interface Google_Task_Retryable
|
||||
{
|
||||
/**
|
||||
* Gets the number of times the associated task can be retried.
|
||||
*
|
||||
* NOTE: -1 is returned if the task can be retried indefinitely
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function allowedRetries();
|
||||
}
|
257
apps/files_external/3rdparty/google-api-php-client/src/Google/Task/Runner.php
vendored
Normal file
257
apps/files_external/3rdparty/google-api-php-client/src/Google/Task/Runner.php
vendored
Normal file
|
@ -0,0 +1,257 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright 2014 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.
|
||||
*/
|
||||
|
||||
if (!class_exists('Google_Client')) {
|
||||
require_once dirname(__FILE__) . '/../autoload.php';
|
||||
}
|
||||
|
||||
/**
|
||||
* A task runner with exponential backoff support.
|
||||
*
|
||||
* @see https://developers.google.com/drive/web/handle-errors#implementing_exponential_backoff
|
||||
*/
|
||||
class Google_Task_Runner
|
||||
{
|
||||
/**
|
||||
* @var integer $maxDelay The max time (in seconds) to wait before a retry.
|
||||
*/
|
||||
private $maxDelay = 60;
|
||||
/**
|
||||
* @var integer $delay The previous delay from which the next is calculated.
|
||||
*/
|
||||
private $delay = 1;
|
||||
|
||||
/**
|
||||
* @var integer $factor The base number for the exponential back off.
|
||||
*/
|
||||
private $factor = 2;
|
||||
/**
|
||||
* @var float $jitter A random number between -$jitter and $jitter will be
|
||||
* added to $factor on each iteration to allow for a better distribution of
|
||||
* retries.
|
||||
*/
|
||||
private $jitter = 0.5;
|
||||
|
||||
/**
|
||||
* @var integer $attempts The number of attempts that have been tried so far.
|
||||
*/
|
||||
private $attempts = 0;
|
||||
/**
|
||||
* @var integer $maxAttempts The max number of attempts allowed.
|
||||
*/
|
||||
private $maxAttempts = 1;
|
||||
|
||||
/**
|
||||
* @var Google_Client $client The current API client.
|
||||
*/
|
||||
private $client;
|
||||
|
||||
/**
|
||||
* @var string $name The name of the current task (used for logging).
|
||||
*/
|
||||
private $name;
|
||||
/**
|
||||
* @var callable $action The task to run and possibly retry.
|
||||
*/
|
||||
private $action;
|
||||
/**
|
||||
* @var array $arguments The task arguments.
|
||||
*/
|
||||
private $arguments;
|
||||
|
||||
/**
|
||||
* Creates a new task runner with exponential backoff support.
|
||||
*
|
||||
* @param Google_Client $client The current API client
|
||||
* @param string $name The name of the current task (used for logging)
|
||||
* @param callable $action The task to run and possibly retry
|
||||
* @param array $arguments The task arguments
|
||||
* @throws Google_Task_Exception when misconfigured
|
||||
*/
|
||||
public function __construct(
|
||||
Google_Client $client,
|
||||
$name,
|
||||
$action,
|
||||
array $arguments = array()
|
||||
) {
|
||||
$config = (array) $client->getClassConfig('Google_Task_Runner');
|
||||
|
||||
if (isset($config['initial_delay'])) {
|
||||
if ($config['initial_delay'] < 0) {
|
||||
throw new Google_Task_Exception(
|
||||
'Task configuration `initial_delay` must not be negative.'
|
||||
);
|
||||
}
|
||||
|
||||
$this->delay = $config['initial_delay'];
|
||||
}
|
||||
|
||||
if (isset($config['max_delay'])) {
|
||||
if ($config['max_delay'] <= 0) {
|
||||
throw new Google_Task_Exception(
|
||||
'Task configuration `max_delay` must be greater than 0.'
|
||||
);
|
||||
}
|
||||
|
||||
$this->maxDelay = $config['max_delay'];
|
||||
}
|
||||
|
||||
if (isset($config['factor'])) {
|
||||
if ($config['factor'] <= 0) {
|
||||
throw new Google_Task_Exception(
|
||||
'Task configuration `factor` must be greater than 0.'
|
||||
);
|
||||
}
|
||||
|
||||
$this->factor = $config['factor'];
|
||||
}
|
||||
|
||||
if (isset($config['jitter'])) {
|
||||
if ($config['jitter'] <= 0) {
|
||||
throw new Google_Task_Exception(
|
||||
'Task configuration `jitter` must be greater than 0.'
|
||||
);
|
||||
}
|
||||
|
||||
$this->jitter = $config['jitter'];
|
||||
}
|
||||
|
||||
if (isset($config['retries'])) {
|
||||
if ($config['retries'] < 0) {
|
||||
throw new Google_Task_Exception(
|
||||
'Task configuration `retries` must not be negative.'
|
||||
);
|
||||
}
|
||||
$this->maxAttempts += $config['retries'];
|
||||
}
|
||||
|
||||
if (!is_callable($action)) {
|
||||
throw new Google_Task_Exception(
|
||||
'Task argument `$action` must be a valid callable.'
|
||||
);
|
||||
}
|
||||
|
||||
$this->name = $name;
|
||||
$this->client = $client;
|
||||
$this->action = $action;
|
||||
$this->arguments = $arguments;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a retry can be attempted.
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function canAttmpt()
|
||||
{
|
||||
return $this->attempts < $this->maxAttempts;
|
||||
}
|
||||
|
||||
/**
|
||||
* Runs the task and (if applicable) automatically retries when errors occur.
|
||||
*
|
||||
* @return mixed
|
||||
* @throws Google_Task_Retryable on failure when no retries are available.
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
while ($this->attempt()) {
|
||||
try {
|
||||
return call_user_func_array($this->action, $this->arguments);
|
||||
} catch (Google_Task_Retryable $exception) {
|
||||
$allowedRetries = $exception->allowedRetries();
|
||||
|
||||
if (!$this->canAttmpt() || !$allowedRetries) {
|
||||
throw $exception;
|
||||
}
|
||||
|
||||
if ($allowedRetries > 0) {
|
||||
$this->maxAttempts = min(
|
||||
$this->maxAttempts,
|
||||
$this->attempts + $allowedRetries
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Runs a task once, if possible. This is useful for bypassing the `run()`
|
||||
* loop.
|
||||
*
|
||||
* NOTE: If this is not the first attempt, this function will sleep in
|
||||
* accordance to the backoff configurations before running the task.
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function attempt()
|
||||
{
|
||||
if (!$this->canAttmpt()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($this->attempts > 0) {
|
||||
$this->backOff();
|
||||
}
|
||||
|
||||
$this->attempts++;
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sleeps in accordance to the backoff configurations.
|
||||
*/
|
||||
private function backOff()
|
||||
{
|
||||
$delay = $this->getDelay();
|
||||
|
||||
$this->client->getLogger()->debug(
|
||||
'Retrying task with backoff',
|
||||
array(
|
||||
'request' => $this->name,
|
||||
'retry' => $this->attempts,
|
||||
'backoff_seconds' => $delay
|
||||
)
|
||||
);
|
||||
|
||||
usleep($delay * 1000000);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the delay (in seconds) for the current backoff period.
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
private function getDelay()
|
||||
{
|
||||
$jitter = $this->getJitter();
|
||||
$factor = $this->attempts > 1 ? $this->factor + $jitter : 1 + abs($jitter);
|
||||
|
||||
return $this->delay = min($this->maxDelay, $this->delay * $factor);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the current jitter (random number between -$this->jitter and
|
||||
* $this->jitter).
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
private function getJitter()
|
||||
{
|
||||
return $this->jitter * 2 * mt_rand() / mt_getrandmax() - $this->jitter;
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue